Skip to content

Commit

Permalink
Add a profile for the release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Rsotosan committed Jul 8, 2021
1 parent 8daec10 commit ba408b5
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adm-scripts/do_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ set -ex
cd ./es.optsicom.lib.parent

mvn -B versions:set -DgenerateBackupPoms=false -DnewVersion="$VERSION"
mvn -B clean package
mvn -B clean deploy
mvn -B -DperformRelease=true clean package
mvn -B -DperformRelease=true clean deploy

# Github commit

Expand Down
1 change: 1 addition & 0 deletions es.optsicom.lib.parent/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/.settings
/.project
/target
29 changes: 29 additions & 0 deletions es.optsicom.lib.parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,35 @@
</plugins>
</build>
</profile>
<profile>
<id>release-artifact</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
</profiles>


Expand Down

0 comments on commit ba408b5

Please sign in to comment.