This is an automated email from the ASF dual-hosted git repository. jdaugherty pushed a commit to branch 7.0.x in repository https://gitbox.apache.org/repos/asf/grails-core.git
commit 574c7cca91ad777ffdc68f8e59bdb77b2b2189f2 Author: James Daugherty <[email protected]> AuthorDate: Thu Apr 24 12:56:10 2025 -0400 Disable jar tasks for projects that do not publish --- grails-data-docs/stage/build.gradle | 6 ++++++ grails-data-hibernate5/docs/build.gradle | 6 ++++++ grails-data-mongodb/docs/build.gradle | 6 ++++++ grails-data-test-report/build.gradle | 6 ++++++ 4 files changed, 24 insertions(+) diff --git a/grails-data-docs/stage/build.gradle b/grails-data-docs/stage/build.gradle index 185d8f2653..5eef4ad799 100644 --- a/grails-data-docs/stage/build.gradle +++ b/grails-data-docs/stage/build.gradle @@ -132,3 +132,9 @@ tasks.register('copyGuides').configure { Task task -> } } } + +// the groovy plugin is applied to this project, but we do not build a jar file since +// the dependencies are only used for resolving versions from the bom +tasks.withType(Jar).configureEach { + it.enabled = false +} \ No newline at end of file diff --git a/grails-data-hibernate5/docs/build.gradle b/grails-data-hibernate5/docs/build.gradle index 8297c86add..c450f1bdef 100644 --- a/grails-data-hibernate5/docs/build.gradle +++ b/grails-data-hibernate5/docs/build.gradle @@ -132,4 +132,10 @@ tasks.register('assembleDocsDist', Zip).configure { Zip it -> it.from(layout.buildDirectory.dir('docs')) it.archiveFileName = "${project.name}-${project.version}.zip" it.destinationDirectory = project.layout.buildDirectory.dir('distributions') +} + +// the groovy plugin is applied to this project, but we do not build a jar file since +// the dependencies are only used for resolving versions from the bom +tasks.withType(Jar).configureEach { + it.enabled = false } \ No newline at end of file diff --git a/grails-data-mongodb/docs/build.gradle b/grails-data-mongodb/docs/build.gradle index 9dc8428014..fb4c01694a 100644 --- a/grails-data-mongodb/docs/build.gradle +++ b/grails-data-mongodb/docs/build.gradle @@ -142,3 +142,9 @@ tasks.register('assembleDocsDist', Zip).configure { Zip it -> it.archiveFileName = "${project.name}-${project.version}.zip" it.destinationDirectory = project.layout.buildDirectory.dir('distributions') } + +// the groovy plugin is applied to this project, but we do not build a jar file since +// the dependencies are only used for resolving versions from the bom +tasks.withType(Jar).configureEach { + it.enabled = false +} \ No newline at end of file diff --git a/grails-data-test-report/build.gradle b/grails-data-test-report/build.gradle index 5bb055e39f..a92ff06e64 100644 --- a/grails-data-test-report/build.gradle +++ b/grails-data-test-report/build.gradle @@ -44,3 +44,9 @@ reporting { tasks.named('check') { dependsOn tasks.named('testAggregateTestReport', TestReport) } + +// the java plugin is applied to this project, but we do not build a jar file since +// the dependencies are only used for resolving the tests +tasks.withType(Jar).configureEach { + it.enabled = false +} \ No newline at end of file
