File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 11ext {
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+
613String customGroovyVersion = findProperty(' groovyVersion' ) ?: System . getenv(' GROOVY_VERSION' )
714if (customGroovyVersion) {
815 logger. lifecycle(" Using custom Groovy version: $customGroovyVersion " )
Original file line number Diff line number Diff line change @@ -25,4 +25,5 @@ repositories {
2525dependencies {
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}
You can’t perform that action at this time.
0 commit comments