Skip to content

Commit ad94c61

Browse files
committed
Adjusted build to be like grails-mail
1 parent 25fb584 commit ad94c61

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

build.gradle

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ apply plugin: 'groovy'
66
apply plugin: 'org.apache.grails.gradle.grails-plugin'
77
apply plugin: 'org.apache.grails.gradle.grails-publish'
88

9+
version = projectVersion
910
group = 'org.grails.plugins'
1011

1112
repositories {
@@ -30,24 +31,18 @@ ext {
3031
}
3132

3233
dependencies {
33-
compileOnly 'org.springframework.boot:spring-boot-starter-logging'
34-
compileOnly 'org.springframework.boot:spring-boot-starter-validation'
35-
compileOnly 'org.springframework.boot:spring-boot-autoconfigure'
36-
compileOnly 'org.apache.grails:grails-core'
37-
testImplementation 'org.apache.grails:grails-testing-support-web'
38-
}
34+
compileOnly platform("org.apache.grails:grails-bom:$grailsVersion")
35+
compileOnly 'org.apache.grails:grails-dependencies-starter-web'
3936

40-
java {
41-
withSourcesJar()
42-
withJavadocJar()
43-
sourceCompatibility = JavaVersion.toVersion(javaVersion)
37+
testImplementation platform("org.apache.grails:grails-bom:$grailsVersion")
38+
testImplementation 'org.apache.grails:grails-dependencies-starter-web'
39+
testImplementation 'org.apache.grails:grails-testing-support-web'
4440
}
4541

4642
tasks.withType(Test).configureEach {
4743
useJUnitPlatform()
4844
testLogging {
49-
events 'failed'
50-
exceptionFormat 'full'
45+
events 'passed', 'skipped', 'failed'
5146
}
5247
}
5348
groovydoc {

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version=7.0.0-SNAPSHOT
1+
projectVersion=7.0.0-SNAPSHOT
22
grailsVersion=7.0.0-SNAPSHOT
33

44
javaVersion=17

0 commit comments

Comments
 (0)