Skip to content

Commit

Permalink
Gradle: Drop forUseAtConfigurationTime()
Browse files Browse the repository at this point in the history
It is deprecated and scheduled for removal in Gradle 9.0.
Starting with version 7.4 Gradle will implicitly treat an
external value used at configuration time as a configuration
cache input.
Source: https://docs.gradle.org/current/userguide/upgrading_version_7.html#changes_7.4
  • Loading branch information
gruenich committed Jul 12, 2022
1 parent 001d0de commit 77f7c15
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ dependencies {
tasks.withType<Test>().configureEach {
useTestNG()
providers.gradleProperty("testng.test.extra.jvmargs")
.forUseAtConfigurationTime()
.orNull?.toString()?.trim()
?.takeIf { it.isNotEmpty() }
?.let {
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ println("Building testng $buildVersion")
*/

fun property(name: String) =
providers.gradleProperty(name).forUseAtConfigurationTime()
providers.gradleProperty(name)

releaseParams {
tlp.set(property("github.repository"))
Expand Down

0 comments on commit 77f7c15

Please sign in to comment.