Skip to content

Commit

Permalink
Use correct version for parents
Browse files Browse the repository at this point in the history
The 'android' and 'jre' variant each have their own parent and they
should use that one in Gradle Module Metadata.
  • Loading branch information
jjohannes committed Oct 14, 2020
1 parent c09edc2 commit 1ca9f03
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 14 deletions.
5 changes: 2 additions & 3 deletions android/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,11 @@
<maven-source-plugin.version>3.2.0</maven-source-plugin.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<module.status>integration</module.status>
<module.parentVersion>HEAD-jre-SNAPSHOT</module.parentVersion>
<variant.jvmVersion>6</variant.jvmVersion>
<variant.checkerframework>"checker-compat-qual", "version": { "requires": "2.5.5" }</variant.checkerframework>
<variant.checkerframework>checker-compat-qual</variant.checkerframework>
<otherVariant.version>HEAD-jre-SNAPSHOT</otherVariant.version>
<otherVariant.jvmVersion>8</otherVariant.jvmVersion>
<otherVariant.checkerframework>"checker-qual"</otherVariant.checkerframework>
<otherVariant.checkerframework>checker-qual</otherVariant.checkerframework>
</properties>
<issueManagement>
<system>GitHub Issues</system>
Expand Down
12 changes: 6 additions & 6 deletions guava/module.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"group": "com.google.guava",
"module": "guava-parent",
"version": {
"requires": "${module.parentVersion}"
"requires": "${pom.version}"
},
"attributes": {
"org.gradle.category": "platform"
Expand All @@ -48,7 +48,7 @@
},
{
"group": "org.checkerframework",
"module": ${variant.checkerframework}
"module": "${variant.checkerframework}"
},
{
"group": "com.google.errorprone",
Expand Down Expand Up @@ -97,7 +97,7 @@
"group": "com.google.guava",
"module": "guava-parent",
"version": {
"requires": "${module.parentVersion}"
"requires": "${pom.version}"
},
"attributes": {
"org.gradle.category": "platform"
Expand Down Expand Up @@ -149,7 +149,7 @@
"group": "com.google.guava",
"module": "guava-parent",
"version": {
"requires": "${module.parentVersion}"
"requires": "${otherVariant.version}"
},
"attributes": {
"org.gradle.category": "platform"
Expand All @@ -168,7 +168,7 @@
},
{
"group": "org.checkerframework",
"module": ${otherVariant.checkerframework}
"module": "${otherVariant.checkerframework}"
},
{
"group": "com.google.errorprone",
Expand Down Expand Up @@ -217,7 +217,7 @@
"group": "com.google.guava",
"module": "guava-parent",
"version": {
"requires": "${module.parentVersion}"
"requires": "${otherVariant.version}"
},
"attributes": {
"org.gradle.category": "platform"
Expand Down
5 changes: 2 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,11 @@
<maven-source-plugin.version>3.2.0</maven-source-plugin.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<module.status>integration</module.status>
<module.parentVersion>HEAD-jre-SNAPSHOT</module.parentVersion>
<variant.jvmVersion>8</variant.jvmVersion>
<variant.checkerframework>"checker-qual"</variant.checkerframework>
<variant.checkerframework>checker-qual</variant.checkerframework>
<otherVariant.version>HEAD-android-SNAPSHOT</otherVariant.version>
<otherVariant.jvmVersion>6</otherVariant.jvmVersion>
<otherVariant.checkerframework>"checker-compat-qual", "version": { "requires": "2.5.5" }</otherVariant.checkerframework>
<otherVariant.checkerframework>checker-compat-qual</otherVariant.checkerframework>
</properties>
<issueManagement>
<system>GitHub Issues</system>
Expand Down
2 changes: 0 additions & 2 deletions util/set_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,4 @@ mvn versions:set-property -Dproperty=otherVariant.version -DnewVersion="${versio
mvn versions:set-property -Dproperty=otherVariant.version -DnewVersion="${version}-jre" -f android
mvn versions:set-property -Dproperty=module.status -DnewVersion="${status}"
mvn versions:set-property -Dproperty=module.status -DnewVersion="${status}" -f android
mvn versions:set-property -Dproperty=module.parentVersion -DnewVersion="${version}-jre"
mvn versions:set-property -Dproperty=module.parentVersion -DnewVersion="${version}-jre" -f android
git commit -am "Set version numbers to ${version}"

0 comments on commit 1ca9f03

Please sign in to comment.