|
19 | 19 | <maven.deploy.plugin.version>2.8.1</maven.deploy.plugin.version> |
20 | 20 | <maven.source.plugin.version>2.2.1</maven.source.plugin.version> |
21 | 21 | <maven.gpg.plugin.version>1.5</maven.gpg.plugin.version> |
22 | | - <nexus.staging.plugin.version>1.6.14</nexus.staging.plugin.version> |
| 22 | + <central.publishing.maven.plugin.version>0.7.0</central.publishing.maven.plugin.version> |
23 | 23 | <git.commit.plugin.version>3.0.1</git.commit.plugin.version> |
24 | 24 | <kernel.core.version>1.3.0-SNAPSHOT</kernel.core.version> |
25 | 25 | <kernel.auth.adaptor.version>1.3.0-SNAPSHOT</kernel.auth.adaptor.version> |
|
44 | 44 | </dependency> |
45 | 45 |
|
46 | 46 | </dependencies> |
47 | | - |
48 | | -<distributionManagement> |
49 | | - <snapshotRepository> |
50 | | - <id>ossrh</id> |
51 | | - <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
52 | | - </snapshotRepository> |
53 | | - <repository> |
54 | | - <id>ossrh</id> |
55 | | - <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
56 | | - </repository> |
57 | | - </distributionManagement> |
58 | | - <build> |
59 | | -<resources> |
60 | | - <resource> |
61 | | - <directory>src/main/resources</directory> |
62 | | - <excludes> |
63 | | - <exclude>bootstrap.properties</exclude> |
64 | | - </excludes> |
65 | | - </resource> |
66 | | - </resources> |
| 47 | + |
| 48 | + <distributionManagement> |
| 49 | + <snapshotRepository> |
| 50 | + <id>ossrh</id> |
| 51 | + <url>https://central.sonatype.com/repository/maven-snapshots/</url> |
| 52 | + </snapshotRepository> |
| 53 | + <repository> |
| 54 | + <id>ossrh</id> |
| 55 | + <url>https://central.sonatype.com/api/v1/publisher</url> |
| 56 | + </repository> |
| 57 | + </distributionManagement> |
| 58 | + <build> |
| 59 | + <resources> |
| 60 | + <resource> |
| 61 | + <directory>src/main/resources</directory> |
| 62 | + <excludes> |
| 63 | + <exclude>bootstrap.properties</exclude> |
| 64 | + </excludes> |
| 65 | + </resource> |
| 66 | + </resources> |
67 | 67 | <plugins> |
68 | 68 | <plugin> |
69 | 69 | <artifactId>maven-deploy-plugin</artifactId> |
|
78 | 78 | </execution> |
79 | 79 | </executions> |
80 | 80 | </plugin> |
81 | | - <plugin> |
82 | | - <groupId>org.sonatype.plugins</groupId> |
83 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
84 | | - <version>${nexus.staging.plugin.version}</version> |
| 81 | + <plugin> |
| 82 | + <groupId>org.sonatype.central</groupId> |
| 83 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 84 | + <version>${central.publishing.maven.plugin.version}</version> |
85 | 85 | <extensions>true</extensions> |
86 | | - <executions> |
87 | | - <execution> |
88 | | - <id>default-deploy</id> |
89 | | - <phase>deploy</phase> |
90 | | - <goals> |
91 | | - <goal>deploy</goal> |
92 | | - </goals> |
93 | | - </execution> |
94 | | - </executions> |
95 | 86 | <configuration> |
96 | | - <serverId>ossrh</serverId> |
97 | | - <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
98 | | - <autoReleaseAfterClose>false</autoReleaseAfterClose> |
| 87 | + <publishingServerId>ossrh</publishingServerId> |
| 88 | + <autoPublish>false</autoPublish> |
99 | 89 | </configuration> |
100 | | - </plugin> |
101 | | - |
| 90 | + </plugin> |
102 | 91 | <plugin> |
103 | 92 | <groupId>org.apache.maven.plugins</groupId> |
104 | 93 | <artifactId>maven-source-plugin</artifactId> |
|
0 commit comments