|
27 | 27 | </developer> |
28 | 28 | </developers> |
29 | 29 |
|
| 30 | + <scm> |
| 31 | + <connection>scm:git:https://github.com/dfa1/zstd-java.git</connection> |
| 32 | + <developerConnection>scm:git:git@github.com:dfa1/zstd-java.git</developerConnection> |
| 33 | + <url>https://github.com/dfa1/zstd-java</url> |
| 34 | + <tag>HEAD</tag> |
| 35 | + </scm> |
| 36 | + |
30 | 37 | <modules> |
31 | 38 | <module>native/osx-aarch64</module> |
32 | 39 | <module>native/osx-x86_64</module> |
|
43 | 50 | <properties> |
44 | 51 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
45 | 52 | <maven.compiler.release>25</maven.compiler.release> |
| 53 | + <central-publishing-plugin.version>0.11.0</central-publishing-plugin.version> |
| 54 | + <maven-gpg-plugin.version>3.2.8</maven-gpg-plugin.version> |
| 55 | + <maven-source-plugin.version>3.4.0</maven-source-plugin.version> |
| 56 | + <maven-javadoc-plugin.version>3.12.0</maven-javadoc-plugin.version> |
46 | 57 | </properties> |
47 | 58 |
|
48 | 59 | <dependencyManagement> |
|
186 | 197 | </plugin> |
187 | 198 | </plugins> |
188 | 199 | </build> |
| 200 | + |
| 201 | + <profiles> |
| 202 | + <!-- Release to Maven Central: ./mvnw deploy -Prelease |
| 203 | + Prerequisites: |
| 204 | + 1. Register namespace io.github.dfa1 at central.sonatype.com. |
| 205 | + 2. Generate a user token (Account / User Tokens) and add it to |
| 206 | + ~/.m2/settings.xml as a server with id "central". |
| 207 | + 3. A published GPG key. |
| 208 | + CI does this on a v* tag via .github/workflows/publish.yml. --> |
| 209 | + <profile> |
| 210 | + <id>release</id> |
| 211 | + <build> |
| 212 | + <plugins> |
| 213 | + <plugin> |
| 214 | + <groupId>org.apache.maven.plugins</groupId> |
| 215 | + <artifactId>maven-source-plugin</artifactId> |
| 216 | + <version>${maven-source-plugin.version}</version> |
| 217 | + <executions> |
| 218 | + <execution> |
| 219 | + <id>attach-sources</id> |
| 220 | + <goals> |
| 221 | + <goal>jar-no-fork</goal> |
| 222 | + </goals> |
| 223 | + </execution> |
| 224 | + </executions> |
| 225 | + </plugin> |
| 226 | + <plugin> |
| 227 | + <groupId>org.apache.maven.plugins</groupId> |
| 228 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 229 | + <version>${maven-javadoc-plugin.version}</version> |
| 230 | + <executions> |
| 231 | + <execution> |
| 232 | + <id>attach-javadocs</id> |
| 233 | + <goals> |
| 234 | + <goal>jar</goal> |
| 235 | + </goals> |
| 236 | + </execution> |
| 237 | + </executions> |
| 238 | + <configuration> |
| 239 | + <doclint>none</doclint> |
| 240 | + </configuration> |
| 241 | + </plugin> |
| 242 | + <plugin> |
| 243 | + <groupId>org.apache.maven.plugins</groupId> |
| 244 | + <artifactId>maven-gpg-plugin</artifactId> |
| 245 | + <version>${maven-gpg-plugin.version}</version> |
| 246 | + <executions> |
| 247 | + <execution> |
| 248 | + <id>sign-artifacts</id> |
| 249 | + <phase>verify</phase> |
| 250 | + <goals> |
| 251 | + <goal>sign</goal> |
| 252 | + </goals> |
| 253 | + <configuration> |
| 254 | + <gpgArguments> |
| 255 | + <arg>--pinentry-mode</arg> |
| 256 | + <arg>loopback</arg> |
| 257 | + </gpgArguments> |
| 258 | + </configuration> |
| 259 | + </execution> |
| 260 | + </executions> |
| 261 | + </plugin> |
| 262 | + <plugin> |
| 263 | + <groupId>org.sonatype.central</groupId> |
| 264 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 265 | + <version>${central-publishing-plugin.version}</version> |
| 266 | + <extensions>true</extensions> |
| 267 | + <configuration> |
| 268 | + <publishingServerId>central</publishingServerId> |
| 269 | + <autoPublish>true</autoPublish> |
| 270 | + <waitUntil>published</waitUntil> |
| 271 | + </configuration> |
| 272 | + </plugin> |
| 273 | + </plugins> |
| 274 | + </build> |
| 275 | + </profile> |
| 276 | + </profiles> |
189 | 277 | </project> |
0 commit comments