|
44 | 44 | <maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version> |
45 | 45 | <maven-source-plugin.version>3.0.1</maven-source-plugin.version> |
46 | 46 | <maven-surefire-plugin.version>3.0.0-M6</maven-surefire-plugin.version> |
47 | | - <nexus-staging-maven-plugin.version>1.7.0</nexus-staging-maven-plugin.version> |
| 47 | + <central-publishing-maven-plugin.version>0.8.0</central-publishing-maven-plugin.version> |
48 | 48 | <!-- Note: using project checkstyle with AOSP style |
49 | 49 | find the default google java checkstyle config here - |
50 | 50 | <checkstyle.config.location>google_checks.xml</checkstyle.config.location> |
|
81 | 81 | </property> |
82 | 82 | </activation> |
83 | 83 |
|
84 | | - <distributionManagement> |
85 | | - <snapshotRepository> |
86 | | - <id>nexus</id> |
87 | | - <!-- Use the localhost endpoint for testing --> |
88 | | - <!-- <url>http://localhost:8081/repository/maven-snapshots/</url> --> |
89 | | - <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
90 | | - </snapshotRepository> |
91 | | - <repository> |
92 | | - <id>nexus</id> |
93 | | - <!-- Use the localhost endpoint for testing --> |
94 | | - <!-- <url>http://localhost:8081/repository/maven-releases/</url> --> |
95 | | - <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
96 | | - </repository> |
97 | | - </distributionManagement> |
98 | | - |
99 | 84 | <build> |
100 | 85 | <plugins> |
101 | 86 | <plugin> |
102 | | - <groupId>org.sonatype.plugins</groupId> |
103 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
104 | | - <version>${nexus-staging-maven-plugin.version}</version> |
| 87 | + <groupId>org.sonatype.central</groupId> |
| 88 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 89 | + <version>${central-publishing-maven-plugin.version}</version> |
105 | 90 | <extensions>true</extensions> |
106 | 91 | <configuration> |
107 | | - <serverId>nexus</serverId> |
108 | | - <!-- Use the localhost endpoint for testing --> |
109 | | - <!-- <nexusUrl>http://localhost:8081/repository/maven-releases/</nexusUrl> --> |
110 | | - <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
111 | | - <autoReleaseAfterClose>false</autoReleaseAfterClose> |
| 92 | + <publishingServerId>central</publishingServerId> |
| 93 | + <waitUntil>validated</waitUntil> |
112 | 94 | </configuration> |
113 | 95 | </plugin> |
114 | 96 | <plugin> |
|
0 commit comments