File tree Expand file tree Collapse file tree 17 files changed +138
-21
lines changed Expand file tree Collapse file tree 17 files changed +138
-21
lines changed Original file line number Diff line number Diff line change @@ -13,27 +13,31 @@ jobs:
13
13
runs-on : ubuntu-latest
14
14
strategy :
15
15
matrix :
16
- java : [ 8, 11, 17 ]
16
+ java : [ 11, 17, 21 ]
17
17
steps :
18
- - uses : actions/checkout@v2
18
+ - uses : actions/checkout@v4
19
19
- name : Setup java
20
- uses : actions/setup-java@v1
20
+ uses : actions/setup-java@v4
21
21
with :
22
+ cache : ' maven'
22
23
java-version : ${{ matrix.java }}
24
+ distribution : ' temurin'
23
25
- run : |
24
- ./mvnw clean install -DskipTests -B
25
- ./mvnw verify -B
26
+ ./mvnw -ntp -B clean install -DskipTests
27
+ ./mvnw -ntp -B verify
26
28
27
29
deploy :
28
30
runs-on : ubuntu-latest
29
31
name : Deploy
30
32
needs : test
31
33
steps :
32
- - uses : actions/checkout@v2
34
+ - uses : actions/checkout@v4
33
35
- name : Setup java
34
- uses : actions/setup-java@v1
36
+ uses : actions/setup-java@v4
35
37
with :
36
- java-version : 8
38
+ cache : ' maven'
39
+ java-version : 11
40
+ distribution : ' temurin'
37
41
server-id : ossrh # Value of the distributionManagement/repository/id field of the pom.xml
38
42
server-username : MAVEN_USERNAME # env variable for username in deploy
39
43
server-password : MAVEN_CENTRAL_TOKEN # env variable for token in deploy
Original file line number Diff line number Diff line change @@ -13,13 +13,15 @@ jobs:
13
13
env :
14
14
NEW_VERSION : ${{ github.event.inputs.version }}
15
15
steps :
16
- - uses : actions/checkout@v2
16
+ - uses : actions/checkout@v4
17
17
- name : Setup java
18
- uses : actions/setup-java@v1
18
+ uses : actions/setup-java@v4
19
19
with :
20
- java-version : 8
20
+ cache : ' maven'
21
+ java-version : 11
22
+ distribution : ' temurin'
21
23
- name : Bump version using Maven
22
- run : ' ./mvnw versions:set -DnewVersion=$NEW_VERSION -DgenerateBackupPoms=false -B '
24
+ run : ' ./mvnw -ntp -B versions:set -DnewVersion=$NEW_VERSION -DgenerateBackupPoms=false'
23
25
- name : Bump version in docs
24
26
if : ${{ !endsWith(github.event.inputs.version, 'SNAPSHOT') }}
25
27
run : ' find . -type f -name "*.md" -exec sed -i -e "s+<version>[a-zA-Z0-9.-]*<\/version>+<version>$NEW_VERSION</version>+g" {} +'
Original file line number Diff line number Diff line change @@ -12,17 +12,17 @@ jobs:
12
12
runs-on : ubuntu-latest
13
13
strategy :
14
14
matrix :
15
- java : [ 8, 11, 17 ]
15
+ java : [ 11, 17, 21 ]
16
16
name : Java ${{ matrix.java }} Test
17
17
steps :
18
- - uses : actions/checkout@v2
18
+ - uses : actions/checkout@v4
19
19
- name : Setup java
20
- uses : actions/setup-java@v2
20
+ uses : actions/setup-java@v4
21
21
with :
22
22
cache : ' maven'
23
23
java-version : ${{ matrix.java }}
24
24
distribution : ' temurin'
25
25
- run : |
26
- ./mvnw clean install -DskipTests -B
27
- ./mvnw verify -B
28
- ./mvnw javadoc:javadoc
26
+ ./mvnw -ntp -B clean install -DskipTests
27
+ ./mvnw -ntp -B verify
28
+ ./mvnw -ntp -B javadoc:javadoc
Original file line number Diff line number Diff line change 61
61
62
62
</dependencies >
63
63
64
+ <build >
65
+ <plugins >
66
+ <plugin >
67
+ <groupId >org.moditect</groupId >
68
+ <artifactId >moditect-maven-plugin</artifactId >
69
+ </plugin >
70
+ </plugins >
71
+ </build >
64
72
</project >
Original file line number Diff line number Diff line change 56
56
<scope >test</scope >
57
57
</dependency >
58
58
</dependencies >
59
+
60
+ <build >
61
+ <plugins >
62
+ <plugin >
63
+ <groupId >org.moditect</groupId >
64
+ <artifactId >moditect-maven-plugin</artifactId >
65
+ </plugin >
66
+ </plugins >
67
+ </build >
59
68
</project >
Original file line number Diff line number Diff line change 83
83
<plugin >
84
84
<groupId >org.apache.maven.plugins</groupId >
85
85
<artifactId >maven-compiler-plugin</artifactId >
86
- <version >3.8.0</version >
87
86
<configuration >
88
87
<compilerVersion >${javac.target} </compilerVersion >
89
88
<source >${javac.target} </source >
Original file line number Diff line number Diff line change 83
83
</dependency >
84
84
<dependency >
85
85
<groupId >io.cloudevents</groupId >
86
- <artifactId >io. cloudevents. sql</artifactId >
86
+ <artifactId >cloudevents- sql</artifactId >
87
87
<version >${project.version} </version >
88
88
</dependency >
89
89
</dependencies >
Original file line number Diff line number Diff line change 66
66
67
67
<build >
68
68
<plugins >
69
+ <plugin >
70
+ <groupId >org.moditect</groupId >
71
+ <artifactId >moditect-maven-plugin</artifactId >
72
+ </plugin >
69
73
<plugin >
70
74
<groupId >org.apache.maven.plugins</groupId >
71
75
<artifactId >maven-jar-plugin</artifactId >
Original file line number Diff line number Diff line change 90
90
</dependency >
91
91
92
92
</dependencies >
93
+
94
+ <build >
95
+ <plugins >
96
+ <plugin >
97
+ <groupId >org.moditect</groupId >
98
+ <artifactId >moditect-maven-plugin</artifactId >
99
+ </plugin >
100
+ </plugins >
101
+ </build >
93
102
</project >
Original file line number Diff line number Diff line change 61
61
<protocArtifact >com.google.protobuf:protoc:${protobuf.version} :exe:${os.detected.classifier} </protocArtifact >
62
62
</configuration >
63
63
</plugin >
64
+ <plugin >
65
+ <groupId >org.moditect</groupId >
66
+ <artifactId >moditect-maven-plugin</artifactId >
67
+ </plugin >
64
68
</plugins >
65
69
</build >
66
70
126
130
</dependency >
127
131
128
132
</dependencies >
129
-
130
133
</project >
You can’t perform that action at this time.
0 commit comments