Skip to content

Commit 98cf06c

Browse files
committed
update to JDK 17
1 parent 8d0d643 commit 98cf06c

1 file changed

Lines changed: 96 additions & 87 deletions

File tree

pom.xml

Lines changed: 96 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@
1515
<jackson.version>2.15.2</jackson.version>
1616
<httpclient.version>5.2.1</httpclient.version>
1717
<junit.version>5.9.3</junit.version>
18+
<maven.assembly.version>3.6.0</maven.assembly.version>
19+
<maven.dependency.version>3.6.0</maven.dependency.version>
20+
<maven.compiler.version>3.11.0</maven.compiler.version>
21+
<maven.resources.version>3.3.1</maven.resources.version>
22+
<maven.source.version>3.3.0</maven.source.version>
23+
<maven.javadoc.version>3.5.0</maven.javadoc.version>
24+
<maven.gpg.version>3.1.0</maven.gpg.version>
1825
</properties>
1926

2027
<licenses>
@@ -63,12 +70,40 @@
6370
</dependency>
6471

6572
</dependencies>
66-
73+
6774
<build>
6875
<plugins>
76+
<plugin>
77+
<groupId>org.apache.maven.plugins</groupId>
78+
<artifactId>maven-assembly-plugin</artifactId>
79+
<version>${maven.assembly.version}</version>
80+
<configuration>
81+
<archive>
82+
<manifest>
83+
<mainClass>io.github.kubesys.mirror.Server</mainClass>
84+
</manifest>
85+
<manifestEntries>
86+
<Class-Path>.</Class-Path>
87+
</manifestEntries>
88+
</archive>
89+
<descriptorRefs>
90+
<descriptorRef>jar-with-dependencies</descriptorRef>
91+
</descriptorRefs>
92+
</configuration>
93+
<executions>
94+
<execution>
95+
<id>make-assembly</id>
96+
<phase>package</phase>
97+
<goals>
98+
<goal>single</goal>
99+
</goals>
100+
</execution>
101+
</executions>
102+
</plugin>
69103
<plugin>
70104
<groupId>org.apache.maven.plugins</groupId>
71105
<artifactId>maven-dependency-plugin</artifactId>
106+
<version>${maven.dependency.version}</version>
72107
<executions>
73108
<execution>
74109
<id>copy-dependencies</id>
@@ -85,21 +120,22 @@
85120
</execution>
86121
</executions>
87122
</plugin>
88-
89123
<plugin>
90124
<groupId>org.apache.maven.plugins</groupId>
91125
<artifactId>maven-compiler-plugin</artifactId>
126+
<version>${maven.compiler.version}</version>
92127
<configuration>
93-
<source>1.8</source>
94-
<target>1.8</target>
128+
<source>17</source>
129+
<target>17</target>
95130
<compilerArgs>
96131
<arg>-parameters</arg>
97132
</compilerArgs>
98133
</configuration>
99134
</plugin>
100-
101135
<plugin>
136+
<groupId>org.apache.maven.plugins</groupId>
102137
<artifactId>maven-resources-plugin</artifactId>
138+
<version>${maven.resources.version}</version>
103139
<executions>
104140
<execution>
105141
<id>copy-confs</id>
@@ -123,12 +159,11 @@
123159
</execution>
124160
</executions>
125161
</plugin>
126-
127-
128162
<!--source -->
129163
<plugin>
164+
<groupId>org.apache.maven.plugins</groupId>
130165
<artifactId>maven-source-plugin</artifactId>
131-
<version>3.2.1</version>
166+
<version>${maven.source.version}</version>
132167
<executions>
133168
<execution>
134169
<id>attach-sources</id>
@@ -138,11 +173,11 @@
138173
</execution>
139174
</executions>
140175
</plugin>
141-
142176
<!--javadoc -->
143177
<plugin>
178+
<groupId>org.apache.maven.plugins</groupId>
144179
<artifactId>maven-javadoc-plugin</artifactId>
145-
<version>3.3.1</version>
180+
<version>${maven.javadoc.version}</version>
146181
<configuration>
147182
<charset>UTF-8</charset>
148183
</configuration>
@@ -155,85 +190,59 @@
155190
</execution>
156191
</executions>
157192
</plugin>
158-
<plugin>
159-
<groupId>org.sonarsource.scanner.maven</groupId>
160-
<artifactId>sonar-maven-plugin</artifactId>
161-
<version>3.9.0.2155</version>
162-
</plugin>
163193
</plugins>
164194
</build>
195+
<profiles>
196+
<profile>
197+
<id>release</id>
198+
<build>
199+
<plugins>
200+
<!-- Source -->
201+
<plugin>
202+
<groupId>org.apache.maven.plugins</groupId>
203+
<artifactId>maven-source-plugin</artifactId>
204+
<version>${maven.source.version}</version>
205+
<executions>
206+
<execution>
207+
<phase>package</phase>
208+
<goals>
209+
<goal>jar-no-fork</goal>
210+
</goals>
211+
</execution>
212+
</executions>
213+
</plugin>
214+
<!-- Javadoc -->
215+
<plugin>
216+
<groupId>org.apache.maven.plugins</groupId>
217+
<artifactId>maven-javadoc-plugin</artifactId>
218+
<version>${maven.javadoc.version}</version>
219+
<executions>
220+
<execution>
221+
<phase>package</phase>
222+
<goals>
223+
<goal>jar</goal>
224+
</goals>
225+
</execution>
226+
</executions>
227+
</plugin>
228+
<!-- GPG -->
229+
<plugin>
230+
<groupId>org.apache.maven.plugins</groupId>
231+
<artifactId>maven-gpg-plugin</artifactId>
232+
<version>${maven.gpg.version}</version>
233+
<executions>
234+
<execution>
235+
<phase>verify</phase>
236+
<goals>
237+
<goal>sign</goal>
238+
</goals>
239+
</execution>
240+
</executions>
241+
</plugin>
242+
</plugins>
243+
</build>
244+
</profile>
245+
</profiles>
165246

166247

167-
<profiles>
168-
<profile>
169-
<id>release</id>
170-
<build>
171-
<plugins>
172-
<!-- Source -->
173-
<plugin>
174-
<groupId>org.apache.maven.plugins</groupId>
175-
<artifactId>maven-source-plugin</artifactId>
176-
<version>2.2.1</version>
177-
<executions>
178-
<execution>
179-
<phase>package</phase>
180-
<goals>
181-
<goal>jar-no-fork</goal>
182-
</goals>
183-
</execution>
184-
</executions>
185-
</plugin>
186-
<!-- Javadoc -->
187-
<plugin>
188-
<groupId>org.apache.maven.plugins</groupId>
189-
<artifactId>maven-javadoc-plugin</artifactId>
190-
<version>2.9.1</version>
191-
<executions>
192-
<execution>
193-
<phase>package</phase>
194-
<goals>
195-
<goal>jar</goal>
196-
</goals>
197-
</execution>
198-
</executions>
199-
</plugin>
200-
<!-- GPG -->
201-
<plugin>
202-
<groupId>org.apache.maven.plugins</groupId>
203-
<artifactId>maven-gpg-plugin</artifactId>
204-
<version>1.5</version>
205-
<executions>
206-
<execution>
207-
<phase>verify</phase>
208-
<goals>
209-
<goal>sign</goal>
210-
</goals>
211-
</execution>
212-
</executions>
213-
</plugin>
214-
</plugins>
215-
</build>
216-
<distributionManagement>
217-
<snapshotRepository>
218-
<id>oss</id>
219-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
220-
</snapshotRepository>
221-
<repository>
222-
<id>oss</id>
223-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
224-
</repository>
225-
</distributionManagement>
226-
</profile>
227-
</profiles>
228-
<distributionManagement>
229-
<snapshotRepository>
230-
<id>ossrh</id>
231-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
232-
</snapshotRepository>
233-
<repository>
234-
<id>ossrh</id>
235-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
236-
</repository>
237-
</distributionManagement>
238-
239248
</project>

0 commit comments

Comments
 (0)