|
8 | 8 | <version>3.3.2</version> |
9 | 9 | <relativePath/> <!-- lookup parent from repository --> |
10 | 10 | </parent> |
11 | | - <groupId>io.hoangtien2k3</groupId> |
| 11 | + |
| 12 | + <groupId>io.github.hoangtien2k3</groupId> |
12 | 13 | <artifactId>fw-commons</artifactId> |
13 | 14 | <version>${version.lib}</version> |
| 15 | + <packaging>jar</packaging> |
14 | 16 | <name>fw-commons</name> |
15 | 17 | <description>a commons java tool lib with spring boot framework</description> |
16 | | - <url/> |
| 18 | + <url>https://github.com/hoangtien2k3/fw-commons</url> |
| 19 | + |
17 | 20 | <licenses> |
18 | 21 | <license> |
19 | | - <name>Apache License, Version 2.0</name> |
20 | | - <url>https://www.apache.org/licenses/LICENSE-2.0</url> |
21 | | - <distribution>repo</distribution> |
| 22 | + <name>MIT License</name> |
| 23 | + <url>https://www.opensource.org/licenses/mit-license.php</url> |
22 | 24 | </license> |
23 | 25 | </licenses> |
24 | 26 | <developers> |
25 | 27 | <developer> |
26 | | - <id>io.hoangtien2k3</id> |
27 | | - <name>hoangtien2k3</name> |
| 28 | + <name>Hoàng Anh Tiến</name> |
28 | 29 | |
29 | | - <url>https://hoangtien2k3.github.io</url> |
| 30 | + <organization>io.hoangtien2k3</organization> |
| 31 | + <organizationUrl>https://github.com/hoangtien2k3</organizationUrl> |
30 | 32 | </developer> |
31 | 33 | </developers> |
32 | 34 | <scm> |
33 | 35 | <connection>scm:git:git://github.com/hoangtien2k3/fw-commons.git</connection> |
34 | 36 | < developerConnection>scm:git:ssh:// [email protected]:hoangtien2k3/fw-commons.git</ developerConnection> |
35 | 37 | <url>https://github.com/hoangtien2k3/fw-commons</url> |
36 | | - <tag>HEAD</tag> |
37 | 38 | </scm> |
38 | 39 | <distributionManagement> |
| 40 | + <snapshotRepository> |
| 41 | + <id>ossrh</id> |
| 42 | + <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url> |
| 43 | + </snapshotRepository> |
39 | 44 | <repository> |
40 | | - <id>sonatype-nexus-staging</id> |
| 45 | + <id>ossrh</id> |
41 | 46 | <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
42 | 47 | </repository> |
43 | | - <snapshotRepository> |
44 | | - <id>sonatype-nexus-snapshots</id> |
45 | | - <url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url> |
46 | | - </snapshotRepository> |
47 | 48 | </distributionManagement> |
48 | 49 |
|
49 | 50 | <properties> |
|
64 | 65 | <jackson.databind.version>2.17.1</jackson.databind.version> |
65 | 66 | <spotless.version>2.43.0</spotless.version> |
66 | 67 | <file.encoding>UTF-8</file.encoding> |
| 68 | + <!-- Plugins version --> |
| 69 | + <maven-compiler-plugin.version>3.11.0</maven-compiler-plugin.version> |
| 70 | + <maven-surefire-plugin.version>3.1.2</maven-surefire-plugin.version> |
| 71 | + <central-publishing-maven-plugin.version>0.3.0</central-publishing-maven-plugin.version> |
| 72 | + <nexus-staging-maven-plugin.version>1.6.7</nexus-staging-maven-plugin.version> |
| 73 | + <maven-gpg-plugin.version>1.5</maven-gpg-plugin.version> |
| 74 | + <maven-javadoc-plugin.version>2.9.1</maven-javadoc-plugin.version> |
| 75 | + <maven-source-plugin.version>2.2.1</maven-source-plugin.version> |
67 | 76 | </properties> |
68 | 77 |
|
69 | 78 | <dependencyManagement> |
|
374 | 383 | <artifactId>spring-boot-starter-data-r2dbc</artifactId> |
375 | 384 | </dependency> |
376 | 385 |
|
377 | | - <!-- <!– config file .env –>--> |
378 | | - <!-- <dependency>--> |
379 | | - <!-- <groupId>io.github.cdimascio</groupId>--> |
380 | | - <!-- <artifactId>java-dotenv</artifactId>--> |
381 | | - <!-- <version>5.2.2</version>--> |
382 | | - <!-- </dependency>--> |
383 | | - <!-- <dependency>--> |
384 | | - <!-- <groupId>org.springframework.boot</groupId>--> |
385 | | - <!-- <artifactId>spring-boot-configuration-processor</artifactId>--> |
386 | | - <!-- <version>3.3.2</version>--> |
387 | | - <!-- </dependency>--> |
388 | | - |
389 | 386 | <dependency> |
390 | 387 | <groupId>org.springframework.boot</groupId> |
391 | 388 | <artifactId>spring-boot-starter-test</artifactId> |
|
399 | 396 | </dependencies> |
400 | 397 |
|
401 | 398 | <build> |
402 | | - <defaultGoal>install</defaultGoal> |
403 | 399 | <plugins> |
404 | 400 | <plugin> |
405 | 401 | <groupId>org.apache.maven.plugins</groupId> |
406 | 402 | <artifactId>maven-compiler-plugin</artifactId> |
| 403 | + <version>${maven-compiler-plugin.version}</version> |
407 | 404 | <configuration> |
408 | | - <source>21</source> |
409 | | - <target>21</target> |
| 405 | + <source>${java.version}</source> |
| 406 | + <target>${java.version}</target> |
410 | 407 | </configuration> |
411 | 408 | </plugin> |
412 | | - |
413 | 409 | <plugin> |
414 | | - <groupId>org.springframework.boot</groupId> |
415 | | - <artifactId>spring-boot-maven-plugin</artifactId> |
416 | | - </plugin> |
417 | | - |
418 | | - <plugin> |
419 | | - <groupId>com.diffplug.spotless</groupId> |
420 | | - <artifactId>spotless-maven-plugin</artifactId> |
421 | | - <version>${spotless.version}</version> |
| 410 | + <groupId>org.sonatype.central</groupId> |
| 411 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 412 | + <version>${central-publishing-maven-plugin.version}</version> |
| 413 | + <extensions>true</extensions> |
422 | 414 | <configuration> |
423 | | - <!--<ratchetFrom>origin/main</ratchetFrom>--> |
424 | | - <formats> |
425 | | - <format> |
426 | | - <includes> |
427 | | - <include>.gitignore</include> |
428 | | - </includes> |
429 | | - <toggleOffOn/> |
430 | | - <trimTrailingWhitespace/> |
431 | | - <endWithNewline/> |
432 | | - <indent> |
433 | | - <tabs>true</tabs> |
434 | | - <spacesPerTab>4</spacesPerTab> |
435 | | - </indent> |
436 | | - </format> |
437 | | - </formats> |
438 | | - <java> |
439 | | - <includes> |
440 | | - <include>src/main/java/**/*.java</include> |
441 | | - <include>src/test/java/**/*.java</include> |
442 | | - </includes> |
443 | | - <formatAnnotations/> |
444 | | - <removeUnusedImports/> |
445 | | - <palantirJavaFormat/> |
446 | | - <importOrder> |
447 | | - <order>java,jakarta,javax,org,com,com.diffplug,com.ezbuy,</order> |
448 | | - </importOrder> |
449 | | -<!-- <licenseHeader>--> |
450 | | -<!-- <content><![CDATA[--> |
451 | | -<!--/*--> |
452 | | -<!-- * Copyright $YEAR author - Hoàng Anh Tiến--> |
453 | | -<!-- *--> |
454 | | -<!-- * Licensed under the Apache License, Version 2.0 (the "License");--> |
455 | | -<!-- * you may not use this file except in compliance with the License.--> |
456 | | -<!-- * You may obtain a copy of the License at--> |
457 | | -<!-- *--> |
458 | | -<!-- * https://www.apache.org/licenses/LICENSE-2.0--> |
459 | | -<!-- *--> |
460 | | -<!-- * Unless required by applicable law or agreed to in writing, software--> |
461 | | -<!-- * distributed under the License is distributed on an "AS IS" BASIS,--> |
462 | | -<!-- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.--> |
463 | | -<!-- * See the License for the specific language governing permissions and--> |
464 | | -<!-- * limitations under the License.--> |
465 | | -<!-- */--> |
466 | | -<!-- ]]></content>--> |
467 | | -<!-- </licenseHeader>--> |
468 | | - </java> |
| 415 | + <publishingServerId>central</publishingServerId> |
| 416 | + <tokenAuth>true</tokenAuth> |
469 | 417 | </configuration> |
470 | | - <executions> |
471 | | - <execution> |
472 | | - <phase>compile</phase> |
473 | | - <goals> |
474 | | - <goal>apply</goal> |
475 | | - </goals> |
476 | | - </execution> |
477 | | - </executions> |
478 | 418 | </plugin> |
479 | | - |
480 | 419 | <plugin> |
481 | 420 | <groupId>org.apache.maven.plugins</groupId> |
482 | 421 | <artifactId>maven-source-plugin</artifactId> |
483 | | - <version>3.2.1</version> |
| 422 | + <version>${maven-source-plugin.version}</version> |
484 | 423 | <executions> |
485 | 424 | <execution> |
486 | 425 | <id>attach-sources</id> |
487 | 426 | <goals> |
488 | | - <goal>jar</goal> |
| 427 | + <goal>jar-no-fork</goal> |
489 | 428 | </goals> |
490 | 429 | </execution> |
491 | 430 | </executions> |
492 | 431 | </plugin> |
493 | 432 | <plugin> |
494 | 433 | <groupId>org.apache.maven.plugins</groupId> |
495 | 434 | <artifactId>maven-javadoc-plugin</artifactId> |
496 | | - <version>3.3.1</version> |
| 435 | + <version>${maven-javadoc-plugin.version}</version> |
| 436 | + <configuration> |
| 437 | + <javadocExecutable>${java.home}/bin/javadoc</javadocExecutable> |
| 438 | + </configuration> |
497 | 439 | <executions> |
498 | 440 | <execution> |
499 | 441 | <id>attach-javadocs</id> |
|
506 | 448 | <plugin> |
507 | 449 | <groupId>org.apache.maven.plugins</groupId> |
508 | 450 | <artifactId>maven-gpg-plugin</artifactId> |
509 | | - <version>3.0.1</version> |
| 451 | + <version>${maven-gpg-plugin.version}</version> |
510 | 452 | <executions> |
511 | 453 | <execution> |
512 | 454 | <id>sign-artifacts</id> |
513 | 455 | <phase>verify</phase> |
514 | 456 | <goals> |
515 | 457 | <goal>sign</goal> |
516 | 458 | </goals> |
| 459 | + <configuration> |
| 460 | + <keyname>0x2365862B</keyname> |
| 461 | + <gpgArguments> |
| 462 | + <arg>--pinentry-mode</arg> |
| 463 | + <arg>loopback</arg> |
| 464 | + </gpgArguments> |
| 465 | + </configuration> |
517 | 466 | </execution> |
518 | 467 | </executions> |
519 | 468 | </plugin> |
520 | 469 | <plugin> |
521 | 470 | <groupId>org.sonatype.plugins</groupId> |
522 | 471 | <artifactId>nexus-staging-maven-plugin</artifactId> |
523 | | - <version>1.6.8</version> |
| 472 | + <version>${nexus-staging-maven-plugin.version}</version> |
524 | 473 | <extensions>true</extensions> |
525 | 474 | <configuration> |
526 | 475 | <serverId>ossrh</serverId> |
527 | | - <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
| 476 | + <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl> |
528 | 477 | <autoReleaseAfterClose>true</autoReleaseAfterClose> |
529 | 478 | </configuration> |
530 | 479 | </plugin> |
531 | | - |
| 480 | + <plugin> |
| 481 | + <groupId>org.springframework.boot</groupId> |
| 482 | + <artifactId>spring-boot-maven-plugin</artifactId> |
| 483 | + <configuration> |
| 484 | + <excludes> |
| 485 | + <exclude> |
| 486 | + <groupId>org.projectlombok</groupId> |
| 487 | + <artifactId>lombok</artifactId> |
| 488 | + </exclude> |
| 489 | + </excludes> |
| 490 | + <skip>true</skip> |
| 491 | + </configuration> |
| 492 | + </plugin> |
| 493 | + <plugin> |
| 494 | + <groupId>com.diffplug.spotless</groupId> |
| 495 | + <artifactId>spotless-maven-plugin</artifactId> |
| 496 | + <version>${spotless.version}</version> |
| 497 | + <configuration> |
| 498 | + <java> |
| 499 | + <eclipse> |
| 500 | + </eclipse> |
| 501 | + <indent> |
| 502 | + <tabs>true</tabs> |
| 503 | + <spacesPerTab>2</spacesPerTab> |
| 504 | + </indent> |
| 505 | + <indent> |
| 506 | + <spaces>true</spaces> |
| 507 | + <spacesPerTab>2</spacesPerTab> |
| 508 | + </indent> |
| 509 | + <removeUnusedImports/> |
| 510 | + <licenseHeader> |
| 511 | + <content><![CDATA[ |
| 512 | +/* |
| 513 | + * Copyright $YEAR author - Hoàng Anh Tiến |
| 514 | + * |
| 515 | + * Permission is hereby granted, free of charge, to any person obtaining a copy |
| 516 | + * of this software and associated documentation files (the "Software"), to deal |
| 517 | + * in the Software without restriction, including without limitation the rights |
| 518 | + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 519 | + * copies of the Software, and to permit persons to whom the Software is |
| 520 | + * furnished to do so, subject to the following conditions: |
| 521 | + * |
| 522 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 523 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 524 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
| 525 | + */ |
| 526 | +]]></content> |
| 527 | + </licenseHeader> |
| 528 | + </java> |
| 529 | + </configuration> |
| 530 | + <executions> |
| 531 | + <execution> |
| 532 | + <id>java-formatter</id> |
| 533 | + <goals> |
| 534 | + <goal>check</goal> |
| 535 | + </goals> |
| 536 | + <phase>validate</phase> |
| 537 | + </execution> |
| 538 | + </executions> |
| 539 | + </plugin> |
532 | 540 | </plugins> |
533 | 541 | </build> |
534 | 542 |
|
|
0 commit comments