This is an automated email from the ASF dual-hosted git repository.
paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/master by this push:
new 9550a537a4 minor refactor: later gradle syntax
9550a537a4 is described below
commit 9550a537a4db1d74a82c7a893f252247094f8951
Author: Paul King <[email protected]>
AuthorDate: Fri Jan 3 03:12:41 2025 +1000
minor refactor: later gradle syntax
---
build-logic/src/main/groovy/org.apache.groovy-base.gradle | 4 ++--
.../src/main/groovy/org.apache.groovy-performance.gradle | 2 +-
.../main/groovy/org.apache.groovy-published-library.gradle | 14 +++++++-------
3 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/build-logic/src/main/groovy/org.apache.groovy-base.gradle
b/build-logic/src/main/groovy/org.apache.groovy-base.gradle
index e6e41a6b74..687c461d93 100644
--- a/build-logic/src/main/groovy/org.apache.groovy-base.gradle
+++ b/build-logic/src/main/groovy/org.apache.groovy-base.gradle
@@ -217,8 +217,8 @@ tasks.register("jarjar", JarJarTask) {
}
tasks.withType(AbstractCompile).configureEach {
- sourceCompatibility(sharedConfiguration.targetJavaVersion.get())
- targetCompatibility(sharedConfiguration.targetJavaVersion.get())
+ sourceCompatibility = sharedConfiguration.targetJavaVersion.get()
+ targetCompatibility = sharedConfiguration.targetJavaVersion.get()
}
tasks.withType(Javadoc).configureEach {
diff --git a/build-logic/src/main/groovy/org.apache.groovy-performance.gradle
b/build-logic/src/main/groovy/org.apache.groovy-performance.gradle
index 0735992648..ab05db6baf 100644
--- a/build-logic/src/main/groovy/org.apache.groovy-performance.gradle
+++ b/build-logic/src/main/groovy/org.apache.groovy-performance.gradle
@@ -37,7 +37,7 @@ configurations {
repositories {
mavenCentral()
maven {
- url 'https://repository.ow2.org/nexus/content/repositories/public/'
+ url = 'https://repository.ow2.org/nexus/content/repositories/public/'
}
}
diff --git
a/build-logic/src/main/groovy/org.apache.groovy-published-library.gradle
b/build-logic/src/main/groovy/org.apache.groovy-published-library.gradle
index 10ea839222..d6f6efb193 100644
--- a/build-logic/src/main/groovy/org.apache.groovy-published-library.gradle
+++ b/build-logic/src/main/groovy/org.apache.groovy-published-library.gradle
@@ -31,17 +31,17 @@ afterEvaluate {
publishing {
repositories {
maven {
- name "LocalFile"
- url
rootProject.layout.buildDirectory.dir("repo").get().asFile.absolutePath
+ name = "LocalFile"
+ url =
rootProject.layout.buildDirectory.dir("repo").get().asFile.absolutePath
}
maven {
- name "Apache"
- url findProperty('groovyVersion').contains('SNAPSHOT')
+ name = "Apache"
+ url = findProperty('groovyVersion').contains('SNAPSHOT')
?
'https://repository.apache.org/content/repositories/snapshots'
:
'https://repository.apache.org/service/local/staging/deploy/maven2'
credentials {
- username findProperty('groovyVersion').contains('SNAPSHOT') ?
findProperty('asfNexusUsername') : findProperty('apacheUser')
- password findProperty('groovyVersion').contains('SNAPSHOT') ?
findProperty('asfNexusPassword') : findProperty('apachePassword')
+ username = findProperty('groovyVersion').contains('SNAPSHOT')
? findProperty('asfNexusUsername') : findProperty('apacheUser')
+ password = findProperty('groovyVersion').contains('SNAPSHOT')
? findProperty('asfNexusPassword') : findProperty('apachePassword')
}
}
}
@@ -798,7 +798,7 @@ publishing {
}
signing {
- required {
+ required = {
sharedConfiguration.signing.shouldSign(gradle.taskGraph)
}
sign publishing.publications.maven