|
33 | 33 | <url>https://github.com/operator-framework/java-operator-sdk/tree/master</url> |
34 | 34 | </scm> |
35 | 35 |
|
36 | | - <distributionManagement> |
37 | | - <snapshotRepository> |
38 | | - <id>ossrh</id> |
39 | | - <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
40 | | - </snapshotRepository> |
41 | | - </distributionManagement> |
42 | | - |
43 | 36 | <properties> |
44 | | - <nexus-staging-maven-plugin.version>1.7.0</nexus-staging-maven-plugin.version> |
45 | | - <maven-gpg-plugin.version>3.2.7</maven-gpg-plugin.version> |
| 37 | + <maven-gpg-plugin.version>3.2.8</maven-gpg-plugin.version> |
46 | 38 | <maven-source-plugin.version>3.3.1</maven-source-plugin.version> |
47 | 39 | <maven-javadoc-plugin.version>3.11.2</maven-javadoc-plugin.version> |
48 | 40 | <spotless.version>2.44.3</spotless.version> |
| 41 | + <central-publishing-maven-plugin.version>0.8.0</central-publishing-maven-plugin.version> |
49 | 42 | </properties> |
50 | 43 |
|
51 | 44 | <dependencyManagement> |
|
115 | 108 | <id>release</id> |
116 | 109 | <build> |
117 | 110 | <plugins> |
| 111 | + <plugin> |
| 112 | + <groupId>org.apache.maven.plugins</groupId> |
| 113 | + <artifactId>maven-surefire-plugin</artifactId> |
| 114 | + <configuration> |
| 115 | + <excludes> |
| 116 | + <exclude>**/*IT.java</exclude> |
| 117 | + <exclude>**/*E2E.java</exclude> |
| 118 | + <exclude>**/InformerRelatedBehaviorTest.java</exclude> |
| 119 | + </excludes> |
| 120 | + </configuration> |
| 121 | + </plugin> |
118 | 122 | <plugin> |
119 | 123 | <groupId>org.apache.maven.plugins</groupId> |
120 | 124 | <artifactId>maven-javadoc-plugin</artifactId> |
|
138 | 142 | <goals> |
139 | 143 | <goal>jar</goal> |
140 | 144 | </goals> |
| 145 | + <phase>verify</phase> |
141 | 146 | </execution> |
142 | 147 | </executions> |
143 | 148 | </plugin> |
144 | 149 | <plugin> |
145 | 150 | <groupId>org.apache.maven.plugins</groupId> |
146 | 151 | <artifactId>maven-gpg-plugin</artifactId> |
147 | | - <version>${maven-gpg-plugin.version}</version> |
148 | 152 | <executions> |
149 | 153 | <execution> |
150 | 154 | <id>sign-artifacts</id> |
|
162 | 166 | </executions> |
163 | 167 | </plugin> |
164 | 168 | <plugin> |
165 | | - <groupId>org.sonatype.plugins</groupId> |
166 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
167 | | - <version>${nexus-staging-maven-plugin.version}</version> |
| 169 | + <groupId>org.sonatype.central</groupId> |
| 170 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 171 | + <version>${central-publishing-maven-plugin.version}</version> |
168 | 172 | <extensions>true</extensions> |
169 | 173 | <configuration> |
170 | | - <serverId>ossrh</serverId> |
171 | | - <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
172 | | - <autoReleaseAfterClose>true</autoReleaseAfterClose> |
| 174 | + <publishingServerId>central</publishingServerId> |
| 175 | + <tokenAuth>true</tokenAuth> |
| 176 | + <autoPublish>true</autoPublish> |
| 177 | + <waitUntil>published</waitUntil> |
173 | 178 | </configuration> |
174 | 179 | </plugin> |
175 | 180 | </plugins> |
|
0 commit comments