Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion boot-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ dependencies {
exclude group:'org.apache.groovy', module:'groovy'
}
api "org.apache.groovy:groovy:$groovyVersion"
api "org.springframework.boot:spring-boot-autoconfigure:$springBootVersion"
api "org.springframework.boot:spring-boot-autoconfigure"
api project(":grails-datastore-gorm-hibernate5")

testImplementation "org.grails:grails-shell:$grailsShellVersion", {
Expand Down
59 changes: 19 additions & 40 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -94,38 +94,16 @@ subprojects { Project subproject ->
}
}

configurations.all { Configuration configuration->
configuration.resolutionStrategy.eachDependency { DependencyResolveDetails details ->
if(details.requested.group == 'org.apache.groovy' && details.requested.name.startsWith('groovy')) {
details.useVersion(groovyVersion)
}
if(details.requested.group == 'org.springframework') {
details.useVersion(springVersion)
}
if (details.requested.group == "org.springframework.boot") {
details.useVersion(springBootVersion)
}
if (details.requested.group == "org.grails" && details.requested.name.contains("testing-support")) {
details.useVersion(testingSupportVersion)
}
if(details.requested.group == 'org.grails' &&
details.requested.name.startsWith('grails-datastore') &&
details.requested.name != 'grails-datastore-gorm-hibernate5') {
details.useVersion(gormVersion)
}
}
}

dependencies {
implementation platform("org.grails:grails-bom:$grailsVersion")
testImplementation "jakarta.annotation:jakarta.annotation-api:$jakartaAnnotationApiVersion"
testImplementation "jakarta.annotation:jakarta.annotation-api"
testImplementation "io.micrometer:micrometer-core:latest.integration"
testImplementation "io.projectreactor:reactor-test:$projectReactorVersion"
testImplementation "org.apache.groovy:groovy-test-junit5:$groovyVersion"
testImplementation("org.spockframework:spock-core:$spockVersion") { transitive = false}
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion"
testImplementation "org.junit.platform:junit-platform-runner:$junitJupiterPlatformVersion"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion"
testImplementation "io.projectreactor:reactor-test"
testImplementation "org.apache.groovy:groovy-test-junit5"
testImplementation "org.spockframework:spock-core"
testImplementation "org.junit.jupiter:junit-jupiter-api"
testImplementation "org.junit.platform:junit-platform-runner"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine"
}

apply from: "${rootProject.projectDir}/gradle/testVerbose.gradle"
Expand Down Expand Up @@ -223,17 +201,18 @@ subprojects { Project subproject ->
}

dependencies {
documentation "org.fusesource.jansi:jansi:$jansiVersion"
documentation "org.apache.groovy:groovy-dateutil:$groovyVersion"
documentation "info.picocli:picocli:$picocliVersion"
documentation "com.github.javaparser:javaparser-core:$javaParserCoreVersion"

implementation "org.apache.groovy:groovy:$groovyVersion"
testImplementation "org.apache.groovy:groovy-test-junit5:$groovyVersion"
testImplementation("org.spockframework:spock-core:$spockVersion") { transitive = false}
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion"
testImplementation "org.junit.platform:junit-platform-runner:$junitJupiterPlatformVersion"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion"
documentation platform("org.grails:grails-bom:$grailsVersion")
documentation "org.fusesource.jansi:jansi"
documentation "org.apache.groovy:groovy-dateutil"
documentation "info.picocli:picocli"
documentation "com.github.javaparser:javaparser-core"

implementation "org.apache.groovy:groovy"
testImplementation "org.apache.groovy:groovy-test-junit5"
testImplementation "org.spockframework:spock-core"
testImplementation "org.junit.jupiter:junit-jupiter-api"
testImplementation "org.junit.platform:junit-platform-runner"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine"
}

apply from: "${rootProject.projectDir}/gradle/testVerbose.gradle"
Expand Down
14 changes: 0 additions & 14 deletions docs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,6 @@ version rootProject.version
apply plugin: 'groovy'
apply plugin: 'org.asciidoctor.jvm.convert'

configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
if (details.requested.group == 'org.apache.groovy' && details.requested.name.startsWith('groovy')) {
details.useVersion(groovyVersion)
}
if (details.requested.group == 'org.springframework') {
details.useVersion(springVersion)
}
if (details.requested.group == "org.springframework.boot") {
details.useVersion(springBootVersion)
}
}
}

dependencies {
documentation "org.grails:grails-core:$grailsVersion"
documentation "org.grails:grails-bootstrap:$grailsVersion"
Expand Down
3 changes: 0 additions & 3 deletions examples/grails3-database-per-tenant/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ group "examples"

configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
if (details.requested.group == "org.springframework.boot") {
details.useVersion(springBootVersion)
}
}
}

Expand Down
11 changes: 2 additions & 9 deletions examples/spring-boot-hibernate5/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,16 @@ buildscript {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath("org.springframework.boot:spring-boot-gradle-plugin:3.3.5")
}
}

apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin:"groovy"
apply plugin: "groovy"

group 'examples'

configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
if(details.requested.group == 'org.apache.groovy' && details.requested.name.startsWith('groovy')) {
details.useVersion(groovyVersion)
}
}
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter")
implementation("org.springframework.boot:spring-boot-starter-web")
Expand Down
2 changes: 0 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ servletApiVersion=6.0.0
snakeYamlVersion=2.3
slf4jVersion=2.0.16
spockVersion=2.3-groovy-4.0
springBootVersion=3.3.5
springVersion=6.1.13
testingSupportVersion=4.0.0-SNAPSHOT
tomcatLog4jVersion=8.5.2
tomcatVersion=10.1.31
Expand Down
6 changes: 3 additions & 3 deletions grails-datastore-gorm-hibernate5/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ dependencies {
api "org.slf4j:slf4j-api:$slf4jVersion"

api "org.apache.groovy:groovy:$groovyVersion"
api("org.grails:grails-datastore-gorm:$gormVersion")
api "org.springframework:spring-orm:$springVersion"
api "org.grails:grails-datastore-gorm"
api "org.springframework:spring-orm"
api("org.hibernate:hibernate-core-jakarta:$hibernateVersion") {
exclude group:'commons-logging', module:'commons-logging'
exclude group:'com.h2database', module:'h2'
Expand Down Expand Up @@ -46,7 +46,7 @@ dependencies {
testImplementation "org.yakworks:hibernate-groovy-proxy:$hibernateGroovyProxy"

testImplementation "org.apache.tomcat:tomcat-jdbc:$tomcatVersion"
testRuntimeOnly "org.springframework:spring-aop:$springVersion"
testRuntimeOnly "org.springframework:spring-aop"
testRuntimeOnly "org.apache.tomcat.embed:tomcat-embed-logging-log4j:$tomcatLog4jVersion"

testRuntimeOnly "org.slf4j:slf4j-simple:$slf4jVersion"
Expand Down
11 changes: 4 additions & 7 deletions grails-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ configurations.all {
details.requested.name != 'grails-datastore-gorm-hibernate5') {
details.useVersion(gormVersion)
}
if(details.requested.group == 'org.springframework') {
details.useVersion(springVersion)
}
}
}

Expand All @@ -25,8 +22,8 @@ dependencies {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}

api "org.springframework.boot:spring-boot:$springBootVersion"
api "org.springframework:spring-orm:$springVersion"
api "org.springframework.boot:spring-boot"
api "org.springframework:spring-orm"
api "org.hibernate:hibernate-core-jakarta:${hibernateVersion}"
api "org.hibernate:hibernate-ehcache:$hibernateVersion"
api "org.grails:grails-datastore-web:$gormVersion"
Expand All @@ -46,8 +43,8 @@ dependencies {
testRuntimeOnly "com.h2database:h2"
testRuntimeOnly "org.apache.tomcat:tomcat-jdbc:$tomcatVersion"
testRuntimeOnly "org.apache.tomcat.embed:tomcat-embed-logging-log4j:$tomcatLog4jVersion"
testRuntimeOnly "org.springframework:spring-aop:$springVersion"
testRuntimeOnly "org.springframework:spring-expression:$springVersion"
testRuntimeOnly "org.springframework:spring-aop"
testRuntimeOnly "org.springframework:spring-expression"
}

groovydoc.classpath += configurations.documentation
Loading