Skip to content

Commit

Permalink
Name the "standard-jvm" variants in Gradle Metadata "jre."
Browse files Browse the repository at this point in the history
Small follow up to #3683

See: #6604 (comment)

Fixes #6605

RELNOTES=n/a
PiperOrigin-RevId: 544384609
  • Loading branch information
jjohannes authored and Google Java Core Libraries committed Jun 29, 2023
1 parent ce78fc6 commit 1dc5f8c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 2 additions & 0 deletions android/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@
<test.add.opens></test.add.opens>
<module.status>integration</module.status>
<variant.jvmEnvironment>android</variant.jvmEnvironment>
<variant.jvmEnvironmentVariantName>android</variant.jvmEnvironmentVariantName>
<otherVariant.version>HEAD-jre-SNAPSHOT</otherVariant.version>
<otherVariant.jvmEnvironment>standard-jvm</otherVariant.jvmEnvironment>
<otherVariant.jvmEnvironmentVariantName>jre</otherVariant.jvmEnvironmentVariantName>
</properties>
<issueManagement>
<system>GitHub Issues</system>
Expand Down
8 changes: 4 additions & 4 deletions guava/module.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"variants": [
{
"name": "${variant.jvmEnvironment}ApiElements",
"name": "${variant.jvmEnvironmentVariantName}ApiElements",
"attributes": {
"org.gradle.category": "library",
"org.gradle.dependency.bundling": "external",
Expand Down Expand Up @@ -85,7 +85,7 @@
]
},
{
"name": "${variant.jvmEnvironment}RuntimeElements",
"name": "${variant.jvmEnvironmentVariantName}RuntimeElements",
"attributes": {
"org.gradle.category": "library",
"org.gradle.dependency.bundling": "external",
Expand Down Expand Up @@ -150,7 +150,7 @@
]
},
{
"name": "${otherVariant.jvmEnvironment}ApiElements",
"name": "${otherVariant.jvmEnvironmentVariantName}ApiElements",
"attributes": {
"org.gradle.category": "library",
"org.gradle.dependency.bundling": "external",
Expand Down Expand Up @@ -219,7 +219,7 @@
]
},
{
"name": "${otherVariant.jvmEnvironment}RuntimeElements",
"name": "${otherVariant.jvmEnvironmentVariantName}RuntimeElements",
"attributes": {
"org.gradle.category": "library",
"org.gradle.dependency.bundling": "external",
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/gradle/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ subprojects {
candidates
.find {
val variantName = it.javaClass.getDeclaredMethod("getVariantName")
(variantName.invoke(it) as String).contains("standard-jvm")
(variantName.invoke(it) as String).contains("jre")
}
?.apply { select(this) }
}
Expand Down
2 changes: 2 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@
<test.add.opens></test.add.opens>
<module.status>integration</module.status>
<variant.jvmEnvironment>standard-jvm</variant.jvmEnvironment>
<variant.jvmEnvironmentVariantName>jre</variant.jvmEnvironmentVariantName>
<otherVariant.version>HEAD-android-SNAPSHOT</otherVariant.version>
<otherVariant.jvmEnvironment>android</otherVariant.jvmEnvironment>
<otherVariant.jvmEnvironmentVariantName>android</otherVariant.jvmEnvironmentVariantName>
</properties>
<issueManagement>
<system>GitHub Issues</system>
Expand Down

0 comments on commit 1dc5f8c

Please sign in to comment.