|
222 | 222 | </property> |
223 | 223 | </activation> |
224 | 224 | <build> |
| 225 | + <pluginManagement> |
| 226 | + <plugins> |
| 227 | + <plugin> |
| 228 | + <groupId>org.apache.maven.plugins</groupId> |
| 229 | + <artifactId>maven-source-plugin</artifactId> |
| 230 | + <version>3.3.1</version> |
| 231 | + <executions> |
| 232 | + <execution> |
| 233 | + <id>attach-sources</id> |
| 234 | + <phase>package</phase> |
| 235 | + <goals> |
| 236 | + <goal>jar-no-fork</goal> |
| 237 | + </goals> |
| 238 | + </execution> |
| 239 | + </executions> |
| 240 | + </plugin> |
| 241 | + <plugin> |
| 242 | + <groupId>org.projectlombok</groupId> |
| 243 | + <artifactId>lombok-maven-plugin</artifactId> |
| 244 | + <version>1.18.20.0</version> |
| 245 | + <executions> |
| 246 | + <execution> |
| 247 | + <id>delombok</id> |
| 248 | + <phase>process-sources</phase> |
| 249 | + <goals> |
| 250 | + <goal>delombok</goal> |
| 251 | + </goals> |
| 252 | + <configuration> |
| 253 | + <sourceDirectory>${project.basedir}/src/main/java</sourceDirectory> |
| 254 | + <outputDirectory>${project.build.directory}/delombok</outputDirectory> |
| 255 | + </configuration> |
| 256 | + </execution> |
| 257 | + </executions> |
| 258 | + <dependencies> |
| 259 | + <dependency> |
| 260 | + <groupId>org.projectlombok</groupId> |
| 261 | + <artifactId>lombok</artifactId> |
| 262 | + <version>1.18.38</version> |
| 263 | + </dependency> |
| 264 | + </dependencies> |
| 265 | + <configuration> |
| 266 | + <addOutputDirectory>false</addOutputDirectory> |
| 267 | + </configuration> |
| 268 | + </plugin> |
| 269 | + <plugin> |
| 270 | + <groupId>org.apache.maven.plugins</groupId> |
| 271 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 272 | + <version>3.11.2</version> |
| 273 | + <executions> |
| 274 | + <execution> |
| 275 | + <id>javadoc-jar</id> |
| 276 | + <goals> |
| 277 | + <goal>jar</goal> |
| 278 | + </goals> |
| 279 | + </execution> |
| 280 | + </executions> |
| 281 | + <configuration> |
| 282 | + <quiet>true</quiet> |
| 283 | + <additionalOptions>-Xdoclint:none</additionalOptions> |
| 284 | + <show>protected</show> |
| 285 | + <sourcepath>${project.basedir}/target/delombok</sourcepath> |
| 286 | + </configuration> |
| 287 | + </plugin> |
| 288 | + <plugin> |
| 289 | + <groupId>org.apache.maven.plugins</groupId> |
| 290 | + <artifactId>maven-gpg-plugin</artifactId> |
| 291 | + <version>3.2.7</version> |
| 292 | + <executions> |
| 293 | + <execution> |
| 294 | + <id>sign-artifacts</id> |
| 295 | + <phase>verify</phase> |
| 296 | + <goals> |
| 297 | + <goal>sign</goal> |
| 298 | + </goals> |
| 299 | + </execution> |
| 300 | + </executions> |
| 301 | + </plugin> |
| 302 | + <plugin> |
| 303 | + <groupId>org.apache.maven.plugins</groupId> |
| 304 | + <artifactId>maven-install-plugin</artifactId> |
| 305 | + <version>3.1.4</version> |
| 306 | + <executions> |
| 307 | + <execution> |
| 308 | + <phase>install</phase> |
| 309 | + <goals> |
| 310 | + <goal>install-file</goal> |
| 311 | + </goals> |
| 312 | + <configuration> |
| 313 | + <file>${project.basedir}/target/${project.artifactId}-${project.version}.jar</file> |
| 314 | + <sources>${project.basedir}/target/${project.artifactId}-${project.version}-sources.jar</sources> |
| 315 | + <javadoc>${project.basedir}/target/${project.artifactId}-${project.version}-javadoc.jar</javadoc> |
| 316 | + <pomFile>${project.basedir}/pom.xml</pomFile> |
| 317 | + <groupId>${project.groupId}</groupId> |
| 318 | + <artifactId>${project.artifactId}</artifactId> |
| 319 | + <version>${project.version}</version> |
| 320 | + <packaging>${project.packaging}</packaging> |
| 321 | + </configuration> |
| 322 | + </execution> |
| 323 | + </executions> |
| 324 | + </plugin> |
| 325 | + <!-- Skip default deploy plugin in favor of central-publishing-maven-plugin --> |
| 326 | + <plugin> |
| 327 | + <groupId>org.apache.maven.plugins</groupId> |
| 328 | + <artifactId>maven-deploy-plugin</artifactId> |
| 329 | + <version>3.1.4</version> |
| 330 | + <configuration> |
| 331 | + <skip>true</skip> |
| 332 | + </configuration> |
| 333 | + </plugin> |
| 334 | + <plugin> |
| 335 | + <groupId>org.sonatype.central</groupId> |
| 336 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 337 | + <version>0.8.0</version> |
| 338 | + <extensions>true</extensions> |
| 339 | + <configuration> |
| 340 | + <deploymentName>SAP AI SDK ${project.version}</deploymentName> |
| 341 | + <publishingServerId>central</publishingServerId> |
| 342 | + <autoPublish>false</autoPublish> |
| 343 | + </configuration> |
| 344 | + </plugin> |
| 345 | + </plugins> |
| 346 | + </pluginManagement> |
225 | 347 | <plugins> |
| 348 | + <!-- The release artifacts don't contain our custom config files for these plugins --> |
| 349 | + <plugin> |
| 350 | + <groupId>org.apache.maven.plugins</groupId> |
| 351 | + <artifactId>maven-checkstyle-plugin</artifactId> |
| 352 | + <configuration> |
| 353 | + <skip>true</skip> |
| 354 | + </configuration> |
| 355 | + </plugin> |
| 356 | + <plugin> |
| 357 | + <groupId>org.apache.maven.plugins</groupId> |
| 358 | + <artifactId>maven-pmd-plugin</artifactId> |
| 359 | + <configuration> |
| 360 | + <skip>true</skip> |
| 361 | + </configuration> |
| 362 | + </plugin> |
| 363 | + <plugin> |
| 364 | + <groupId>com.github.spotbugs</groupId> |
| 365 | + <artifactId>spotbugs-maven-plugin</artifactId> |
| 366 | + <configuration> |
| 367 | + <skip>true</skip> |
| 368 | + </configuration> |
| 369 | + </plugin> |
| 370 | + <plugin> |
| 371 | + <groupId>org.apache.maven.plugins</groupId> |
| 372 | + <artifactId>maven-source-plugin</artifactId> |
| 373 | + </plugin> |
| 374 | + <plugin> |
| 375 | + <groupId>org.projectlombok</groupId> |
| 376 | + <artifactId>lombok-maven-plugin</artifactId> |
| 377 | + </plugin> |
| 378 | + <plugin> |
| 379 | + <groupId>org.apache.maven.plugins</groupId> |
| 380 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 381 | + </plugin> |
| 382 | + <plugin> |
| 383 | + <groupId>org.apache.maven.plugins</groupId> |
| 384 | + <artifactId>maven-gpg-plugin</artifactId> |
| 385 | + </plugin> |
| 386 | + <!-- The plugins configuration below will not be inherited by children projects, they are specific to the parent pom --> |
226 | 387 | <plugin> |
227 | 388 | <groupId>org.apache.maven.plugins</groupId> |
228 | 389 | <artifactId>maven-install-plugin</artifactId> |
229 | | - <version>3.1.4</version> |
230 | 390 | <executions> |
231 | 391 | <execution> |
232 | | - <phase>install</phase> |
233 | | - <goals> |
234 | | - <goal>install-file</goal> |
235 | | - </goals> |
236 | 392 | <configuration> |
| 393 | + <file>${project.basedir}/pom.xml</file> |
| 394 | + <!-- The parent has no sources --> |
| 395 | + <sources>${empty.property}</sources> |
| 396 | + <javadoc>${empty.property}</javadoc> |
237 | 397 | </configuration> |
238 | 398 | </execution> |
239 | 399 | </executions> |
| 400 | + <inherited>false</inherited> |
240 | 401 | </plugin> |
241 | 402 | <plugin> |
242 | | - <groupId>org.apache.maven.plugins</groupId> |
243 | | - <artifactId>maven-gpg-plugin</artifactId> |
244 | | - <version>3.2.7</version> |
245 | | - <executions> |
246 | | - <execution> |
247 | | - <id>sign-artifacts</id> |
248 | | - <phase>verify</phase> |
249 | | - <goals> |
250 | | - <goal>sign</goal> |
251 | | - </goals> |
252 | | - </execution> |
253 | | - </executions> |
| 403 | + <groupId>org.sonatype.central</groupId> |
| 404 | + <artifactId>central-publishing-maven-plugin</artifactId> |
254 | 405 | </plugin> |
255 | 406 | </plugins> |
256 | 407 | </build> |
|
0 commit comments