|
5 | 5 |
|
6 | 6 | <groupId>io.dangernoodle</groupId>
|
7 | 7 | <artifactId>dangernoodle-io-org-pom</artifactId>
|
8 |
| - <version>13-SNAPSHOT</version> |
| 8 | + <version>0.1.0-SNAPSHOT</version> |
9 | 9 | <packaging>pom</packaging>
|
10 | 10 |
|
11 | 11 | <name>${project.artifactId}</name>
|
|
16 | 16 | <!--
|
17 | 17 | plugins defined here are required by all projects
|
18 | 18 | -->
|
| 19 | + <central-publishing-maven-plugin.version>0.5.0</central-publishing-maven-plugin.version> |
19 | 20 | <maven-deploy-plugin.version>${maven-install-plugin.version}</maven-deploy-plugin.version>
|
20 |
| - <maven-gpg-plugin.version>3.0.1</maven-gpg-plugin.version> |
21 |
| - <maven-install-plugin.version>3.1.0</maven-install-plugin.version> |
22 |
| - <maven-release-plugin.version>3.0.0-M7</maven-release-plugin.version> |
23 |
| - <nexus-staging-plugin.version>1.6.13</nexus-staging-plugin.version> |
| 21 | + <maven-gpg-plugin.version>3.2.5</maven-gpg-plugin.version> |
| 22 | + <maven-install-plugin.version>3.1.3</maven-install-plugin.version> |
| 23 | + <maven-release-plugin.version>3.1.1</maven-release-plugin.version> |
24 | 24 | </properties>
|
25 | 25 |
|
26 | 26 | <build>
|
|
55 | 55 | <artifactId>maven-release-plugin</artifactId>
|
56 | 56 | <version>${maven-release-plugin.version}</version>
|
57 | 57 | <configuration>
|
58 |
| - <useReleaseProfile>false</useReleaseProfile> |
59 | 58 | <releaseProfiles>release</releaseProfiles>
|
| 59 | + <tagNameFormat>@{project.version}</tagNameFormat> |
| 60 | + <useReleaseProfile>false</useReleaseProfile> |
60 | 61 | </configuration>
|
61 | 62 | </plugin>
|
62 | 63 | <plugin>
|
63 |
| - <groupId>org.sonatype.plugins</groupId> |
64 |
| - <artifactId>nexus-staging-maven-plugin</artifactId> |
65 |
| - <version>${nexus-staging-plugin.version}</version> |
| 64 | + <groupId>org.sonatype.central</groupId> |
| 65 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 66 | + <version>${central-publishing-maven-plugin.version}</version> |
66 | 67 | <extensions>true</extensions>
|
67 | 68 | <configuration>
|
68 |
| - <serverId>ossrh</serverId> |
69 |
| - <autoReleaseAfterClose>true</autoReleaseAfterClose> |
| 69 | + <deploymentName>${project.artifactId}-${project.version}</deploymentName> |
| 70 | + <publishingServerId>central</publishingServerId> |
| 71 | + <autoPublish>true</autoPublish> |
| 72 | + <waitUntil>published</waitUntil> |
70 | 73 | </configuration>
|
71 | 74 | </plugin>
|
72 | 75 | </plugins>
|
|
77 | 80 | <connection>scm:git:git@github.com/dangernoodle-io/dangernoodle-io-org-pom.git</connection>
|
78 | 81 | <developerConnection>scm:git:git@github.com:dangernoodle-io/dangernoodle-io-org-pom.git</developerConnection>
|
79 | 82 | <url>https://github.com/dangernoodle-io/dangernoodle-io-org-pom</url>
|
80 |
| - <tag>HEAD</tag> |
| 83 | + <tag>dangernoodle-io-org-pom-13</tag> |
81 | 84 | </scm>
|
82 | 85 |
|
83 | 86 | <organization>
|
|
105 | 108 | <url>https://github.com/dangernoodle-io/dangernoodle-io-org-pom/issues</url>
|
106 | 109 | </issueManagement>
|
107 | 110 |
|
108 |
| - <distributionManagement> |
109 |
| - <snapshotRepository> |
110 |
| - <id>ossrh</id> |
111 |
| - <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
112 |
| - </snapshotRepository> |
113 |
| - <repository> |
114 |
| - <id>ossrh</id> |
115 |
| - <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url> |
116 |
| - </repository> |
117 |
| - </distributionManagement> |
118 |
| - |
119 | 111 | <profiles>
|
| 112 | + <profile> |
| 113 | + <id>github</id> |
| 114 | + <activation> |
| 115 | + <property> |
| 116 | + <name>MAVEN_GPG_PASSPHRASE</name> |
| 117 | + </property> |
| 118 | + </activation> |
| 119 | + <build> |
| 120 | + <plugins> |
| 121 | + <plugin> |
| 122 | + <groupId>org.apache.maven.plugins</groupId> |
| 123 | + <artifactId>maven-gpg-plugin</artifactId> |
| 124 | + <configuration> |
| 125 | + <signer>bc</signer> |
| 126 | + </configuration> |
| 127 | + </plugin> |
| 128 | + </plugins> |
| 129 | + </build> |
| 130 | + </profile> |
120 | 131 | <profile>
|
121 | 132 | <id>release</id>
|
122 | 133 | <build>
|
|
126 | 137 | <artifactId>maven-gpg-plugin</artifactId>
|
127 | 138 | </plugin>
|
128 | 139 | <plugin>
|
129 |
| - <groupId>org.sonatype.plugins</groupId> |
130 |
| - <artifactId>nexus-staging-maven-plugin</artifactId> |
| 140 | + <groupId>org.sonatype.central</groupId> |
| 141 | + <artifactId>central-publishing-maven-plugin</artifactId> |
131 | 142 | </plugin>
|
132 | 143 | </plugins>
|
133 | 144 | </build>
|
|
0 commit comments