Skip to content

Commit 50c20a9

Browse files
committed
feedback: minor cleanup & styling
1 parent 0791d40 commit 50c20a9

File tree

21 files changed

+27
-40
lines changed

21 files changed

+27
-40
lines changed

.github/workflows/gradle.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ jobs:
7373
GRADLE_PUBLISH_RELEASE: 'false'
7474
MAVEN_PUBLISH_USERNAME: ${{ secrets.MAVEN_PUBLISH_USERNAME }}
7575
MAVEN_PUBLISH_PASSWORD: ${{ secrets.MAVEN_PUBLISH_PASSWORD }}
76-
run: ./gradlew --no-build-cache publish && cd views/gradle-plugin && ./gradlew --no-build-cache publish
76+
run: >
77+
./gradlew --no-build-cache publish &&
78+
cd views/gradle-plugin &&
79+
./gradlew --no-build-cache publish
7780
- name: "📖 Generate Snapshot Documentation"
7881
if: success()
7982
run: ./gradlew aggregateDocs

.sdkmanrc

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
# Enable auto-env through the sdkman_auto_env config - https://sdkman.io/usage#env
22
java=17.0.12-librca
3-
gradle=8.13

buildSrc/build.gradle

+1-4
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@ file("../gradle.properties").withReader {
2525
}
2626

2727
dependencies {
28-
implementation platform("org.grails:grails-bom:${gradleProperties.grailsVersion}"), {
29-
exclude group: 'org.grails.plugins', module: 'views-gradle'
30-
exclude group: 'org.grails.plugins', module: 'views-json'
31-
}
28+
implementation platform("org.grails:grails-bom:${gradleProperties.grailsVersion}")
3229
implementation "org.grails:grails-gradle-plugin"
3330
implementation "org.grails.plugins:views-gradle"
3431
implementation "org.grails:grails-docs"

fields/plugin/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ext {
1313
pomTitle = 'Grails Fields Plugin'
1414
pomDescription = 'Customizable form-field rendering based on overrideable GSP template'
1515
pomDevelopers = [robfletcher: 'Rob Fletcher', graemerocher: "Graeme Rocher", sdelamo: "Sergio del Amo", sbglasius: 'Søren Berg Glasius']
16-
mavenSnapshotPublishUrl = 'https://repo.grails.org/grails/plugins3-snapshots-local'
16+
snapshotPublishUrl = 'https://repo.grails.org/grails/plugins3-snapshots-local'
1717
}
1818

1919
dependencies {

gradle.properties

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
projectVersion=7.0.0-SNAPSHOT
22
githubBranch = 7.0.x
33
javaVersion=17
4-
54
# when updating grails version, be sure to update the views/gradle-plugin as well
65
grailsVersion=7.0.0-M3
76
joddWotVersion=3.3.8
@@ -10,7 +9,6 @@ elApiVersion=6.0.1
109
jspApiVersion=4.0.0
1110
sitemeshVersion=3.2.2
1211
javassistVersion=3.30.2-GA
13-
1412
micronautVersion=4.6.5
1513

1614
# This prevents the Grails Gradle Plugin from unnecessarily excluding slf4j-simple in the generated POMs

gradle/publish-config.gradle

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
import org.grails.gradle.plugin.publishing.GrailsPublishExtension
22

3-
if (project.hasProperty('mavenSnapshotPublishUrl')) {
4-
ext.set('mavenPublishUrl', property('mavenSnapshotPublishUrl'))
3+
if (project.hasProperty('snapshotPublishUrl')) {
4+
ext.set('mavenPublishUrl', property('snapshotPublishUrl'))
55
logger.lifecycle('Configuring {}:{} snapshot publish repo: {}', group, findProperty('pomArtifactId') ?: name, mavenPublishUrl)
66
}
77

88
extensions.configure(GrailsPublishExtension) {
99
// Explicit `it` is required here
10-
String pomArtifactId = findProperty('pomArtifactId')
11-
if(pomArtifactId) {
12-
it.artifactId = pomArtifactId
13-
}
10+
it.artifactId = findProperty('pomArtifactId') ?: project.name
1411
it.githubSlug = 'grails/grails-views'
1512
it.license.name = 'Apache-2.0'
1613
it.title = findProperty('pomTitle') ?: 'Grails Views'

gsp/grails-gsp/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ext {
1010
pomTitle = 'Groovy Server Pages (GSP)'
1111
pomDescription = 'Groovy Server Pages (GSP) - A server-side view rendering technology based on Groovy'
1212
pomDevelopers = ['graemerocher': 'Graeme Rocher']
13-
mavenSnapshotPublishUrl = 'https://repo.grails.org/grails/libs-snapshots-local'
13+
snapshotPublishUrl = 'https://repo.grails.org/grails/libs-snapshots-local'
1414
}
1515

1616
dependencies {

gsp/grails-plugin-gsp/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ext {
1616
pomTitle = 'Groovy Server Pages (GSP)'
1717
pomDescription = 'Groovy Server Pages (GSP) - A server-side view rendering technology based on Groovy'
1818
pomDevelopers = ['graemerocher': 'Graeme Rocher']
19-
mavenSnapshotPublishUrl = 'https://repo.grails.org/grails/plugins3-snapshots-local'
19+
snapshotPublishUrl = 'https://repo.grails.org/grails/plugins3-snapshots-local'
2020
}
2121

2222
dependencies {

gsp/grails-plugin-sitemesh3/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ext {
1313
pomDevelopers = [
1414
[id: 'codeconsole', name: 'Scott Murphy Heiberg']
1515
]
16-
mavenSnapshotPublishUrl = 'https://repo.grails.org/grails/plugins3-snapshots-local'
16+
snapshotPublishUrl = 'https://repo.grails.org/grails/plugins3-snapshots-local'
1717
}
1818

1919
dependencies {

gsp/grails-taglib/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ext {
1010
pomTitle = 'Groovy Server Pages (GSP)'
1111
pomDescription = 'Groovy Server Pages (GSP) - A server-side view rendering technology based on Groovy'
1212
pomDevelopers = ['graemerocher': 'Graeme Rocher']
13-
mavenSnapshotPublishUrl = 'https://repo.grails.org/grails/libs-snapshots-local'
13+
snapshotPublishUrl = 'https://repo.grails.org/grails/libs-snapshots-local'
1414
}
1515

1616
dependencies {

gsp/grails-web-gsp-taglib/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ext {
1010
pomTitle = 'Groovy Server Pages (GSP)'
1111
pomDescription = 'Groovy Server Pages (GSP) - A server-side view rendering technology based on Groovy'
1212
pomDevelopers = ['graemerocher': 'Graeme Rocher']
13-
mavenSnapshotPublishUrl = 'https://repo.grails.org/grails/libs-snapshots-local'
13+
snapshotPublishUrl = 'https://repo.grails.org/grails/libs-snapshots-local'
1414
}
1515

1616
dependencies {

gsp/grails-web-gsp/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ext {
1010
pomTitle = 'Groovy Server Pages (GSP)'
1111
pomDescription = 'Groovy Server Pages (GSP) - A server-side view rendering technology based on Groovy'
1212
pomDevelopers = ['graemerocher': 'Graeme Rocher']
13-
mavenSnapshotPublishUrl = 'https://repo.grails.org/grails/libs-snapshots-local'
13+
snapshotPublishUrl = 'https://repo.grails.org/grails/libs-snapshots-local'
1414
}
1515

1616
dependencies {

gsp/grails-web-jsp/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ext {
1010
pomTitle = 'Groovy Server Pages (GSP)'
1111
pomDescription = 'Groovy Server Pages (GSP) - A server-side view rendering technology based on Groovy'
1212
pomDevelopers = ['graemerocher': 'Graeme Rocher']
13-
mavenSnapshotPublishUrl = 'https://repo.grails.org/grails/libs-snapshots-local'
13+
snapshotPublishUrl = 'https://repo.grails.org/grails/libs-snapshots-local'
1414
}
1515

1616
dependencies {

gsp/grails-web-taglib/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ext {
1010
pomTitle = 'Groovy Server Pages (GSP)'
1111
pomDescription = 'Groovy Server Pages (GSP) - A server-side view rendering technology based on Groovy'
1212
pomDevelopers = ['graemerocher': 'Graeme Rocher']
13-
mavenSnapshotPublishUrl = 'https://repo.grails.org/grails/libs-snapshots-local'
13+
snapshotPublishUrl = 'https://repo.grails.org/grails/libs-snapshots-local'
1414
}
1515

1616
dependencies {

gsp/grails-web-testing-support/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ext {
1313
[id: 'jeffscottbrown', name: 'Jeff Brown'],
1414
[id: 'jameskleeh', name: 'James Kleeh']
1515
]
16-
mavenSnapshotPublishUrl = 'https://repo.grails.org/grails/libs-snapshots-local'
16+
snapshotPublishUrl = 'https://repo.grails.org/grails/libs-snapshots-local'
1717
}
1818

1919
// Note: documentation for this project is published to grails-doc as part of the other testing documentation

scaffolding/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ext {
1111
pomTitle = 'Grails Scaffolding Plugin'
1212
pomDescription = 'Provides scaffolding for Grails applications'
1313
pomDevelopers = [puneetbehl: 'Puneet Behl']
14-
mavenSnapshotPublishUrl = 'https://repo.grails.org/grails/plugins3-snapshots-local'
14+
snapshotPublishUrl = 'https://repo.grails.org/grails/plugins3-snapshots-local'
1515
}
1616

1717
dependencies {

views/core/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ group = 'org.grails'
88

99
ext {
1010
pomDescription = 'Grails Views Core'
11-
mavenSnapshotPublishUrl = 'https://repo.grails.org/grails/libs-snapshots-local'
11+
snapshotPublishUrl = 'https://repo.grails.org/grails/libs-snapshots-local'
1212
}
1313

1414
dependencies {

views/gradle-plugin/build.gradle

+4-11
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
11
import io.github.gradlenexus.publishplugin.InitializeNexusStagingRepository
22

3-
import static com.bmuschko.gradle.nexus.NexusPlugin.getSIGNING_KEYRING
4-
import static com.bmuschko.gradle.nexus.NexusPlugin.getSIGNING_KEY_ID
5-
import static com.bmuschko.gradle.nexus.NexusPlugin.getSIGNING_PASSWORD
6-
73
buildscript {
84
repositories {
95
maven { url = 'https://repo.grails.org/grails/core' }
106
}
117
dependencies {
12-
classpath platform("org.grails:grails-bom:${grailsVersion}"), {
13-
exclude group: 'org.grails.plugins', module: 'views-gradle'
14-
exclude group: 'org.grails.plugins', module: 'views-json'
15-
}
8+
classpath platform("org.grails:grails-bom:${grailsVersion}")
169
classpath 'org.grails:grails-gradle-plugin'
1710
}
1811
}
@@ -105,9 +98,9 @@ tasks.withType(Groovydoc).configureEach {
10598
ext.set('isRelease', System.getenv('GRAILS_PUBLISH_RELEASE') != null ? Boolean.parseBoolean(System.getenv('GRAILS_PUBLISH_RELEASE')) : !ext.gradleProperties.projectVersion.endsWith('SNAPSHOT'))
10699
ext.set('isSnapshot', !ext.isRelease)
107100

108-
ext.set('signing.keyId', project.findProperty(SIGNING_KEY_ID) ?: System.getenv('SIGNING_KEY'))
109-
ext.set('signing.password', project.findProperty(SIGNING_PASSWORD) ?: System.getenv('SIGNING_PASSPHRASE'))
110-
ext.set('signing.secretKeyRingFile', project.findProperty(SIGNING_KEYRING) ?: System.getenv('SIGNING_KEYRING'))
101+
ext.set('signing.keyId', project.findProperty('signing.keyId') ?: System.getenv('SIGNING_KEY'))
102+
ext.set('signing.password', project.findProperty('signing.password') ?: System.getenv('SIGNING_PASSPHRASE'))
103+
ext.set('signing.secretKeyRingFile', project.findProperty('signing.secretKeyRingFile') ?: System.getenv('SIGNING_KEYRING'))
111104
ext.set('pomInfo', {
112105
delegate.url 'https://views.grails.org/latest/'
113106
delegate.licenses {

views/json-testing-support/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ group = 'org.grails'
88

99
ext {
1010
pomDescription = 'JSON Views Testing Support'
11-
mavenSnapshotPublishUrl = 'https://repo.grails.org/grails/libs-snapshots-local'
11+
snapshotPublishUrl = 'https://repo.grails.org/grails/libs-snapshots-local'
1212
}
1313

1414
dependencies {

views/json/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ group = 'org.grails.plugins'
99

1010
ext {
1111
pomDescription = 'Grails JSON Views'
12-
mavenSnapshotPublishUrl = 'https://repo.grails.org/grails/plugins3-snapshots-local'
12+
snapshotPublishUrl = 'https://repo.grails.org/grails/plugins3-snapshots-local'
1313
}
1414

1515
dependencies {

views/markup/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ group = 'org.grails'
99

1010
ext {
1111
pomDescription = 'Grails Markup Views'
12-
mavenSnapshotPublishUrl = 'https://repo.grails.org/grails/plugins3-snapshots-local'
12+
snapshotPublishUrl = 'https://repo.grails.org/grails/plugins3-snapshots-local'
1313
}
1414

1515
dependencies {

0 commit comments

Comments
 (0)