Skip to content

Commit

Permalink
Merge pull request #605 from jdaugherty/4.0.x
Browse files Browse the repository at this point in the history
Fix grails-bom being overridden in json-testing-support, remove older…
  • Loading branch information
jdaugherty authored Dec 21, 2024
2 parents 5fcc399 + e802d16 commit 713e2f0
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 23 deletions.
13 changes: 12 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,15 @@ tasks.withType(InitializeNexusStagingRepository).configureEach {
shouldRunAfter = tasks.withType(Sign)
}

apply from: rootProject.layout.projectDirectory.file('gradle/dependency-updates.gradle')
subprojects {
apply plugin: 'groovy'

dependencies {
implementation platform(libs.grails.bom), {
exclude group: 'org.grails.plugins', module: 'views-gradle'
exclude group: 'org.grails.plugins', module: 'views-json'
exclude group: 'org.grails', module: 'views-core'
exclude group: 'org.grails', module: 'views-json-testing-support'
}
}
}
3 changes: 0 additions & 3 deletions buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,4 @@ dependencies {
runtimeOnly buildsrcLibs.nexus.publish.gradle.plugin
runtimeOnly buildsrcLibs.grails.gradle.plugin
runtimeOnly buildsrcLibs.grails.views.gradle.plugin
runtimeOnly buildsrcLibs.groovydoc.gradle.plugin
}

apply from: rootProject.layout.projectDirectory.file('../gradle/dependency-updates.gradle')
1 change: 0 additions & 1 deletion core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ ext.set('projectDesc', 'Grails Views Core')

dependencies {

api platform(libs.grails.bom)
api libs.caffeine // Used in public API
api libs.grails.datastore.core // MappingContext is used in public API
api libs.grails.mimetypes // MimeUtility is used in public API
Expand Down
1 change: 0 additions & 1 deletion gradle-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ dependencies {

// the gradle api is provided by java-gradle-plugin

implementation platform(libs.grails.bom)
implementation libs.jakarta.annotation.api

compileOnly libs.groovy.core // @CompileStatic
Expand Down
2 changes: 1 addition & 1 deletion gradle/buildsrc.libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
asciidoctor-gradle-jvm = '4.0.3'
grails-gradle-plugin = '7.0.0-M2'
grails-gradle-plugin = '7.0.0-SNAPSHOT'
grails-views = '4.0.0-SNAPSHOT'
groovy-doc = '1.0.1'
nexus-publish-gradle-plugin = '1.3.0'
Expand Down
11 changes: 0 additions & 11 deletions gradle/dependency-updates.gradle

This file was deleted.

24 changes: 19 additions & 5 deletions json-testing-support/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,28 @@ ext.set('projectDesc', 'JSON Views Testing Support')

dependencies {

api project(':views-json') // Used in public API
// Note: the bom has to be excluded on grails dependencies otherwise it will be detected as snapshot
// (even though none of these projects have a version that is snapshot).
// This behavior is only seen on a non-buildsnapshot project version.

api project(':views-json'), { // Used in public API
exclude group: 'org.grails', module: 'grails-bom'
}
api libs.spring.web // Used in public API
api libs.grails.datastore.core // Used in public API
api libs.grails.datastore.core, { // Used in public API
exclude group: 'org.grails', module: 'grails-bom'
}
api libs.spock.core // Used in public API

implementation libs.grails.core
implementation libs.grails.testing.support.core
implementation libs.grails.web.urlmappings
implementation libs.grails.core, {
exclude group: 'org.grails', module: 'grails-bom'
}
implementation libs.grails.testing.support.core, {
exclude group: 'org.grails', module: 'grails-bom'
}
implementation libs.grails.web.urlmappings, {
exclude group: 'org.grails', module: 'grails-bom'
}
implementation libs.groovy.core
implementation libs.groovy.json
implementation libs.groovy.templates
Expand Down

0 comments on commit 713e2f0

Please sign in to comment.