File tree 17 files changed +138
-21
lines changed
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 >
Original file line number Diff line number Diff line change 84
84
85
85
</dependencies >
86
86
87
+ <build >
88
+ <plugins >
89
+ <plugin >
90
+ <groupId >org.moditect</groupId >
91
+ <artifactId >moditect-maven-plugin</artifactId >
92
+ </plugin >
93
+ </plugins >
94
+ </build >
87
95
</project >
Original file line number Diff line number Diff line change 63
63
</dependency >
64
64
65
65
</dependencies >
66
+
67
+ <build >
68
+ <plugins >
69
+ <plugin >
70
+ <groupId >org.moditect</groupId >
71
+ <artifactId >moditect-maven-plugin</artifactId >
72
+ </plugin >
73
+ </plugins >
74
+ </build >
66
75
</project >
Original file line number Diff line number Diff line change 91
91
</execution >
92
92
</executions >
93
93
</plugin >
94
+ <plugin >
95
+ <groupId >org.moditect</groupId >
96
+ <artifactId >moditect-maven-plugin</artifactId >
97
+ </plugin >
94
98
</plugins >
95
99
</build >
96
100
Original file line number Diff line number Diff line change 87
87
<scope >test</scope >
88
88
</dependency >
89
89
</dependencies >
90
+
91
+ <build >
92
+ <plugins >
93
+ <plugin >
94
+ <groupId >org.moditect</groupId >
95
+ <artifactId >moditect-maven-plugin</artifactId >
96
+ </plugin >
97
+ </plugins >
98
+ </build >
90
99
</project >
Original file line number Diff line number Diff line change 76
76
<scope >test</scope >
77
77
</dependency >
78
78
</dependencies >
79
+
80
+ <build >
81
+ <plugins >
82
+ <plugin >
83
+ <groupId >org.moditect</groupId >
84
+ <artifactId >moditect-maven-plugin</artifactId >
85
+ </plugin >
86
+ </plugins >
87
+ </build >
79
88
</project >
80
89
Original file line number Diff line number Diff line change 87
87
<properties >
88
88
<maven .compiler.source>8</maven .compiler.source>
89
89
<maven .compiler.target>8</maven .compiler.target>
90
+ <maven .compiler.release>8</maven .compiler.release>
90
91
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
91
92
92
93
<!-- Maven plugins -->
123
124
<artifactId >maven-surefire-plugin</artifactId >
124
125
<version >${maven-surefire-plugin.version} </version >
125
126
</plugin >
127
+ <plugin >
128
+ <groupId >org.apache.maven.plugins</groupId >
129
+ <artifactId >maven-compiler-plugin</artifactId >
130
+ <version >3.12.1</version >
131
+ </plugin >
126
132
<plugin >
127
133
<groupId >org.apache.maven.plugins</groupId >
128
134
<artifactId >maven-jar-plugin</artifactId >
134
140
</archive >
135
141
</configuration >
136
142
</plugin >
143
+ <plugin >
144
+ <groupId >org.moditect</groupId >
145
+ <artifactId >moditect-maven-plugin</artifactId >
146
+ <version >1.0.0.Final</version >
147
+ <executions >
148
+ <execution >
149
+ <id >add-module-infos</id >
150
+ <phase >package</phase >
151
+ <goals >
152
+ <goal >add-module-info</goal >
153
+ </goals >
154
+ <configuration >
155
+ <overwriteExistingFiles >true</overwriteExistingFiles >
156
+ <failOnWarning >false</failOnWarning >
157
+ <module >
158
+ <moduleInfo >
159
+ <name >${module-name} </name >
160
+ <!-- export everything -->
161
+ <exports >*;</exports >
162
+ <!-- declare services consumed by the artifact -->
163
+ <addServiceUses >true</addServiceUses >
164
+ </moduleInfo >
165
+ </module >
166
+ <jdepsExtraArgs >
167
+ <arg >--multi-release=9</arg >
168
+ </jdepsExtraArgs >
169
+ </configuration >
170
+ </execution >
171
+ </executions >
172
+ </plugin >
137
173
<plugin >
138
174
<groupId >org.ec4j.maven</groupId >
139
175
<artifactId >editorconfig-maven-plugin</artifactId >
Original file line number Diff line number Diff line change 87
87
<listener >true</listener > <!-- TODO do we need the listener? -->
88
88
</configuration >
89
89
</plugin >
90
+ <plugin >
91
+ <groupId >org.moditect</groupId >
92
+ <artifactId >moditect-maven-plugin</artifactId >
93
+ </plugin >
90
94
</plugins >
91
95
</build >
92
96
You can’t perform that action at this time.
0 commit comments