@@ -6,7 +6,6 @@ buildscript {
66 dependencies {
77 classpath " org.grails:grails-gradle-plugin:$grailsGradlePluginVersion "
88 classpath " org.asciidoctor:asciidoctor-gradle-jvm:$asciidoctorGradleVersion "
9- classpath " com.github.erdi:webdriver-binaries-gradle-plugin:$webdriverBinariesPluginVersion "
109 classpath " io.github.gradle-nexus:publish-plugin:$gradleNexusPublishPluginVersion "
1110 }
1211}
@@ -17,7 +16,6 @@ group "org.grails"
1716version project. projectVersion
1817
1918ext {
20- hibernatePluginVersion = project. hibernatePluginVersion
2119 isCiBuild = project. hasProperty(" isCiBuild" ) || System . getenv(). get(" CI" ) as Boolean
2220 isBuildSnapshot = project. version. endsWith(" -SNAPSHOT" )
2321 isReleaseVersion = ! isBuildSnapshot
@@ -56,7 +54,6 @@ allprojects {
5654 ext. groovyVersion = System . getenv(' CI_GROOVY_VERSION' ) ?: project. groovyVersion
5755
5856 repositories {
59- mavenLocal()
6057 mavenCentral()
6158 maven { url = ' https://repo.grails.org/grails/core' }
6259 maven { url = ' https://oss.sonatype.org/content/repositories/snapshots' }
@@ -69,18 +66,11 @@ allprojects {
6966 url = ' https://repository.apache.org/content/repositories/snapshots'
7067 }
7168 }
69+ // mavenLocal() // do not commit uncommented, for local testing only
7270 }
7371}
7472
7573subprojects { Project subproject ->
76-
77- ext[' h2.version' ] = h2Version
78- ext[' gorm.version' ] = datastoreVersion
79- ext[' gorm.hibernate5.version' ] = hibernatePluginVersion
80- ext[' junit-jupiter.version' ] = junitJupiterVersion
81- ext[' spock.version' ] = spockVersion
82- ext[' mongodb.version' ] = mongodbDriverVersion
83-
8474 if (project. name. startsWith(" examples" )) {
8575
8676 apply plugin : ' groovy'
@@ -91,39 +81,19 @@ subprojects { Project subproject ->
9181 apply plugin :" org.grails.grails-gsp"
9282 }
9383
94- boolean usesGeb = project. name. contains(' grails3-hibernate5-mongodb' ) || project. name. contains(' grails3-mongodb' ) || project. name. contains(' grails3-mongodb-database-per-tenant' )|| project. name. contains(' grails3-rxmongodb' )
95-
96- if (usesGeb) {
97- apply plugin :" com.github.erdi.webdriver-binaries"
98- }
99-
10084 if (project. name == " examples-test-data-service" ) {
10185 apply plugin :" org.grails.grails-web"
10286 }
10387
104- configurations. configureEach {
105- resolutionStrategy. eachDependency { DependencyResolveDetails details ->
106- if (details. requested. group == ' org.apache.groovy' && details. requested. name. startsWith(' groovy' )) {
107- details. useVersion(groovyVersion)
108- } else if (details. requested. group == ' org.mongodb' && details. requested. module. name != ' mongodb-driver-rx' ) {
109- details. useVersion(mongodbDriverVersion)
110- } else if (details. requested. group == ' org.springframework' ) {
111- details. useVersion(springVersion)
112- } else if (details. requested. group == " org.springframework.boot" ) {
113- details. useVersion(springBootVersion)
114- }
115- }
116- }
117-
11888 dependencies {
119- testImplementation " jakarta.annotation:jakarta.annotation-api: $j akartaAnnotationApiVersion "
89+ implementation platform( " org.grails:grails-bom: $g railsVersion " )
12090 testImplementation " io.micrometer:micrometer-core:latest.integration"
121- testImplementation " org.hibernate:hibernate-validator: $h ibernateValidatorVersion "
122- testImplementation " org.apache.groovy:groovy-test-junit5: $g roovyVersion "
123- testImplementation " org.spockframework:spock-core: $s pockVersion " , { transitive = false }
124- testImplementation " org.junit.jupiter:junit-jupiter-api: $j unitJupiterVersion "
125- testImplementation " org.junit.platform:junit-platform-runner: $j unitJupiterPlatformVersion "
126- testRuntimeOnly " org.junit.jupiter:junit-jupiter-engine: $j unitJupiterVersion "
91+ testImplementation " org.hibernate.validator :hibernate-validator"
92+ testImplementation " org.apache.groovy:groovy-test-junit5"
93+ testImplementation " org.spockframework:spock-core" , { transitive = false }
94+ testImplementation " org.junit.jupiter:junit-jupiter-api"
95+ testImplementation " org.junit.platform:junit-platform-runner"
96+ testRuntimeOnly " org.junit.jupiter:junit-jupiter-engine"
12797 }
12898
12999 tasks. withType(Test ) {
@@ -220,56 +190,17 @@ subprojects { Project subproject ->
220190 withSourcesJar()
221191 }
222192
223- configurations {
224- all {
225- resolutionStrategy {
226- force " org.apache.groovy:groovy:$groovyVersion "
227- force " org.apache.groovy:groovy-dateutil:$groovyVersion "
228- force " org.apache.groovy:groovy-xml:$groovyVersion "
229- force " org.apache.groovy:groovy-templates:$groovyVersion "
230- }
231- }
232- }
233-
234- configurations. all {
235- resolutionStrategy. eachDependency { DependencyResolveDetails details ->
236- def dependencyName = details. requested. name
237- if (dependencyName. startsWith(' mongodb-driver' ) && ! dependencyName. contains(' -rx' )) {
238- details. useVersion(mongodbDriverVersion)
239- } else if ( details. requested. group == ' org.grails' &&
240- details. requested. name in [' grails-datastore-core' ,
241- ' grails-datastore-async' ,
242- ' grails-datastore-gorm' ,
243- ' grails-datastore-gorm-async' ,
244- ' grails-datastore-gorm-rx' ,
245- ' grails-datastore-gorm-support' ,
246- ' grails-datastore-gorm-tck' ,
247- ' grails-datastore-gorm-test' ,
248- ' grails-datastore-gorm-validation' ,
249- ' grails-datastore-web' ]
250- ) {
251- details. useVersion(datastoreVersion)
252- } else if (details. requested. group == ' org.mongodb' && details. requested. module. name != ' mongodb-driver-rx' ) {
253- details. useVersion(mongodbDriverVersion)
254- } else if (details. requested. group == ' org.springframework' ) {
255- details. useVersion(springVersion)
256- } else if (details. requested. group == ' org.springframework.boot' ) {
257- details. useVersion(springBootVersion)
258- }
259- }
260- }
261-
262193 dependencies {
263- api " org.apache.groovy:groovy: $g roovyVersion "
264- api " org.apache.groovy:groovy-templates: $g roovyVersion "
265-
266- testImplementation " org.apache.groovy:groovy-json: $g roovyVersion "
267- testImplementation " org.apache.groovy:groovy-templates: $g roovyVersion "
268- testImplementation " org.apache.groovy:groovy-test-junit5: $g roovyVersion "
269- testImplementation " org.spockframework:spock-core: $s pockVersion " , { transitive = false }
270- testImplementation " org.junit.jupiter:junit-jupiter-api: $j unitJupiterVersion "
271- testImplementation " org.junit.platform:junit-platform-runner: $j unitJupiterPlatformVersion "
272- testRuntimeOnly " org.junit.jupiter:junit-jupiter-engine: $j unitJupiterVersion "
194+ api " org.apache.groovy:groovy"
195+ api " org.apache.groovy:groovy-templates"
196+
197+ testImplementation " org.apache.groovy:groovy-json"
198+ testImplementation " org.apache.groovy:groovy-templates"
199+ testImplementation " org.apache.groovy:groovy-test-junit5"
200+ testImplementation " org.spockframework:spock-core" , { transitive = false }
201+ testImplementation " org.junit.jupiter:junit-jupiter-api"
202+ testImplementation " org.junit.platform:junit-platform-runner"
203+ testRuntimeOnly " org.junit.jupiter:junit-jupiter-engine"
273204 }
274205
275206 publishing {
0 commit comments