Skip to content

Commit 0a763eb

Browse files
authored
Check Gradle version 9.4.0 instead of RC (#1962)
1 parent 801c21e commit 0a763eb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow/JavaPluginsTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ class JavaPluginsTest : BasePluginTest() {
675675
val outputApi = dependencies(API_CONFIGURATION_NAME)
676676

677677
// "unspecified" is the local Gradle API.
678-
if (GradleVersion.version(testGradleVersion) >= GradleVersion.version("9.4.0-rc-1")) {
678+
if (GradleVersion.version(testGradleVersion) >= GradleVersion.version("9.4.0")) {
679679
assertThat(outputCompileOnlyApi).contains("unspecified")
680680
} else {
681681
assertThat(outputCompileOnly).contains("unspecified")

src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/internal/GradleCompat.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ internal fun AdhocComponentWithVariants.addVariantsFromConfigurationCompat(
8383

8484
/** TODO: this could be removed after bumping the min Gradle requirement to 9.4 or above. */
8585
internal fun Project.moveGradleApiIntoCompileOnly() {
86-
// gradleApi has been added into compileOnlyApi since Gradle 9.4-rc-1.
87-
if (GradleVersion.current() >= GradleVersion.version("9.4.0-rc-1")) return
86+
// gradleApi has been added into compileOnlyApi since Gradle 9.4.0.
87+
if (GradleVersion.current() >= GradleVersion.version("9.4.0")) return
8888

8989
// org.gradle.plugin.devel.plugins.JavaGradlePluginPlugin
9090
plugins.withId("org.gradle.java-gradle-plugin") {

0 commit comments

Comments
 (0)