Skip to content

Commit 07968c0

Browse files
Merge pull request InseeFr#20 from SimonDmz/fix-maven-plugin-version
provide coherent spring-boot-maven-plugin version
2 parents dc24a1f + e2a9fb5 commit 07968c0

File tree

2 files changed

+49
-3
lines changed

2 files changed

+49
-3
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Release Candidate
2+
3+
on:
4+
push:
5+
branches:
6+
- 'develop'
7+
tags:
8+
- '*'
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up JDK 11
16+
uses: actions/setup-java@v1
17+
with:
18+
java-version: 11
19+
- name: Build with Maven
20+
run: mvn install --file pom.xml
21+
- name: Upload war
22+
uses: actions/upload-artifact@v2
23+
with:
24+
name: war
25+
path: target/*.war
26+
release:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Checkout current branch
30+
uses: actions/checkout@v2
31+
- name: Get current version
32+
id: version
33+
run: echo "::set-output name=prop::$(mvn -f pom.xml help:evaluate -Dexpression=project.version -q -DforceStdout)"
34+
- run: echo ${{steps.version.outputs.prop}}
35+
- name: Release snapshot
36+
id: release-snapshot
37+
uses: actions/create-release@latest
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
with:
41+
tag_name: ${{steps.version.outputs.prop}}-rc
42+
release_name: Release Candidate ${{steps.version.outputs.prop}}
43+
draft: false
44+
prerelease: false

pom.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>fr.insee</groupId>
55
<artifactId>sabdatab</artifactId>
66
<packaging>war</packaging>
7-
<version>2.0.1</version>
7+
<version>2.0.2</version>
88
<name>Sabiane Data</name>
99

1010
<properties>
@@ -22,7 +22,8 @@
2222
<saxon.version>9.7.0-8</saxon.version>
2323
<xalan.version>2.7.1</xalan.version>
2424
<commons-io.version>2.7</commons-io.version>
25-
<log4j2.version>2.16.0</log4j2.version>
25+
<log4j2.version>2.17.1</log4j2.version>
26+
<spring-boot-dependencies.version>2.4.3</spring-boot-dependencies.version>
2627

2728
</properties>
2829

@@ -198,7 +199,7 @@
198199
<dependency>
199200
<groupId>org.springframework.boot</groupId>
200201
<artifactId>spring-boot-dependencies</artifactId>
201-
<version>2.4.3</version>
202+
<version>${spring-boot-dependencies.version}</version>
202203
<type>pom</type>
203204
<scope>import</scope>
204205
</dependency>
@@ -250,6 +251,7 @@
250251
<plugin>
251252
<groupId>org.springframework.boot</groupId>
252253
<artifactId>spring-boot-maven-plugin</artifactId>
254+
<version>${spring-boot-dependencies.version}</version>
253255
<executions>
254256
<execution>
255257
<id>repackage</id>

0 commit comments

Comments
 (0)