1+ @ REM 
2+ @ REM  Copyright © 2005-2015, Alexey Valikov
3+ @ REM  All rights reserved.
4+ @ REM 
5+ @ REM  Redistribution and use in source and binary forms, with or without
6+ @ REM  modification, are permitted provided that the following conditions are met:
7+ @ REM 
8+ @ REM  1. Redistributions of source code must retain the above copyright notice, this
9+ @ REM     list of conditions and the following disclaimer.
10+ @ REM  2. Redistributions in binary form must reproduce the above copyright notice,
11+ @ REM     this list of conditions and the following disclaimer in the documentation
12+ @ REM     and/or other materials provided with the distribution.
13+ @ REM 
14+ @ REM  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
15+ @ REM  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
16+ @ REM  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17+ @ REM  DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
18+ @ REM  ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
19+ @ REM  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
20+ @ REM  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
21+ @ REM  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22+ @ REM  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
23+ @ REM  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24+ @ REM 
25+ @ REM  The views and conclusions contained in the software and documentation are those
26+ @ REM  of the authors and should not be interpreted as representing official policies,
27+ @ REM  either expressed or implied, of the FreeBSD Project.
28+ @ REM 
29+ 
30+ setlocal 
31+ echo  Setting JAVA_HOME to %JAVA6_HOME% .
32+ set  JAVA_HOME = %JAVA6_HOME% 
33+ 
34+ echo  Performing a full clean build.
35+ rem  pause
36+ call  mvn clean install -DperformRelease -Pall
37+ echo  Full clean build completed.
38+ rem  pause
39+ 
40+ echo  Setting new version to %1 .
41+ rem  pause
42+ call  mvn versions:set -Pall -DnewVersion=%1 
43+ echo  Version was set to %1 .
44+ rem  pause
45+ call  mvn versions:commit -Pall
46+ echo  Version %1  committed.
47+ rem  pause
48+ 
49+ echo  Performing a full clean build.
50+ rem  pause
51+ call  mvn clean install -Pall -DperformRelease
52+ echo  Full clean build completed.
53+ rem  pause
54+ 
55+ echo  Checking in version %1 .
56+ rem  pause
57+ git commit -a -m " Version %1 " 
58+ echo  Version %1  was checked in.
59+ rem  pause
60+ 
61+ echo  Tagging version %1 .
62+ rem  pause
63+ git tag -a %1  -m " Version %1 " 
64+ echo  Version %1  was tagged.
65+ rem  pause
66+ 
67+ echo  Pushing version %1 .
68+ rem  pause
69+ git push origin master
70+ git push --tags origin master
71+ echo  Version %1  was pushed.
72+ rem  pause
73+ 
74+ echo  Performing full clean deploy.
75+ rem  pause
76+ call  mvn -DperformRelease -Psonatype-oss-release,all clean deploy
77+ echo  Full clean deploy done.
78+ rem  pause
79+ 
80+ echo  Setting new version to %2 .
81+ rem  pause
82+ call  mvn versions:set -Pall -DnewVersion=%2 
83+ echo  Version was set to %2 .
84+ rem  pause
85+ call  mvn versions:commit -Pall
86+ echo  Version %2  was committed.
87+ rem  pause
88+ 
89+ echo  Performing a full clean build.
90+ rem  pause
91+ call  mvn clean install -DperformRelease -Pall
92+ echo  Full clean build completed.
93+ rem  pause
94+ 
95+ 
96+ echo  Checking in version %2 .
97+ rem  pause
98+ git commit -a -m " Version %2 " 
99+ echo  Version %2  was checked in.
100+ rem  pause
101+ 
102+ echo  Pushing version %2 .
103+ rem  pause
104+ git push origin master
105+ git push --tags origin master
106+ echo  Version %2  was pushed.
107+ rem  pause
108+ 
109+ endlocal 
0 commit comments