Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 4c6d05c

Browse files
committed
[skip ci] fix publishing
1 parent f57fe45 commit 4c6d05c

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

build.gradle

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,25 @@ allprojects {
6464
tasks.register('clean', Delete) {
6565
group = 'build'
6666
delete layout.buildDirectory
67+
}
68+
69+
// Workaround needed for nexus publishing bug
70+
// version and group must be specified in the root project
71+
// https://github.com/gradle-nexus/publish-plugin/issues/310
72+
version = projectVersion
73+
group = 'this.will.be.overridden'
74+
75+
def publishedProjects = [
76+
'gorm-mongodb-spring-boot',
77+
'grails-datastore-gorm-bson',
78+
'grails-datastore-gorm-mongodb',
79+
'grails-datastore-gorm-mongodb-ext',
80+
'grails-plugin',
81+
'views-json-templates'
82+
]
83+
subprojects {
84+
if (name in publishedProjects) {
85+
// This has to be applied here
86+
apply plugin: 'org.grails.grails-publish'
87+
}
6788
}

gradle/java-config.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
11
compileJava.options.release = javaVersion.toInteger()
2+
3+
java {
4+
withSourcesJar()
5+
withJavadocJar()
6+
}

0 commit comments

Comments
 (0)