This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch release/0.9.1 in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 4e3a87582db2a3509e8ec131164c64eb0534b815 Author: Alex Harui <aha...@apache.org> AuthorDate: Thu Feb 8 00:10:46 2018 -0800 need to use 2.5 and do it in a specific order. Otherwise if compiler is changed first later set-properties can't find the compiler artifact since it is asking for a newer version --- releasecandidate.xml | 57 +++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 41 insertions(+), 16 deletions(-) diff --git a/releasecandidate.xml b/releasecandidate.xml index 976be6e..3a03b2d 100644 --- a/releasecandidate.xml +++ b/releasecandidate.xml @@ -598,8 +598,35 @@ <!--<arg value="-DpushChanges=false" />--> <arg value="-DbranchName=release/${release.version}" /> </exec> + <antcall target="update_other_typedef_develop_poms" /> </target> - + + <target name="update_other_typedef_develop_poms" depends="check-royale-typedefs"> + <exec executable="${git}" dir="${typedefs}" failonerror="false" > + <arg value="checkout" /> + <arg value="develop" /> + </exec> + <xmlproperty file="${typedefs}/pom.xml" prefix="pom"/> + <echo>next version is: ${pom.project.version}</echo> + <exec executable="${mvn}" dir="${typedefs}" failonerror="true" > + <arg value="org.codehaus.mojo:versions-maven-plugin:2.5:set-property" /> + <arg value="-DgenerateBackupPoms=false" /> + <arg value="-DallowSnapshots=true" /> + <arg value="-Dproperty=royale.compiler.version" /> + <arg value="-DnewVersion=${pom.project.version}" /> + </exec> + <exec executable="${git}" dir="${typedefs}" failonerror="true" > + <arg value="add" /> + <arg value="." /> + </exec> + <exec executable="${git}" dir="${typedefs}" failonerror="true" > + <arg value="commit" /> + <arg value="-m" /> + <arg value="update other poms to next version" /> + </exec> + <echo>run git show in royale-asjs to double-check the last commit then run git-push</echo> + </target> + <target name="maven.prepare.typedefs"> <!-- http://maven.apache.org/maven-release/maven-release-plugin/examples/prepare-release.html --> <exec executable="${mvn}" dir="${typedefs}" failonerror="true" > @@ -649,8 +676,6 @@ <antcall target="update_other_develop_poms" /> </target> - <!-- The use-latest-version may require that the build has built the framework projects so - you may need to let a build run, then run this target separately --> <target name="update_other_develop_poms" depends="check-royale-asjs"> <exec executable="${git}" dir="${asjs}" failonerror="false" > <arg value="checkout" /> @@ -658,46 +683,46 @@ </exec> <xmlproperty file="${asjs}/pom.xml" prefix="pom"/> <echo>next version is: ${pom.project.version}</echo> - <exec executable="${mvn}" dir="${asjs}" failonerror="true" > - <arg value="versions:set-property" /> + <exec executable="${mvn}" dir="${asjs}/examples" failonerror="true" > + <arg value="org.codehaus.mojo:versions-maven-plugin:2.5:set-property" /> <arg value="-DgenerateBackupPoms=false" /> <arg value="-DallowSnapshots=true" /> <arg value="-Dproperty=royale.framework.version" /> <arg value="-DnewVersion=${pom.project.version}" /> </exec> - <exec executable="${mvn}" dir="${asjs}" failonerror="true" > - <arg value="versions:set-property" /> + <exec executable="${mvn}" dir="${asjs}/archetypes" failonerror="true" > + <arg value="org.codehaus.mojo:versions-maven-plugin:2.5:set-property" /> <arg value="-DgenerateBackupPoms=false" /> <arg value="-DallowSnapshots=true" /> - <arg value="-Dproperty=royale.compiler.version" /> + <arg value="-Dproperty=royale.framework.version" /> <arg value="-DnewVersion=${pom.project.version}" /> </exec> - <exec executable="${mvn}" dir="${asjs}" failonerror="true" > - <arg value="versions:set-property" /> + <exec executable="${mvn}" dir="${asjs}/manualtests" failonerror="true" > + <arg value="org.codehaus.mojo:versions-maven-plugin:2.5:set-property" /> <arg value="-DgenerateBackupPoms=false" /> <arg value="-DallowSnapshots=true" /> - <arg value="-Dproperty=royale.typedefs.version" /> + <arg value="-Dproperty=royale.framework.version" /> <arg value="-DnewVersion=${pom.project.version}" /> </exec> - <exec executable="${mvn}" dir="${asjs}/examples" failonerror="true" > + <exec executable="${mvn}" dir="${asjs}" failonerror="true" > <arg value="org.codehaus.mojo:versions-maven-plugin:2.5:set-property" /> <arg value="-DgenerateBackupPoms=false" /> <arg value="-DallowSnapshots=true" /> <arg value="-Dproperty=royale.framework.version" /> <arg value="-DnewVersion=${pom.project.version}" /> </exec> - <exec executable="${mvn}" dir="${asjs}/archetypes" failonerror="true" > + <exec executable="${mvn}" dir="${asjs}" failonerror="true" > <arg value="org.codehaus.mojo:versions-maven-plugin:2.5:set-property" /> <arg value="-DgenerateBackupPoms=false" /> <arg value="-DallowSnapshots=true" /> - <arg value="-Dproperty=royale.framework.version" /> + <arg value="-Dproperty=royale.typedefs.version" /> <arg value="-DnewVersion=${pom.project.version}" /> </exec> - <exec executable="${mvn}" dir="${asjs}/manualtests" failonerror="true" > + <exec executable="${mvn}" dir="${asjs}" failonerror="true" > <arg value="org.codehaus.mojo:versions-maven-plugin:2.5:set-property" /> <arg value="-DgenerateBackupPoms=false" /> <arg value="-DallowSnapshots=true" /> - <arg value="-Dproperty=royale.framework.version" /> + <arg value="-Dproperty=royale.compiler.version" /> <arg value="-DnewVersion=${pom.project.version}" /> </exec> <exec executable="${git}" dir="${asjs}" failonerror="true" > -- To stop receiving notification emails like this one, please contact aha...@apache.org.