Skip to content

Commit aafd66d

Browse files
authored
Apply publish-plugin in root (#13)
1 parent a9d1897 commit aafd66d

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

build.gradle

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,14 @@ subprojects {
1212
}
1313
}
1414
}
15+
16+
// Workaround needed for nexus publishing bug
17+
// version and group must be specified in the root project
18+
// https://github.com/gradle-nexus/publish-plugin/issues/310
19+
version = projectVersion
20+
group = 'this.will.be.overridden'
21+
subprojects {
22+
if (name == 'grails-logical-delete') {
23+
apply plugin: 'org.apache.grails.gradle.grails-publish'
24+
}
25+
}

buildSrc/src/main/groovy/build/config/Publish.groovy

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ class Publish implements Plugin<Project> {
1313

1414
@Override
1515
void apply(Project project) {
16-
project.pluginManager.apply('org.apache.grails.gradle.grails-publish')
1716
project.extensions.configure(GrailsPublishExtension) {
1817
it.organization.name.set('Grails Plugins')
1918
it.organization.url.set('https://github.com/grails-plugins')

0 commit comments

Comments
 (0)