You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2025/01/02 21:23:45 UTC
(groovy) 03/04: minor refactor: later gradle syntax
This is an automated email from the ASF dual-hosted git repository.
paulk pushed a commit to branch GROOVY_4_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git
commit eeab52f19c19c95a11d4268dc352f8d9df1c81c7
Author: Paul King <pa...@asert.com.au>
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 ffc7d3cb62..94ac9b845a 100644
--- a/build-logic/src/main/groovy/org.apache.groovy-base.gradle
+++ b/build-logic/src/main/groovy/org.apache.groovy-base.gradle
@@ -215,8 +215,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 a8b65e75fb..2e46df2767 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 c21e4b3396..7d79e2d84b 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
@@ -19,17 +19,17 @@ if (pluginManager.hasPlugin('java-platform')) {
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')
}
}
}
@@ -786,7 +786,7 @@ publishing {
}
signing {
- required {
+ required = {
sharedConfiguration.signing.shouldSign(gradle.taskGraph)
}
sign publishing.publications.maven