Developing set-version script

This commit is contained in:
Alexey Andreev 2015-12-24 22:10:02 +03:00
parent 4c4d236653
commit 697bc5ec6c
5 changed files with 19 additions and 21 deletions

View File

@ -311,11 +311,5 @@
<module>teavm-samples</module>
</modules>
</profile>
<profile>
<id>enable-eclipse</id>
<modules>
<module>tools/eclipse</module>
</modules>
</profile>
</profiles>
</project>

View File

@ -2,7 +2,15 @@
mvn versions:set -DnewVersion=$1 -DgenerateBackupPoms=false
pushd tools/eclipse
mvn tycho-versions:set-version -DnewVersion=$1
cd core-plugin
mvn org.eclipse.tycho:tycho-versions-plugin:0.21.0:set-version -DnewVersion=$1
pushd core-plugin
mvn -f dep-pom.xml versions:set -DnewVersion=$1 -DgenerateBackupPoms=false
sed -r -i -e "s/lib\/(teavm(-[a-z]+)+)-.+\.jar/\1-$1.jar/" build.properties
sed -r -i -e "s/lib\/(teavm(-[a-z]+)+)-.+\.jar/\1-$1.jar/" META-INF/MANIFEST.MF
popd
pushd m2e-plugin
sed -r -i -e "s/<versionRange>.+<\/versionRange>/<versionRange>$1<\/versionRange>/" lifecycle-mapping-metadata.xml
popd
popd

View File

@ -17,17 +17,17 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.teavm</groupId>
<artifactId>teavm</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>../..</relativePath>
</parent>
<groupId>org.teavm</groupId>
<artifactId>teavm-eclipse-core-deps</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>TeaVM dependencies for Eclipse plugin</name>
<properties>
<jetty.version>9.2.1.v20140609</jetty.version>
</properties>
<dependencies>
<dependency>
<groupId>javax.interceptor</groupId>

View File

@ -5,7 +5,7 @@
<pluginExecutionFilter>
<groupId>org.teavm</groupId>
<artifactId>teavm-maven-plugin</artifactId>
<versionRange>1.0.0.qualifier</versionRange>
<versionRange>0.0.0</versionRange>
<goals>
<goal>compile</goal>
</goals>

View File

@ -17,14 +17,10 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.teavm</groupId>
<artifactId>teavm</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>../..</relativePath>
</parent>
<groupId>org.teavm</groupId>
<artifactId>teavm-eclipse</artifactId>
<packaging>pom</packaging>
<version>1.0.0-SNAPSHOT</version>
<name>TeaVM Eclipse integration</name>
<description>Aggregate project containing all plugins for integration TeaVM with Eclipse</description>