File tree Expand file tree Collapse file tree 3 files changed +30
-6
lines changed
plugin-rest/spring-security-rest-testapp-profile Expand file tree Collapse file tree 3 files changed +30
-6
lines changed Original file line number Diff line number Diff line change @@ -37,4 +37,33 @@ subprojects {
3737tasks. register(' clean' , Delete ) {
3838 group = ' build'
3939 delete layout. buildDirectory
40- }
40+ }
41+
42+ // Workaround needed for nexus publishing bug
43+ // version and group must be specified in the root project
44+ // https://github.com/gradle-nexus/publish-plugin/issues/310
45+ version = projectVersion
46+ group = ' this.will.be.overridden'
47+
48+ def publishedProjects = [
49+ ' acl-plugin' ,
50+ ' cas-plugin' ,
51+ ' core-plugin' ,
52+ ' ldap-plugin' ,
53+ ' oauth2-plugin' ,
54+ ' spring-security-rest' ,
55+ ' spring-security-rest-gorm' ,
56+ ' spring-security-rest-grailscache' ,
57+ ' spring-security-rest-memcached' ,
58+ ' spring-security-rest-redis' ,
59+ ' ui-plugin'
60+ ]
61+ subprojects {
62+ if (name in publishedProjects) {
63+ // This has to be applied here
64+ apply plugin : ' org.grails.grails-publish'
65+ }
66+ else if (name == ' spring-security-rest-testapp-profile' ) {
67+ apply plugin : ' org.grails.grails-profile-publish'
68+ }
69+ }
Original file line number Diff line number Diff line change 11import org.grails.gradle.plugin.publishing.GrailsPublishExtension
22
3- if (! plugins. hasPlugin(' org.grails.grails-profile-publish' )) {
4- apply plugin : ' org.grails.grails-publish'
5- }
6-
73ext {
84 mavenPublishUrl = findProperty(' snapshotPublishUrl' ) ?: ' https://repo.grails.org/plugins3-snapshots-local'
95}
Original file line number Diff line number Diff line change 11plugins {
22 id ' org.grails.grails-profile'
3- id ' org.grails.grails-profile-publish'
43}
54
65group = ' org.grails.plugins'
You can’t perform that action at this time.
0 commit comments