Skip to content

Commit df9899a

Browse files
authored
Merge pull request #1880 from grails/matrei/nexus-root
build: apply `nexus-publish` to the root project
2 parents 62023e4 + 47ad46f commit df9899a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
ext {
22
isCiBuild = System.getenv('CI')
3+
isSnapshot = projectVersion.endsWith('SNAPSHOT')
4+
isReleaseVersion = !isSnapshot
35
excludeUnusedTransDeps = findProperty('excludeUnusedTransDeps')
46
}
57

8+
if (isReleaseVersion) {
9+
// This has to be applied to the root project
10+
apply plugin: 'io.github.gradle-nexus.publish-plugin'
11+
}
12+
613
String customGroovyVersion = findProperty('groovyVersion') ?: System.getenv('GROOVY_VERSION')
714
if (customGroovyVersion) {
815
logger.lifecycle("Using custom Groovy version: $customGroovyVersion")

buildSrc/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ repositories {
2525
dependencies {
2626
implementation platform("org.grails:grails-bom:${versions.getProperty('grailsVersion')}")
2727
implementation 'org.grails:grails-gradle-plugin'
28+
runtimeOnly 'io.github.gradle-nexus:publish-plugin:2.0.0'
2829
}

0 commit comments

Comments
 (0)