|
15 | 15 | <jackson.version>2.15.2</jackson.version> |
16 | 16 | <httpclient.version>5.2.1</httpclient.version> |
17 | 17 | <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> |
18 | 25 | </properties> |
19 | 26 |
|
20 | 27 | <licenses> |
|
63 | 70 | </dependency> |
64 | 71 |
|
65 | 72 | </dependencies> |
66 | | - |
| 73 | + |
67 | 74 | <build> |
68 | 75 | <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> |
69 | 103 | <plugin> |
70 | 104 | <groupId>org.apache.maven.plugins</groupId> |
71 | 105 | <artifactId>maven-dependency-plugin</artifactId> |
| 106 | + <version>${maven.dependency.version}</version> |
72 | 107 | <executions> |
73 | 108 | <execution> |
74 | 109 | <id>copy-dependencies</id> |
|
85 | 120 | </execution> |
86 | 121 | </executions> |
87 | 122 | </plugin> |
88 | | - |
89 | 123 | <plugin> |
90 | 124 | <groupId>org.apache.maven.plugins</groupId> |
91 | 125 | <artifactId>maven-compiler-plugin</artifactId> |
| 126 | + <version>${maven.compiler.version}</version> |
92 | 127 | <configuration> |
93 | | - <source>1.8</source> |
94 | | - <target>1.8</target> |
| 128 | + <source>17</source> |
| 129 | + <target>17</target> |
95 | 130 | <compilerArgs> |
96 | 131 | <arg>-parameters</arg> |
97 | 132 | </compilerArgs> |
98 | 133 | </configuration> |
99 | 134 | </plugin> |
100 | | - |
101 | 135 | <plugin> |
| 136 | + <groupId>org.apache.maven.plugins</groupId> |
102 | 137 | <artifactId>maven-resources-plugin</artifactId> |
| 138 | + <version>${maven.resources.version}</version> |
103 | 139 | <executions> |
104 | 140 | <execution> |
105 | 141 | <id>copy-confs</id> |
|
123 | 159 | </execution> |
124 | 160 | </executions> |
125 | 161 | </plugin> |
126 | | - |
127 | | - |
128 | 162 | <!--source --> |
129 | 163 | <plugin> |
| 164 | + <groupId>org.apache.maven.plugins</groupId> |
130 | 165 | <artifactId>maven-source-plugin</artifactId> |
131 | | - <version>3.2.1</version> |
| 166 | + <version>${maven.source.version}</version> |
132 | 167 | <executions> |
133 | 168 | <execution> |
134 | 169 | <id>attach-sources</id> |
|
138 | 173 | </execution> |
139 | 174 | </executions> |
140 | 175 | </plugin> |
141 | | - |
142 | 176 | <!--javadoc --> |
143 | 177 | <plugin> |
| 178 | + <groupId>org.apache.maven.plugins</groupId> |
144 | 179 | <artifactId>maven-javadoc-plugin</artifactId> |
145 | | - <version>3.3.1</version> |
| 180 | + <version>${maven.javadoc.version}</version> |
146 | 181 | <configuration> |
147 | 182 | <charset>UTF-8</charset> |
148 | 183 | </configuration> |
|
155 | 190 | </execution> |
156 | 191 | </executions> |
157 | 192 | </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> |
163 | 193 | </plugins> |
164 | 194 | </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> |
165 | 246 |
|
166 | 247 |
|
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 | | - |
239 | 248 | </project> |
0 commit comments