Skip to content
Permalink
Browse files
add release plugin
  • Loading branch information
EricJoy2048 committed Jul 25, 2020
1 parent 17f3f62 commit 0b4dfbf675e5942d6a86dcb92a77ebbe05de6f99
Showing 1 changed file with 52 additions and 2 deletions.
54 pom.xml
@@ -173,11 +173,13 @@
<artifactId>takari-lifecycle-plugin</artifactId>
<version>${takariLifecycleVersion}</version>
<configuration>
<!-- compile/testCompile -->
<source>${takari.javaSourceVersion}</source>
<compilerId>${takari.compilerId}</compilerId>
<transitiveDependencyReference>${takari.transitiveDependencyReference}</transitiveDependencyReference>
<privatePackageReference>${takari.privatePackageReference}</privatePackageReference>
<proc>${takari.annotationProcessing}</proc>
<!-- jar -->
<sourceJar>${takari.sourceJar}</sourceJar>
<testJar>${takari.testJar}</testJar>
</configuration>
@@ -202,6 +204,7 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<!-- disable accidental use, must use takari-lifecycle -->
<skip>true</skip>
<skipMain>true</skipMain>
</configuration>
@@ -211,6 +214,7 @@
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<!-- disable accidental use, must use takari-lifecycle -->
<skip>true</skip>
</configuration>
</plugin>
@@ -239,6 +243,7 @@
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
<configuration>
<!-- disable accidental use, must use takari-lifecycle -->
<skip>true</skip>
</configuration>
</plugin>
@@ -247,10 +252,25 @@
<artifactId>maven-jar-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<!-- disable accidental use, must use takari-lifecycle -->
<skip>true</skip>
</configuration>
</plugin>

<!-- START SNIPPET: release-plugin-configuration -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<localCheckout>true</localCheckout>
<pushChanges>false</pushChanges>
<useReleaseProfile>false</useReleaseProfile>
<autoVersionSubmodules>true</autoVersionSubmodules>
<goals>deploy</goals>
<arguments>--batch-mode -Prelease-profile</arguments>
</configuration>
</plugin>
<!-- END SNIPPET: release-plugin-configuration -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-remote-resources-plugin</artifactId>
@@ -261,6 +281,7 @@
<artifactId>maven-resources-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<!-- disable accidental use, must use takari-lifecycle -->
<skip>true</skip>
</configuration>
</plugin>
@@ -388,5 +409,34 @@
</plugins>
</pluginManagement>
</build>

<profiles>
<profile>
<id>release-profile</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<configuration>
<passphrase>${gpg.passphrase}</passphrase>
</configuration>
<executions>
<execution>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit 0b4dfbf

Please sign in to comment.