Skip to content

Commit

Permalink
Fix grails-bom being overridden in json-testing-support, remove older…
Browse files Browse the repository at this point in the history
… gradle docs plugin, & remove unused build src libraries
  • Loading branch information
jdaugherty committed Dec 21, 2024
1 parent 2e081ec commit 53c1d9a
Show file tree
Hide file tree
Showing 7 changed files with 28 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.

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

dependencies {

api project(':views-json') // Used in public API
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 53c1d9a

Please sign in to comment.