|
4 | 4 |
|
5 | 5 | <groupId>com.codename1</groupId> |
6 | 6 | <artifactId>cn1-bluetooth</artifactId> |
7 | | - <version>1.0-SNAPSHOT</version> |
| 7 | + <version>1.0.0</version> |
8 | 8 | <packaging>pom</packaging> |
9 | 9 |
|
10 | 10 | <name>cn1-bluetooth</name> |
|
44 | 44 | <java.version>1.8</java.version> |
45 | 45 | <java-tests.version>11</java-tests.version> |
46 | 46 | <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version> |
| 47 | + <maven-source-plugin.version>3.3.1</maven-source-plugin.version> |
47 | 48 | <maven.compiler.source>1.8</maven.compiler.source> |
48 | 49 | <maven.compiler.target>1.8</maven.compiler.target> |
49 | 50 | <cn1lib.name>cn1-bluetooth</cn1lib.name> |
50 | 51 | <kotlin.version>1.3.72</kotlin.version> |
51 | 52 | <kotlin.compiler.incremental>true</kotlin.compiler.incremental> |
52 | 53 | <kotlin.compiler.jvmTarget>1.8</kotlin.compiler.jvmTarget> |
53 | | - <nexus.server.id>nexus-staging</nexus.server.id> |
54 | | - <nexus.url>https://s01.oss.sonatype.org</nexus.url> |
| 54 | + <central.server.id>central</central.server.id> |
55 | 55 | </properties> |
56 | 56 | <modules> |
57 | 57 | <module>common</module> |
|
203 | 203 | <plugin> |
204 | 204 | <groupId>org.apache.maven.plugins</groupId> |
205 | 205 | <artifactId>maven-source-plugin</artifactId> |
| 206 | + <version>${maven-source-plugin.version}</version> |
206 | 207 | <executions> |
207 | 208 | <execution> |
208 | 209 | <id>attach-sources</id> |
|
213 | 214 | </executions> |
214 | 215 | </plugin> |
215 | 216 | <plugin> |
216 | | - <groupId>org.sonatype.plugins</groupId> |
217 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
218 | | - <version>1.7.0</version> |
| 217 | + <groupId>org.sonatype.central</groupId> |
| 218 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 219 | + <version>0.9.0</version> |
219 | 220 | <extensions>true</extensions> |
220 | 221 | <configuration> |
221 | | - <serverId>${nexus.server.id}</serverId> |
222 | | - <nexusUrl>${nexus.url}</nexusUrl> |
223 | | - <autoReleaseAfterClose>true</autoReleaseAfterClose> |
| 222 | + <publishingServerId>${central.server.id}</publishingServerId> |
| 223 | + <autoPublish>true</autoPublish> |
| 224 | + <waitUntil>published</waitUntil> |
224 | 225 | </configuration> |
225 | 226 | </plugin> |
226 | 227 | </plugins> |
|
242 | 243 | </profiles> |
243 | 244 | <servers> |
244 | 245 | <server> |
245 | | - <id>nexus-staging</id> |
| 246 | + <id>central</id> |
246 | 247 | <username>YOUR_USERNAME</username> |
247 | 248 | <password>YOUR_PASSWORD</password> |
248 | 249 | </server> |
|
279 | 280 | </build> |
280 | 281 | </profile> |
281 | 282 | </profiles> |
282 | | - <distributionManagement> |
283 | | - <repository> |
284 | | - <id>${nexus.server.id}</id> |
285 | | - <name>Nexus Release Repository</name> |
286 | | - <url>${nexus.url}/service/local/staging/deploy/maven2/</url> |
287 | | - </repository> |
288 | | - <snapshotRepository> |
289 | | - <id>${nexus.server.id}</id> |
290 | | - <name>Nexus Snapshot Repository</name> |
291 | | - <url>${nexus.url}/content/repositories/snapshots</url> |
292 | | - </snapshotRepository> |
293 | | - </distributionManagement> |
294 | 283 | <repositories> |
295 | 284 | <repository> |
296 | 285 | <id>central</id> |
|
301 | 290 | <enabled>false</enabled> |
302 | 291 | </snapshots> |
303 | 292 | </repository> |
304 | | - <repository> |
305 | | - <id>sonatype-snapshots</id> |
306 | | - <name>Sonatype Snapshots</name> |
307 | | - <url>${nexus.url}/content/repositories/snapshots</url> |
308 | | - <snapshots> |
309 | | - <enabled>true</enabled> |
310 | | - </snapshots> |
311 | | - </repository> |
312 | | - <repository> |
313 | | - <id>sonatype-staging</id> |
314 | | - <name>Sonatype Staging</name> |
315 | | - <url>${nexus.url}/content/repositories/staging</url> |
316 | | - <snapshots> |
317 | | - <enabled>false</enabled> |
318 | | - </snapshots> |
319 | | - </repository> |
320 | 293 | </repositories> |
321 | 294 | </project> |
0 commit comments