Skip to content

Commit 9dcf485

Browse files
author
Ken Gullaksen
committed
trying to get sonatype release to work again.. (#28)
1 parent 10e13d9 commit 9dcf485

File tree

1 file changed

+47
-12
lines changed

1 file changed

+47
-12
lines changed

pom.xml

+47-12
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<groupId>net.glxn.qrgen</groupId>
1313
<artifactId>qrgen-parent</artifactId>
14-
<version>2.0-SNAPSHOT</version>
14+
<version>2.1-SNAPSHOT</version>
1515
<packaging>pom</packaging>
1616
<name>QRGen-parent</name>
1717
<description>a simple QRCode generation api for java built on top ZXING</description>
@@ -55,6 +55,7 @@
5555
<maven-compiler-plugin.version>2.3.2</maven-compiler-plugin.version>
5656
<maven-checkstyle-plugin.version>2.12.1</maven-checkstyle-plugin.version>
5757
<nexus-staging-maven-plugin.version>1.6.3</nexus-staging-maven-plugin.version>
58+
<maven-gpg-plugin.version>1.5</maven-gpg-plugin.version>
5859
</properties>
5960

6061
<reporting>
@@ -77,6 +78,51 @@
7778
</plugins>
7879
</reporting>
7980

81+
<profiles>
82+
<profile>
83+
<id>sonatype-oss-release</id>
84+
<distributionManagement>
85+
<snapshotRepository>
86+
<id>ossrh</id>
87+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
88+
</snapshotRepository>
89+
<repository>
90+
<id>ossrh</id>
91+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
92+
</repository>
93+
</distributionManagement>
94+
<build>
95+
<plugins>
96+
<plugin>
97+
<groupId>org.apache.maven.plugins</groupId>
98+
<artifactId>maven-gpg-plugin</artifactId>
99+
<version>${maven-gpg-plugin.version}</version>
100+
<executions>
101+
<execution>
102+
<id>sign-artifacts</id>
103+
<phase>verify</phase>
104+
<goals>
105+
<goal>sign</goal>
106+
</goals>
107+
</execution>
108+
</executions>
109+
</plugin>
110+
<plugin>
111+
<groupId>org.sonatype.plugins</groupId>
112+
<artifactId>nexus-staging-maven-plugin</artifactId>
113+
<version>${nexus-staging-maven-plugin.version}</version>
114+
<extensions>true</extensions>
115+
<configuration>
116+
<serverId>ossrh</serverId>
117+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
118+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
119+
</configuration>
120+
</plugin>
121+
</plugins>
122+
</build>
123+
</profile>
124+
</profiles>
125+
80126
<build>
81127
<plugins>
82128
<plugin>
@@ -99,17 +145,6 @@
99145
</execution>
100146
</executions>
101147
</plugin>
102-
<plugin>
103-
<groupId>org.sonatype.plugins</groupId>
104-
<artifactId>nexus-staging-maven-plugin</artifactId>
105-
<version>${nexus-staging-maven-plugin.version}</version>
106-
<extensions>true</extensions>
107-
<configuration>
108-
<serverId>ossrh</serverId>
109-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
110-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
111-
</configuration>
112-
</plugin>
113148
</plugins>
114149
</build>
115150

0 commit comments

Comments
 (0)