Skip to content

Commit 0559675

Browse files
committed
[maven-release-plugin] prepare release jcasbin-1.6.2
1 parent dc122cd commit 0559675

File tree

1 file changed

+121
-34
lines changed

1 file changed

+121
-34
lines changed

pom.xml

Lines changed: 121 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0"
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<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">
53
<modelVersion>4.0.0</modelVersion>
64

75
<groupId>org.casbin</groupId>
86
<artifactId>jcasbin</artifactId>
9-
<version>1.6.1</version>
7+
<version>1.6.2</version>
108

119
<name>JCasbin Authorization Library</name>
1210
<description>An authorization library that supports access control models like ACL, RBAC, ABAC in Java</description>
@@ -37,8 +35,8 @@
3735
</licenses>
3836
<scm>
3937
<url>https://github.com/casbin/jcasbin</url>
40-
<connection>git@github.com:casbin/jcasbin.git</connection>
41-
<developerConnection>https://github.com/hsluoyz</developerConnection>
38+
<connection>scm:git@github.com:casbin/jcasbin.git</connection>
39+
<developerConnection>scm:git:https://github.com/casbin/jcasbin.git</developerConnection>
4240
</scm>
4341
<developers>
4442
<developer>
@@ -47,41 +45,130 @@
4745
<url>https://github.com/hsluoyz</url>
4846
</developer>
4947
</developers>
48+
<distributionManagement>
49+
<snapshotRepository>
50+
<id>ossrh</id>
51+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
52+
</snapshotRepository>
53+
<repository>
54+
<id>ossrh</id>
55+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
56+
</repository>
57+
</distributionManagement>
5058

5159
<properties>
5260
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
5361
<slf4j.version>1.7.25</slf4j.version>
5462
</properties>
5563

5664
<build>
57-
<plugins>
58-
<plugin>
59-
<groupId>org.apache.maven.plugins</groupId>
60-
<artifactId>maven-compiler-plugin</artifactId>
61-
<configuration>
62-
<source>1.8</source>
63-
<target>1.8</target>
64-
</configuration>
65-
</plugin>
66-
<plugin>
67-
<groupId>org.eluder.coveralls</groupId>
68-
<artifactId>coveralls-maven-plugin</artifactId>
69-
<version>4.3.0</version>
70-
</plugin>
71-
<plugin>
72-
<groupId>org.jacoco</groupId>
73-
<artifactId>jacoco-maven-plugin</artifactId>
74-
<version>0.7.6.201602180812</version>
75-
<executions>
76-
<execution>
77-
<id>prepare-agent</id>
78-
<goals>
79-
<goal>prepare-agent</goal>
80-
</goals>
81-
</execution>
82-
</executions>
83-
</plugin>
84-
</plugins>
65+
<pluginManagement>
66+
<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>
85+
<plugin>
86+
<!-- Allow attaching Javadoc during releases -->
87+
<groupId>org.apache.maven.plugins</groupId>
88+
<artifactId>maven-javadoc-plugin</artifactId>
89+
<version>2.10.4</version>
90+
<configuration>
91+
<source>11</source>
92+
<detectJavaApiLink>false</detectJavaApiLink>
93+
<!-- Turn off Java 8 strict Javadoc checking -->
94+
<additionalparam>-Xdoclint:none</additionalparam>
95+
<tags>
96+
<tag>
97+
<name>notnull</name>
98+
<placement>a</placement>
99+
<head>Not null</head>
100+
</tag>
101+
<tag>
102+
<name>default</name>
103+
<placement>a</placement>
104+
<head>Default:</head>
105+
</tag>
106+
</tags>
107+
</configuration>
108+
<executions>
109+
<!-- Compress Javadoc into JAR and include that JAR when deploying. -->
110+
<execution>
111+
<id>attach-javadocs</id>
112+
<goals>
113+
<goal>jar</goal>
114+
</goals>
115+
</execution>
116+
</executions>
117+
</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>
144+
<plugin>
145+
<groupId>org.apache.maven.plugins</groupId>
146+
<artifactId>maven-compiler-plugin</artifactId>
147+
<configuration>
148+
<source>1.8</source>
149+
<target>1.8</target>
150+
</configuration>
151+
</plugin>
152+
<plugin>
153+
<groupId>org.eluder.coveralls</groupId>
154+
<artifactId>coveralls-maven-plugin</artifactId>
155+
<version>4.3.0</version>
156+
</plugin>
157+
<plugin>
158+
<groupId>org.jacoco</groupId>
159+
<artifactId>jacoco-maven-plugin</artifactId>
160+
<version>0.7.6.201602180812</version>
161+
<executions>
162+
<execution>
163+
<id>prepare-agent</id>
164+
<goals>
165+
<goal>prepare-agent</goal>
166+
</goals>
167+
</execution>
168+
</executions>
169+
</plugin>
170+
</plugins>
171+
</pluginManagement>
85172
</build>
86173

87174
<dependencies>

0 commit comments

Comments
 (0)