Skip to content

Commit 04033e9

Browse files
committed
minor refactor: later gradle syntax
1 parent 0903665 commit 04033e9

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

buildSrc/src/main/groovy/geb.published-groovy-module.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@ java {
3434
publishing {
3535
repositories {
3636
maven {
37-
name "LocalFile"
38-
url rootProject.layout.buildDirectory.dir("repo").get().asFile.absolutePath
37+
name = "LocalFile"
38+
url = rootProject.layout.buildDirectory.dir("repo").get().asFile.absolutePath
3939
}
4040
maven {
41-
name "Apache"
42-
url gebModule.isSnapshot()
41+
name = "Apache"
42+
url = gebModule.isSnapshot()
4343
? 'https://repository.apache.org/content/repositories/snapshots'
4444
: 'https://repository.apache.org/service/local/staging/deploy/maven2'
4545
credentials {
46-
username gebModule.isSnapshot() ? findProperty('asfNexusUsername') : findProperty('apacheUser')
47-
password gebModule.isSnapshot() ? findProperty('asfNexusPassword') : findProperty('apachePassword')
46+
username = gebModule.isSnapshot() ? findProperty('asfNexusUsername') : findProperty('apacheUser')
47+
password = gebModule.isSnapshot() ? findProperty('asfNexusPassword') : findProperty('apachePassword')
4848
}
4949
}
5050
}

buildSrc/src/main/groovy/geb.publishing.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ plugins {
2424
}
2525

2626
signing {
27-
required { !gebModule.isSnapshot() }
27+
required = { !gebModule.isSnapshot() }
2828
publishing.publications.configureEach {
2929
sign(it)
3030
}
@@ -43,7 +43,7 @@ publishing {
4343
}
4444
}
4545
scm {
46-
url = "https://github.com/geb/geb/"
46+
url = "https://github.com/apache/groovy-geb/"
4747
}
4848
developers {
4949
developer {
@@ -64,7 +64,7 @@ publishing {
6464
gebModule {
6565
onCi {
6666
signing {
67-
required { false }
67+
required = { false }
6868
}
6969

7070
tasks.withType(PublishToMavenRepository).configureEach {

doc/manual-snippets/manual-snippets.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ dependencies {
3232
}
3333

3434
tasks.named("test") {
35-
maxParallelForks gebModule.maxWorkers
35+
maxParallelForks = gebModule.maxWorkers
3636
}

doc/manual/manual.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ artifacts {
174174
publishing {
175175
publications {
176176
manual(MavenPublication) {
177-
artifactId 'geb-manual'
177+
artifactId = 'geb-manual'
178178
artifact manualZipTask
179179
pom {
180180
name = "Geb Manual - The Book of Geb"

doc/site/site.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ plugins {
2626

2727
repositories {
2828
mavenCentral()
29-
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
30-
maven { url "https://oss.sonatype.org/content/repositories/releases" }
29+
maven { url = "https://oss.sonatype.org/content/repositories/snapshots" }
30+
maven { url = "https://oss.sonatype.org/content/repositories/releases" }
3131
}
3232

3333
configurations {

geb.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ tasks.register("stage", Sync) {
8080

8181
idea {
8282
project {
83-
jdkName "11"
83+
jdkName = "11"
8484
}
8585
}
8686

0 commit comments

Comments
 (0)