Skip to content

Commit

Permalink
Fix travis script to update versions (ExpediaGroup#351)
Browse files Browse the repository at this point in the history
* Fix travis script to update versions

Also update to the correct versions that was not done here
ExpediaGroup#350

* Update profile for versions-maven-plugin
  • Loading branch information
smyrick committed Sep 18, 2019
1 parent 327a86a commit 656d2ba
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 18 deletions.
6 changes: 3 additions & 3 deletions .travis/update-version.sh
Expand Up @@ -10,10 +10,10 @@ update_version() {
echo "Updating the version in the POMs"

# Push the tag with `-SNAPSHOT` as the current version
mvn --settings .travis/settings.xml org.codehaus.mojo:versions-maven-plugin:2.7:set -DnewVersion="${TRAVIS_TAG}-SNAPSHOT"
mvn --settings .travis/settings.xml org.codehaus.mojo:versions-maven-plugin:2.7:set -PdefaultBuild -DnewVersion="${TRAVIS_TAG}-SNAPSHOT"

# Increment the patch version
mvn --settings .travis/settings.xml release:update-versions -B
mvn --settings .travis/settings.xml release:update-versions -B -PdefaultBuild

# Pull the new value from the pom
NEW_VERSION=$(mvn --settings .travis/settings.xml help:evaluate -Dexpression=project.version -q -DforceStdout)
Expand All @@ -26,7 +26,7 @@ commit_files() {
git checkout -b ${NEW_VERSION}

# Stage the modified files
git add ./pom.xml ./*/pom.xml
git add ./pom.xml ./**/*/pom.xml

# Print the current files we are going to commit
git status
Expand Down
2 changes: 1 addition & 1 deletion examples/federation/base-app/pom.xml
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.expediagroup</groupId>
<artifactId>graphql-kotlin</artifactId>
<version>1.0.0-RC7-SNAPSHOT</version>
<version>1.0.0-RC8-SNAPSHOT</version>
<relativePath>../../..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion examples/federation/extend-app/pom.xml
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.expediagroup</groupId>
<artifactId>graphql-kotlin</artifactId>
<version>1.0.0-RC7-SNAPSHOT</version>
<version>1.0.0-RC8-SNAPSHOT</version>
<relativePath>../../..</relativePath>
</parent>

Expand Down
6 changes: 2 additions & 4 deletions examples/federation/pom.xml
@@ -1,12 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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>
<artifactId>graphql-kotlin</artifactId>
<groupId>com.expediagroup</groupId>
<version>1.0.0-RC7-SNAPSHOT</version>
<version>1.0.0-RC8-SNAPSHOT</version>
<relativePath>../..</relativePath>
</parent>

Expand Down
6 changes: 2 additions & 4 deletions examples/pom.xml
@@ -1,12 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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>
<artifactId>graphql-kotlin</artifactId>
<groupId>com.expediagroup</groupId>
<version>1.0.0-RC7-SNAPSHOT</version>
<version>1.0.0-RC8-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion examples/spring/pom.xml
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.expediagroup</groupId>
<artifactId>graphql-kotlin</artifactId>
<version>1.0.0-RC7-SNAPSHOT</version>
<version>1.0.0-RC8-SNAPSHOT</version>
<relativePath>../..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion graphql-kotlin-federation/pom.xml
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.expediagroup</groupId>
<artifactId>graphql-kotlin</artifactId>
<version>1.0.0-RC7-SNAPSHOT</version>
<version>1.0.0-RC8-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion graphql-kotlin-schema-generator/pom.xml
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.expediagroup</groupId>
<artifactId>graphql-kotlin</artifactId>
<version>1.0.0-RC7-SNAPSHOT</version>
<version>1.0.0-RC8-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion graphql-kotlin-spring-server/pom.xml
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.expediagroup</groupId>
<artifactId>graphql-kotlin</artifactId>
<version>1.0.0-RC7-SNAPSHOT</version>
<version>1.0.0-RC8-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -4,7 +4,7 @@

<groupId>com.expediagroup</groupId>
<artifactId>graphql-kotlin</artifactId>
<version>1.0.0-RC7-SNAPSHOT</version>
<version>1.0.0-RC8-SNAPSHOT</version>
<name>graphql-kotlin</name>
<description>Code-only GraphQL schema generation for Kotlin</description>
<url>https://github.com/ExpediaGroup/graphql-kotlin</url>
Expand Down

0 comments on commit 656d2ba

Please sign in to comment.