Skip to content

Commit df39fdb

Browse files
committed
release profile for ci
1 parent f7642ed commit df39fdb

File tree

2 files changed

+43
-33
lines changed

2 files changed

+43
-33
lines changed

Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
test: clean
2-
mvn verify
2+
mvn -B verify
33

44
clean:
5-
mvn clean
5+
mvn -B clean
66
rm -rf coverage
77

88
publish: clean
9-
mvn deploy
9+
mvn -B -Prelease deploy
1010

1111
purge: clean
1212
rm -rf .idea *.iml pom.xml.releaseBackup release.properties

pom.xml

+40-30
Original file line numberDiff line numberDiff line change
@@ -62,24 +62,48 @@
6262
</snapshotRepository>
6363
</distributionManagement>
6464

65+
<profiles>
66+
<profile>
67+
<id>release</id>
68+
<build>
69+
<plugins>
70+
<plugin>
71+
<groupId>org.apache.maven.plugins</groupId>
72+
<artifactId>maven-release-plugin</artifactId>
73+
<version>2.5.3</version>
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+
<plugin>
87+
<groupId>org.apache.maven.plugins</groupId>
88+
<artifactId>maven-gpg-plugin</artifactId>
89+
<version>1.5</version>
90+
<executions>
91+
<execution>
92+
<id>sign-artifacts</id>
93+
<phase>verify</phase>
94+
<goals>
95+
<goal>sign</goal>
96+
</goals>
97+
</execution>
98+
</executions>
99+
</plugin>
100+
</plugins>
101+
</build>
102+
</profile>
103+
</profiles>
104+
65105
<build>
66106
<plugins>
67-
<plugin>
68-
<groupId>org.apache.maven.plugins</groupId>
69-
<artifactId>maven-release-plugin</artifactId>
70-
<version>2.5.3</version>
71-
</plugin>
72-
<plugin>
73-
<groupId>org.sonatype.plugins</groupId>
74-
<artifactId>nexus-staging-maven-plugin</artifactId>
75-
<version>1.6.7</version>
76-
<extensions>true</extensions>
77-
<configuration>
78-
<serverId>ossrh</serverId>
79-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
80-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
81-
</configuration>
82-
</plugin>
83107
<plugin>
84108
<groupId>org.apache.maven.plugins</groupId>
85109
<artifactId>maven-compiler-plugin</artifactId>
@@ -116,20 +140,6 @@
116140
</execution>
117141
</executions>
118142
</plugin>
119-
<plugin>
120-
<groupId>org.apache.maven.plugins</groupId>
121-
<artifactId>maven-gpg-plugin</artifactId>
122-
<version>1.5</version>
123-
<executions>
124-
<execution>
125-
<id>sign-artifacts</id>
126-
<phase>verify</phase>
127-
<goals>
128-
<goal>sign</goal>
129-
</goals>
130-
</execution>
131-
</executions>
132-
</plugin>
133143
</plugins>
134144
</build>
135145

0 commit comments

Comments
 (0)