Skip to content

Commit

Permalink
upgrade to gradle 8.1-rc1
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-manes committed Mar 21, 2023
1 parent 891095b commit 7bc7986
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,10 @@ allprojects {
}

dependencies {
def ignored = [
'api', 'apiElements', 'archives', 'compileClasspath', 'compileOnlyApi', 'default',
'implementation', 'javadocElements', 'runtimeClasspath', 'runtimeElements', 'runtimeOnly',
'sourcesElements', 'testCompileClasspath', 'testRuntimeClasspath']
def ignored = ['api', 'compileOnlyApi', 'implementation',
'javadocElements', 'runtimeOnly', 'sourcesElements']
configurations.configureEach { configuration ->
if (name !in ignored) {
if ((name !in ignored) && configuration.isCanBeDeclaredAgainst()) {
restrictions.each { module, version ->
constraints.add(configuration.name, module).version { require version }
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/codeQuality.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def JVM_ARGS_STRONG_ENCAPSULATION = [
]

tasks.withType(JavaExec).configureEach {
jvmArgs += JVM_ARGS_STRONG_ENCAPSULATION
jvmArgs = (jvmArgs ?: []) + JVM_ARGS_STRONG_ENCAPSULATION
javaLauncher = javaToolchains.launcherFor {
languageVersion = java.toolchain.languageVersion
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-rc-1-bin.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
Expand Down

0 comments on commit 7bc7986

Please sign in to comment.