Skip to content

Commit d4edc4a

Browse files
committed
build: prep for 4.0.0 release (Grails 6)
1 parent 5966bb3 commit d4edc4a

File tree

3 files changed

+17
-8
lines changed

3 files changed

+17
-8
lines changed

buildSrc/build.gradle

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1+
def versions = new Properties()
2+
file('../gradle.properties').withInputStream {
3+
versions.load(it)
4+
}
5+
16
repositories {
27
mavenCentral()
3-
maven { url 'https://repo.grails.org/grails/core' }
8+
maven { url = 'https://repo.grails.org/grails/core' }
49
}
10+
511
dependencies {
6-
implementation 'org.grails:grails-gradle-plugin:6.1.0'
7-
implementation 'org.grails.plugins:hibernate5:8.0.1'
8-
implementation 'io.github.gradle-nexus:publish-plugin:1.3.0'
9-
implementation 'com.bertramlabs.plugins:asset-pipeline-gradle:4.4.0'
12+
implementation "org.grails:grails-gradle-plugin:${versions['grailsGradlePluginVersion']}"
13+
implementation "io.github.gradle-nexus:publish-plugin:${versions['nexusPublishVersion']}"
14+
implementation "com.bertramlabs.plugins:asset-pipeline-gradle:${versions['assetPipelineVersion']}"
1015
}

gradle.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ grailsQuartzVersion=2.0.13
1313
quartzCoreVersion=2.3.2
1414
spockVersion=2.3-groovy-3.0
1515

16+
# This prevents the Grails Gradle Plugin from unnecessarily excluding slf4j-simple in the generated POMs
17+
# https://github.com/grails/grails-gradle-plugin/issues/222
18+
slf4jPreventExclusion=true
19+
1620
org.gradle.daemon=true
1721
org.gradle.parallel=true
1822
org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Xmx1024M

gradle/publish-config.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,15 @@ afterEvaluate {
9999
}
100100
}
101101

102-
tasks.withType(Sign) {
102+
tasks.withType(Sign).configureEach {
103103
onlyIf { isReleaseVersion }
104104
}
105105

106106
nexusPublishing {
107107
repositories {
108108
sonatype {
109-
nexusUrl = uri('https://s01.oss.sonatype.org/service/local')
110-
snapshotRepositoryUrl = uri('https://s01.oss.sonatype.org/content/repositories/snapshots')
109+
nexusUrl = uri('https://ossrh-staging-api.central.sonatype.com/service/local/')
110+
snapshotRepositoryUrl = uri('https://central.sonatype.com/repository/maven-snapshots/')
111111
username = System.getenv('SONATYPE_USERNAME')
112112
password = System.getenv('SONATYPE_PASSWORD')
113113
stagingProfileId = System.getenv('SONATYPE_STAGING_PROFILE_ID')

0 commit comments

Comments
 (0)