@@ -17,7 +17,8 @@ LIFT_TARGET="empty"
1717# sbt command files targeting different Lift versions, see respective files for more information.
1818PUBLISH_25_SBT_COMMAND_FILE=${PWD} /project/autobuildscript/build-publish-Lift25.txt
1919PUBLISH_26_SBT_COMMAND_FILE=${PWD} /project/autobuildscript/build-publish-Lift26.txt
20- PUBLISH_30_SBT_COMMAND_FILE=${PWD} /project/autobuildscript/build-publish-Lift3.txt
20+ PUBLISH_30_SBT_COMMAND_FILE=${PWD} /project/autobuildscript/build-publish-Lift30.txt
21+ PUBLISH_31_SBT_COMMAND_FILE=${PWD} /project/autobuildscript/build-publish-Lift31.txt
2122# default location's for java on a ubuntu system
2223JAVA_6_PATH=/usr/lib/jvm/java-6-oracle/jre/bin/java
2324JAVA_7_PATH=/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java
@@ -115,14 +116,28 @@ function do30Publish {
115116 debug " \n***...done processing the sbt command file***\n"
116117}
117118
119+ # Execute the necessary steps for publishing a Lift 3.1 module build
120+ function do31Publish {
121+ debug " \nTarget is set to Lift v3.1, require java-8" ;
122+ if ! requiredJavaIsSuccessfullySet $JAVA_8_PATH ; then
123+ die " java-8 dosen't seem to be present, cancelling release build!"
124+ fi
125+ debug " Current java environment is java-8\n"
126+ debug " \n***Start processing the sbt command file.***\n"
127+ sbt < $PUBLISH_31_SBT_COMMAND_FILE 2>&1 | tee ${LOG_FILE}
128+ debug " \n***...done processing the sbt command file***\n"
129+ }
130+
118131function runMain {
119132 if [ $LIFT_TARGET == " 2.5" ]; then {
120133 do25Publish
121134 } elif [ $LIFT_TARGET == " 2.6" ]; then {
122135 do26Publish
123136 } elif [ $LIFT_TARGET == " 3.0" ]; then {
124137 do30Publish
125- } else
138+ } elif [ $LIFT_TARGET == " 3.1" ]; then {
139+ do31Publish
140+ } else
126141 echo -e " \nNo target set! You need to specify a Lift version as target.\nUsage ./project/autobuildscript/publish.sh -t [2.5,2.6,3.x]\n" ;
127142 fi
128143}
0 commit comments