Skip to content

Commit 5874d48

Browse files
committed
Disables jar task for docs
1 parent 9709251 commit 5874d48

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

docs/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ dependencies {
3333
documentation libs.snakeyaml
3434
}
3535

36+
jar {
37+
enabled = false
38+
}
39+
3640
def cleanTask = project.tasks.findByName('clean')
3741
if (cleanTask == null) {
3842
task clean(type: Delete) {

gradle/assemble.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,15 @@ class GrailsCreateStartScripts extends org.gradle.api.tasks.application.CreateSt
106106

107107
task install(dependsOn: populateDependencies) { task ->
108108
subprojects { Project project ->
109-
if(!isDocs && !isTestSuite) {
109+
if(project.name != 'docs' && !project.name.startsWith('grace-test-suite')) {
110110
task.dependsOn("$project.name:publishToMavenLocal")
111111
}
112112
}
113113
}
114114

115115
task publishToDist { task ->
116116
subprojects { Project project ->
117-
if (!isDocs && !isTestSuite && !project.name.startsWith('grace-dependencies') && !project.name.startsWith('grace-bom')) {
117+
if (project.name != 'docs' && !project.name.startsWith('grace-test-suite') && !project.name.startsWith('grace-dependencies') && !project.name.startsWith('grace-bom')) {
118118
project.tasks.named("generateMetadataFileForIvyPublication").configure {
119119
enabled = false
120120
}

0 commit comments

Comments
 (0)