Skip to content

Commit

Permalink
build: apply grails-publish in the root project (#1881)
Browse files Browse the repository at this point in the history
  • Loading branch information
matrei authored Mar 4, 2025
1 parent df9899a commit dcf0b92
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 7 deletions.
29 changes: 24 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ ext {
excludeUnusedTransDeps = findProperty('excludeUnusedTransDeps')
}

if (isReleaseVersion) {
// This has to be applied to the root project
apply plugin: 'io.github.gradle-nexus.publish-plugin'
}

String customGroovyVersion = findProperty('groovyVersion') ?: System.getenv('GROOVY_VERSION')
if (customGroovyVersion) {
logger.lifecycle("Using custom Groovy version: $customGroovyVersion")
Expand Down Expand Up @@ -53,4 +48,28 @@ allprojects {
}
}

if (isReleaseVersion) {
// This has to be applied to the root project
apply plugin: 'io.github.gradle-nexus.publish-plugin'
def publishedProjects = [
'grails-datastore-async',
'grails-datastore-core',
'grails-datastore-gorm',
'grails-datastore-gorm-async',
//'grails-datastore-gorm-rx',
'grails-datastore-gorm-support',
'grails-datastore-gorm-tck',
'grails-datastore-gorm-test',
'grails-datastore-gorm-validation',
'grails-datastore-web',
'grails-gorm-testing-support',
]
subprojects {
if (name in publishedProjects) {
// This has to be applied here
apply plugin: 'org.grails.grails-publish'
}
}
}

apply from: layout.projectDirectory.file('gradle/documentation-config.gradle')
2 changes: 0 additions & 2 deletions gradle/publish-config.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import org.grails.gradle.plugin.publishing.GrailsPublishExtension

apply plugin: 'org.grails.grails-publish'

extensions.configure(GrailsPublishExtension) {
// Explicit `it` is required here
it.githubSlug = 'grails/grails-data-mapping'
Expand Down

0 comments on commit dcf0b92

Please sign in to comment.