Skip to content

Commit 84a1298

Browse files
committed
[maven-release-plugin] prepare release zulip-java-rest-0.0.1
1 parent 82a8f06 commit 84a1298

File tree

1 file changed

+58
-91
lines changed

1 file changed

+58
-91
lines changed

pom.xml

Lines changed: 58 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24

35
<modelVersion>4.0.0</modelVersion>
46

@@ -7,90 +9,44 @@
79
<version>0.0.1-SNAPSHOT</version>
810
<packaging>pom</packaging>
911

12+
<parent>
13+
<groupId>org.sonatype.oss</groupId>
14+
<artifactId>oss-parent</artifactId>
15+
<version>9</version>
16+
</parent>
1017

11-
<profiles>
12-
<!-- GPG Signature on release -->
13-
<profile>
14-
<id>release-sign-artifacts</id>
15-
<activation>
16-
<property>
17-
<name>performRelease</name>
18-
<value>true</value>
19-
</property>
20-
</activation>
21-
<build>
22-
<plugins>
23-
<plugin>
24-
<groupId>org.apache.maven.plugins</groupId>
25-
<artifactId>maven-gpg-plugin</artifactId>
26-
<version>1.6</version>
27-
<executions>
28-
<execution>
29-
<id>sign-artifacts</id>
30-
<phase>verify</phase>
31-
<goals>
32-
<goal>sign</goal>
33-
</goals>
34-
</execution>
35-
</executions>
36-
</plugin>
37-
</plugins>
38-
</build>
39-
</profile>
40-
</profiles>
41-
18+
<distributionManagement>
19+
<snapshotRepository>
20+
<id>ossrh</id>
21+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
22+
</snapshotRepository>
23+
<repository>
24+
<id>ossrh</id>
25+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
26+
</repository>
27+
</distributionManagement>
4228
<build>
4329
<plugins>
4430
<plugin>
45-
<artifactId>maven-deploy-plugin</artifactId>
46-
<version>2.8.2</version>
31+
<groupId>org.apache.maven.plugins</groupId>
32+
<artifactId>maven-source-plugin</artifactId>
33+
<version>2.2.1</version>
4734
<executions>
4835
<execution>
49-
<id>default-deploy</id>
50-
<phase>deploy</phase>
36+
<id>attach-sources</id>
5137
<goals>
52-
<goal>deploy</goal>
38+
<goal>jar-no-fork</goal>
5339
</goals>
5440
</execution>
5541
</executions>
5642
</plugin>
5743
<plugin>
5844
<groupId>org.apache.maven.plugins</groupId>
59-
<artifactId>maven-release-plugin</artifactId>
60-
<version>2.5.3</version>
61-
<configuration>
62-
<localCheckout>true</localCheckout>
63-
<pushChanges>false</pushChanges>
64-
<mavenExecutorId>forked-path</mavenExecutorId>
65-
<arguments>-Dgpg.passphrase=${gpg.passphrase}</arguments>
66-
</configuration>
67-
<dependencies>
68-
<dependency>
69-
<groupId>org.apache.maven.scm</groupId>
70-
<artifactId>maven-scm-provider-gitexe</artifactId>
71-
<version>1.9.5</version>
72-
</dependency>
73-
</dependencies>
74-
</plugin>
75-
<plugin>
76-
<groupId>org.sonatype.plugins</groupId>
77-
<artifactId>nexus-staging-maven-plugin</artifactId>
78-
<version>1.6.7</version>
79-
<extensions>true</extensions>
80-
<configuration>
81-
<serverId>ossrh</serverId>
82-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
83-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
84-
</configuration>
85-
</plugin>
86-
87-
<plugin>
88-
<groupId>org.apache.maven.plugins</groupId>
89-
<artifactId>maven-source-plugin</artifactId>
90-
<version>3.0.1</version>
45+
<artifactId>maven-javadoc-plugin</artifactId>
46+
<version>2.9.1</version>
9147
<executions>
9248
<execution>
93-
<id>attach-sources</id>
49+
<id>attach-javadocs</id>
9450
<goals>
9551
<goal>jar</goal>
9652
</goals>
@@ -99,16 +55,45 @@
9955
</plugin>
10056
<plugin>
10157
<groupId>org.apache.maven.plugins</groupId>
102-
<artifactId>maven-source-plugin</artifactId>
58+
<artifactId>maven-gpg-plugin</artifactId>
59+
<version>1.6</version>
10360
<executions>
10461
<execution>
105-
<id>attach-sources</id>
62+
<id>sign-artifacts</id>
63+
<phase>verify</phase>
10664
<goals>
107-
<goal>jar</goal>
65+
<goal>sign</goal>
10866
</goals>
67+
<configuration>
68+
<keyname>${gpg.keyname}</keyname>
69+
<passphraseServerId>${gpg.keyname}</passphraseServerId>
70+
</configuration>
10971
</execution>
11072
</executions>
11173
</plugin>
74+
<plugin>
75+
<groupId>org.sonatype.plugins</groupId>
76+
<artifactId>nexus-staging-maven-plugin</artifactId>
77+
<version>1.6.7</version>
78+
<extensions>true</extensions>
79+
<configuration>
80+
<serverId>ossrh</serverId>
81+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
82+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
83+
</configuration>
84+
</plugin>
85+
<plugin>
86+
<groupId>org.apache.maven.plugins</groupId>
87+
<artifactId>maven-release-plugin</artifactId>
88+
<version>2.5.3</version>
89+
<dependencies>
90+
<dependency>
91+
<groupId>org.apache.maven.shared</groupId>
92+
<artifactId>maven-invoker</artifactId>
93+
<version>2.2</version>
94+
</dependency>
95+
</dependencies>
96+
</plugin>
11297
</plugins>
11398
</build>
11499

@@ -160,29 +145,11 @@
160145
</license>
161146
</licenses>
162147

163-
<distributionManagement>
164-
<snapshotRepository>
165-
<id>ossrh</id>
166-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
167-
</snapshotRepository>
168-
<repository>
169-
<id>ossrh</id>
170-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
171-
</repository>
172-
</distributionManagement>
173148

174149
<name>Zulip Java REST API</name>
175150
<description>This project aims at providing a thin Java wrapper for the Zulip REST API.</description>
176151
<url>https://github.com/taliox/zulip-java-rest</url>
177152

178-
179-
<scm>
180-
<connection>scm:git:git://github.com/taliox/zulip-java-rest.git</connection>
181-
<developerConnection>scm:git:git@github.com:taliox/taliox.git</developerConnection>
182-
<url>https://github.com/taliox/zulip-java-rest</url>
183-
<tag>zulip-java-rest-0.0.1</tag>
184-
</scm>
185-
186153
<developers>
187154
<developer>
188155
<name>raLaaa</name>

0 commit comments

Comments
 (0)