Skip to content

Commit 7985d20

Browse files
committed
fix grails-publish
1 parent ac2ac55 commit 7985d20

File tree

3 files changed

+30
-6
lines changed

3 files changed

+30
-6
lines changed

build.gradle

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,33 @@ subprojects {
3737
tasks.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+
}

gradle/publish-config.gradle

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
import 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-
73
ext {
84
mavenPublishUrl = findProperty('snapshotPublishUrl') ?: 'https://repo.grails.org/plugins3-snapshots-local'
95
}

plugin-rest/spring-security-rest-testapp-profile/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
plugins {
22
id 'org.grails.grails-profile'
3-
id 'org.grails.grails-profile-publish'
43
}
54

65
group = 'org.grails.plugins'

0 commit comments

Comments
 (0)