Skip to content

Commit

Permalink
Updated release files a bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
highsource committed Oct 2, 2014
1 parent 070173a commit f2ed584
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 42 deletions.
17 changes: 7 additions & 10 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,26 +72,23 @@
<profiles>
<profile>
<id>samples</id>
<activation>
<property>
<name>samples</name>
</property>
</activation>
<modules>
<module>samples</module>
</modules>
</profile>
<profile>
<id>tests</id>
<activation>
<property>
<name>tests</name>
</property>
</activation>
<modules>
<module>tests</module>
</modules>
</profile>
<profile>
<id>all</id>
<modules>
<module>samples</module>
<module>tests</module>
</modules>
</profile>
</profiles>
<properties>
<jaxb.version>2.2.7</jaxb.version>
Expand Down
16 changes: 8 additions & 8 deletions qrelease.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@ set JAVA_HOME=%JAVA6_HOME%

echo Performing a full clean build.
rem pause
call mvn clean install -DperformRelease -Ptests,samples
call mvn clean install -DperformRelease -Pall
echo Full clean build completed.
rem pause

echo Setting new version to %1.
rem pause
call mvn versions:set -Ptests,samples -DnewVersion=%1
call mvn versions:set -Pall -DnewVersion=%1
echo Version was set to %1.
rem pause
call mvn versions:commit -Ptests,samples
call mvn versions:commit -Pall
echo Version %1 committed.
rem pause

echo Performing a full clean build.
rem pause
call mvn clean install -Ptests,samples -DperformRelease
call mvn clean install -Pall -DperformRelease
echo Full clean build completed.
rem pause

Expand All @@ -44,22 +44,22 @@ rem pause

echo Performing full clean deploy.
rem pause
call mvn -DperformRelease -Psonatype-oss-release,tests,samples clean deploy
call mvn -DperformRelease -Psonatype-oss-release,all clean deploy
echo Full clean deploy done.
rem pause

echo Setting new version to %2.
rem pause
call mvn versions:set -Ptests,samples -DnewVersion=%2
call mvn versions:set -Pall -DnewVersion=%2
echo Version was set to %2.
rem pause
call mvn versions:commit -Ptests,samples
call mvn versions:commit -Pall
echo Version %2 was committed.
rem pause

echo Performing a full clean build.
rem pause
call mvn clean install -DperformRelease -Ptests,samples
call mvn clean install -DperformRelease -Pall
echo Full clean build completed.
rem pause

Expand Down
51 changes: 27 additions & 24 deletions release.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,75 +2,78 @@ setlocal
echo Setting JAVA_HOME to %JAVA6_HOME%.
set JAVA_HOME=%JAVA6_HOME%

echo Performing a short clean build.
pause
call mvn clean install -DperformRelease
echo Short clean build completed.
pause

echo Performing a full clean build.
pause
call mvn clean install -DperformRelease -Psamples,tests,dist
call mvn clean install -DperformRelease -Pall
echo Full clean build completed.
pause

echo Setting new version to %1.
pause
call mvn versions:set -Psamples,tests,dist -DnewVersion=%1
call mvn versions:set -Pall -DnewVersion=%1
echo Version was set to %1.
pause
call mvn versions:commit -Psamples,tests,dist
call mvn versions:commit -Pall
echo Version %1 committed.
pause

echo Performing a short clean build.
pause
call mvn clean install -DperformRelease
echo Short clean build completed.
pause

echo Performing a full clean build.
pause
call mvn clean install -Psamples,tests,dist -DperformRelease
call mvn clean install -Pall -DperformRelease
echo Full clean build completed.
pause

echo Checking in version %1.
pause
call mvn scm:checkin -Dmessage="Version %1"
git commit -a -m "Version %1"
echo Version %1 was checked in.
pause

echo Tagging version %1.
pause
call mvn scm:tag -Dtag=%1
git tag -a %1 -m "Version %1"
echo Version %1 was tagged.
pause

echo Pushing version %1.
pause
git push origin master
git push --tags origin master
echo Version %1 was pushed.
pause

echo Performing full clean deploy.
pause
call mvn -DperformRelease -Psonatype-oss-release,samples,tests,dist clean deploy
call mvn -DperformRelease -Psonatype-oss-release,all clean deploy
echo Full clean deploy done.
pause

echo Setting new version to %2.
pause
call mvn versions:set -Psamples,tests,dist -DnewVersion=%2
call mvn versions:set -Pall -DnewVersion=%2
echo Version was set to %2.
pause
call mvn versions:commit -Psamples,tests,dist
call mvn versions:commit -Pall
echo Version %2 was committed.
pause

echo Performing a short clean build.
echo Performing a full clean build.
pause
call mvn clean install -DperformRelease
call mvn clean install -DperformRelease -Pall
echo Full clean build completed.
pause

echo Checking in version %2.
pause
call mvn scm:checkin -Dmessage="Version %2"
git commit -a -m "Version %2"
echo Version %2 was checked in.
pause

echo Pushing version %2.
pause
git push origin master
git push --tags origin master
echo Version %2 was pushed.
pause

endlocal

0 comments on commit f2ed584

Please sign in to comment.