Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix travis script to update versions #351

Merged
merged 2 commits into from Sep 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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