Skip to content

Commit 5d078de

Browse files
committed
[maven-release-plugin] prepare release jcasbin-1.6.3
1 parent 0559675 commit 5d078de

File tree

1 file changed

+64
-45
lines changed

1 file changed

+64
-45
lines changed

pom.xml

Lines changed: 64 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>org.casbin</groupId>
66
<artifactId>jcasbin</artifactId>
7-
<version>1.6.2</version>
7+
<version>1.6.3</version>
88

99
<name>JCasbin Authorization Library</name>
1010
<description>An authorization library that supports access control models like ACL, RBAC, ABAC in Java</description>
@@ -64,24 +64,6 @@
6464
<build>
6565
<pluginManagement>
6666
<plugins>
67-
<plugin>
68-
<groupId>org.apache.maven.plugins</groupId>
69-
<artifactId>maven-gpg-plugin</artifactId>
70-
<version>1.5</version>
71-
<executions>
72-
<execution>
73-
<id>sign-artifacts</id>
74-
<!-- We sign in the verify phase, which means it will happen before install and deploy (the last two phases)
75-
but not before earlier phases like test or package. -->
76-
<phase>verify</phase>
77-
<goals>
78-
<goal>sign</goal>
79-
</goals>
80-
<!-- If using gpg > 2.1 it is necessary for gpg to not try to use the pinentry programs
81-
however, it looks like Travis does not need this entry -->
82-
</execution>
83-
</executions>
84-
</plugin>
8567
<plugin>
8668
<!-- Allow attaching Javadoc during releases -->
8769
<groupId>org.apache.maven.plugins</groupId>
@@ -115,32 +97,6 @@
11597
</execution>
11698
</executions>
11799
</plugin>
118-
<plugin>
119-
<!-- Include zipped source code in releases -->
120-
<groupId>org.apache.maven.plugins</groupId>
121-
<artifactId>maven-source-plugin</artifactId>
122-
<executions>
123-
<execution>
124-
<id>attach-sources</id>
125-
<goals>
126-
<goal>jar-no-fork</goal>
127-
</goals>
128-
</execution>
129-
</executions>
130-
</plugin>
131-
<plugin>
132-
<!-- Automatically close and deploy from OSSRH -->
133-
<groupId>org.sonatype.plugins</groupId>
134-
<artifactId>nexus-staging-maven-plugin</artifactId>
135-
<version>1.6.7</version>
136-
<extensions>true</extensions>
137-
<configuration>
138-
<serverId>ossrh</serverId>
139-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
140-
<!-- Release versions will be synced to Maven Central automatically. -->
141-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
142-
</configuration>
143-
</plugin>
144100
<plugin>
145101
<groupId>org.apache.maven.plugins</groupId>
146102
<artifactId>maven-compiler-plugin</artifactId>
@@ -171,6 +127,69 @@
171127
</pluginManagement>
172128
</build>
173129

130+
<profiles>
131+
<profile>
132+
<id>release</id>
133+
<distributionManagement>
134+
<snapshotRepository>
135+
<id>ossrh</id>
136+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
137+
</snapshotRepository>
138+
<repository>
139+
<id>ossrh</id>
140+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
141+
</repository>
142+
</distributionManagement>
143+
<build>
144+
<plugins>
145+
<plugin>
146+
<groupId>org.apache.maven.plugins</groupId>
147+
<artifactId>maven-gpg-plugin</artifactId>
148+
<version>1.5</version>
149+
<executions>
150+
<execution>
151+
<id>sign-artifacts</id>
152+
<!-- We sign in the verify phase, which means it will happen before install and deploy (the last two phases)
153+
but not before earlier phases like test or package. -->
154+
<phase>verify</phase>
155+
<goals>
156+
<goal>sign</goal>
157+
</goals>
158+
<!-- If using gpg > 2.1 it is necessary for gpg to not try to use the pinentry programs
159+
however, it looks like Travis does not need this entry -->
160+
</execution>
161+
</executions>
162+
</plugin>
163+
<plugin>
164+
<!-- Include zipped source code in releases -->
165+
<groupId>org.apache.maven.plugins</groupId>
166+
<artifactId>maven-source-plugin</artifactId>
167+
<executions>
168+
<execution>
169+
<id>attach-sources</id>
170+
<goals>
171+
<goal>jar-no-fork</goal>
172+
</goals>
173+
</execution>
174+
</executions>
175+
</plugin>
176+
<plugin>
177+
<!-- Automatically close and deploy from OSSRH -->
178+
<groupId>org.sonatype.plugins</groupId>
179+
<artifactId>nexus-staging-maven-plugin</artifactId>
180+
<version>1.6.7</version>
181+
<extensions>true</extensions>
182+
<configuration>
183+
<serverId>ossrh</serverId>
184+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
185+
<!-- Release versions will be synced to Maven Central automatically. -->
186+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
187+
</configuration>
188+
</plugin>
189+
</plugins>
190+
</build>
191+
</profile>
192+
</profiles>
174193
<dependencies>
175194
<dependency>
176195
<groupId>org.slf4j</groupId>

0 commit comments

Comments
 (0)