|
17 | 17 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
18 | 18 | <modelVersion>4.0.0</modelVersion> |
19 | 19 |
|
| 20 | + <parent> |
| 21 | + <groupId>io.jenkins.tools</groupId> |
| 22 | + <artifactId>central-repository-pom</artifactId> |
| 23 | + <version>1.5</version> |
| 24 | + <relativePath /> |
| 25 | + </parent> |
| 26 | + |
20 | 27 | <groupId>com.cloudbees</groupId> |
21 | 28 | <artifactId>syslog-java-client</artifactId> |
22 | 29 | <version>1.1.8-SNAPSHOT</version> |
|
88 | 95 | </dependencies> |
89 | 96 |
|
90 | 97 | <build> |
91 | | - <pluginManagement> |
92 | | - <plugins> |
93 | | - <plugin> |
94 | | - <groupId>org.apache.maven.plugins</groupId> |
95 | | - <artifactId>maven-compiler-plugin</artifactId> |
96 | | - <version>3.14.0</version> |
97 | | - </plugin> |
98 | | - <plugin> |
99 | | - <groupId>org.apache.maven.plugins</groupId> |
100 | | - <artifactId>maven-javadoc-plugin</artifactId> |
101 | | - <version>3.11.2</version> |
102 | | - </plugin> |
103 | | - <plugin> |
104 | | - <groupId>org.apache.maven.plugins</groupId> |
105 | | - <artifactId>maven-source-plugin</artifactId> |
106 | | - <version>3.3.1</version> |
107 | | - </plugin> |
108 | | - <plugin> |
109 | | - <groupId>org.apache.maven.plugins</groupId> |
110 | | - <artifactId>maven-surefire-plugin</artifactId> |
111 | | - <version>3.5.3</version> |
112 | | - </plugin> |
113 | | - </plugins> |
114 | | - </pluginManagement> |
115 | 98 | <plugins> |
116 | 99 | <plugin> |
117 | 100 | <groupId>com.github.spotbugs</groupId> |
|
143 | 126 | <execution> |
144 | 127 | <id>display-info</id> |
145 | 128 | <goals> |
146 | | - <goal>display-info</goal> |
147 | 129 | <goal>enforce</goal> |
148 | 130 | </goals> |
149 | 131 | <phase>validate</phase> |
150 | 132 | <configuration> |
151 | 133 | <rules> |
152 | 134 | <requireMavenVersion> |
153 | | - <version>[3.8.1,)</version> |
154 | | - <message>3.8.1 required to no longer download dependencies via HTTP (use HTTPS instead).</message> |
| 135 | + <version>[3.9.6,)</version> |
| 136 | + <message>3.9.6 to use Maven plugins using JDK17 bytecode.</message> |
155 | 137 | </requireMavenVersion> |
156 | 138 | <requireJavaVersion> |
157 | | - <version>[1.8.0,]</version> |
| 139 | + <version>[${maven.compiler.release},)</version> |
158 | 140 | </requireJavaVersion> |
159 | 141 | <bannedDependencies> |
160 | 142 | <excludes> |
|
167 | 149 | </execution> |
168 | 150 | </executions> |
169 | 151 | </plugin> |
170 | | - <plugin> |
171 | | - <groupId>org.apache.maven.plugins</groupId> |
172 | | - <artifactId>maven-javadoc-plugin</artifactId> |
173 | | - <configuration> |
174 | | - <doclint>all,-missing,-reference</doclint> |
175 | | - <locale>en_US</locale> |
176 | | - </configuration> |
177 | | - </plugin> |
178 | | - <plugin> |
179 | | - <groupId>org.apache.maven.plugins</groupId> |
180 | | - <artifactId>maven-release-plugin</artifactId> |
181 | | - <version>3.1.1</version> |
182 | | - <configuration> |
183 | | - <useReleaseProfile>false</useReleaseProfile> |
184 | | - <releaseProfiles>jenkins-release</releaseProfiles> |
185 | | - </configuration> |
186 | | - </plugin> |
187 | | - <plugin> |
188 | | - <groupId>org.sonatype.plugins</groupId> |
189 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
190 | | - <version>1.7.0</version> |
191 | | - <extensions>true</extensions> |
192 | | - <configuration> |
193 | | - <serverId>sonatype-nexus-staging</serverId> |
194 | | - <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
195 | | - <autoReleaseAfterClose>true</autoReleaseAfterClose> |
196 | | - </configuration> |
197 | | - </plugin> |
198 | 152 | </plugins> |
199 | 153 | </build> |
200 | 154 | <profiles> |
201 | | - <profile> |
202 | | - <id>jdk-8-and-below</id> |
203 | | - <activation> |
204 | | - <jdk>(,1.8]</jdk> |
205 | | - </activation> |
206 | | - <build> |
207 | | - <plugins> |
208 | | - <plugin> |
209 | | - <artifactId>maven-compiler-plugin</artifactId> |
210 | | - <configuration> |
211 | | - <source>1.8</source> |
212 | | - <target>1.8</target> |
213 | | - <testSource>1.8</testSource> |
214 | | - <testTarget>1.8</testTarget> |
215 | | - </configuration> |
216 | | - </plugin> |
217 | | - <plugin> |
218 | | - <artifactId>maven-javadoc-plugin</artifactId> |
219 | | - <configuration> |
220 | | - <source>1.8</source> |
221 | | - </configuration> |
222 | | - </plugin> |
223 | | - </plugins> |
224 | | - </build> |
225 | | - </profile> |
226 | | - <profile> |
227 | | - <id>jdk-9-and-above</id> |
228 | | - <activation> |
229 | | - <jdk>[9,)</jdk> |
230 | | - </activation> |
231 | | - <build> |
232 | | - <plugins> |
233 | | - <plugin> |
234 | | - <artifactId>maven-compiler-plugin</artifactId> |
235 | | - <configuration> |
236 | | - <release>8</release> |
237 | | - <testRelease>8</testRelease> |
238 | | - </configuration> |
239 | | - </plugin> |
240 | | - <plugin> |
241 | | - <artifactId>maven-javadoc-plugin</artifactId> |
242 | | - <configuration> |
243 | | - <release>8</release> |
244 | | - </configuration> |
245 | | - </plugin> |
246 | | - </plugins> |
247 | | - </build> |
248 | | - </profile> |
249 | | - <profile> |
250 | | - <id>jenkins-release</id> |
251 | | - <build> |
252 | | - <plugins> |
253 | | - <plugin> |
254 | | - <groupId>org.apache.maven.plugins</groupId> |
255 | | - <artifactId>maven-gpg-plugin</artifactId> |
256 | | - <version>3.2.7</version> |
257 | | - <executions> |
258 | | - <execution> |
259 | | - <id>sign-artifacts</id> |
260 | | - <goals> |
261 | | - <goal>sign</goal> |
262 | | - </goals> |
263 | | - <phase>verify</phase> |
264 | | - </execution> |
265 | | - </executions> |
266 | | - </plugin> |
267 | | - <plugin> |
268 | | - <groupId>org.apache.maven.plugins</groupId> |
269 | | - <artifactId>maven-javadoc-plugin</artifactId> |
270 | | - <executions> |
271 | | - <execution> |
272 | | - <id>attach-javadocs</id> |
273 | | - <goals> |
274 | | - <goal>jar</goal> |
275 | | - </goals> |
276 | | - </execution> |
277 | | - </executions> |
278 | | - </plugin> |
279 | | - <plugin> |
280 | | - <groupId>org.apache.maven.plugins</groupId> |
281 | | - <artifactId>maven-source-plugin</artifactId> |
282 | | - <executions> |
283 | | - <execution> |
284 | | - <id>attach-sources</id> |
285 | | - <goals> |
286 | | - <goal>jar-no-fork</goal> |
287 | | - </goals> |
288 | | - </execution> |
289 | | - </executions> |
290 | | - </plugin> |
291 | | - </plugins> |
292 | | - </build> |
293 | | - </profile> |
294 | 155 | <profile> |
295 | 156 | <id>network-constrained</id> |
296 | 157 | <activation> |
|
0 commit comments