-
Notifications
You must be signed in to change notification settings - Fork 85
/
build.gradle
70 lines (55 loc) · 2.47 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
plugins {
id 'groovy'
id 'java-library'
id 'io.github.gradle-nexus.publish-plugin'
id 'maven-publish'
id 'signing'
}
version = projectVersion
group = 'org.grails.plugins'
ext.set('grailsVersion', libs.versions.grails.get())
ext.set('isReleaseVersion', !version.toString().endsWith('-SNAPSHOT'))
ext.set('isSnapshot', !isReleaseVersion)
apply plugin: 'org.grails.grails-plugin' // Needs to be applied after grailsVersion has been set
repositories {
mavenCentral()
maven { url = 'https://repo.grails.org/grails/core' }
}
dependencies {
implementation(platform(libs.grails.bom))
compileOnly libs.servlet.api // Provided by the servlet container
compileOnly libs.grails.core // Provided as this is a Grails plugin
compileOnly libs.groovy.core // Used in public api, but Groovy is always provided
compileOnlyApi libs.javamail.api // Used in public api
api libs.spring.context // Used in public api
api libs.spring.contextSupport // Used in public api
// These two libraries are used in public api, but not in a way
// that is meant to be consumed by users of the plugin.
// Therefore they are set to implementation to not expose unnecessarily
// to the compileClasspath of plugin users.
implementation libs.grails.gsp.core
implementation libs.grails.webCommon
implementation libs.grails.gsp.webTaglib
implementation libs.grails.webUrlmappings
implementation libs.javamail.impl // Needs to be implementation (not runtimeOnly), as SMTPMessage is used in MailMessageBuilder
implementation libs.spring.beans
implementation libs.springboot.autoconfigure
testImplementation libs.servlet.api
testImplementation libs.grails.testingSupport.core
testImplementation libs.spock.core
integrationTestImplementation libs.greenmail
integrationTestImplementation libs.groovy.xml
integrationTestImplementation libs.spring.web
integrationTestRuntimeOnly libs.springboot.starterTomcat
integrationTestRuntimeOnly libs.grails.testingSupport.web
}
tasks.withType(Test).configureEach {
useJUnitPlatform()
testLogging {
events 'passed', 'skipped', 'failed', 'standardError', 'standardOut'
}
}
apply from: layout.projectDirectory.file('gradle/java-config.gradle')
apply from: layout.projectDirectory.file('gradle/grails-plugin-config.gradle')
apply from: layout.projectDirectory.file('gradle/documentation-config.gradle')
apply from: layout.projectDirectory.file('gradle/publishing.gradle')