Skip to content

Commit b364fea

Browse files
committed
build: [skip ci] try to fix publishing
1 parent 479c3a1 commit b364fea

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

build-logic/src/main/groovy/config.publish-root.gradle

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@
22
// version and group must be specified in the root project
33
// https://github.com/gradle-nexus/publish-plugin/issues/310
44
version = projectVersion
5-
group = 'this.will.be.overridden'
5+
group = 'org.grails.plugins'
66

7-
subprojects { sub ->
8-
sub.pluginManager.withPlugin('config.publish') {
9-
// This has to be applied here in the root project due to the nexus plugin requirements
10-
sub.apply(plugin: 'org.apache.grails.gradle.grails-publish')
7+
def publishedProjects = projectsToPublish
8+
.tokenize(',')
9+
.collect { it.trim() }
10+
.findAll()
11+
12+
subprojects {
13+
if (name in publishedProjects) {
14+
apply(plugin: 'org.apache.grails.gradle.grails-publish')
1115
}
1216
}

gradle.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
projectVersion=0.0.1-SNAPSHOT
22
grailsVersion=7.0.7
33

4+
# Comma-separated list of projects to publish
5+
projectsToPublish=grails-server-timing
6+
47
# Build dependencies
58
asciidoctorVersion=4.0.5
69
checkstyleVersion=10.21.4

0 commit comments

Comments
 (0)