-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle
87 lines (73 loc) · 2.48 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
buildscript {
repositories {
maven { url = 'https://repo.grails.org/grails/core' }
}
dependencies {
classpath "org.grails:grails-gradle-plugin:$grailsGradlePluginVersion"
}
}
version = projectVersion
group = 'org.grails.plugins'
apply plugin: 'java-library'
apply plugin: 'java-test-fixtures'
apply plugin: 'org.grails.grails-plugin'
apply plugin: 'org.grails.internal.grails-plugin-publish'
apply plugin: 'maven-publish'
tasks.withType(JavaCompile).configureEach {
options.release = 17
}
repositories {
maven { url = 'https://repo.grails.org/grails/core' }
}
configurations {
documentation.extendsFrom compileClasspath
}
dependencies {
implementation(platform("org.grails:grails-bom:$grailsVersion"))
compileOnly 'org.grails:grails-core' // Provided as this is a Grails plugin
testFixturesCompileOnly 'jakarta.servlet:jakarta.servlet-api'
testFixturesApi 'org.gebish:geb-spock'
testFixturesApi 'org.grails:grails-testing-support'
testFixturesApi 'org.grails:grails-datastore-gorm'
testFixturesApi "org.testcontainers:selenium:$testcontainersVersion"
testFixturesApi "org.seleniumhq.selenium:selenium-chrome-driver:$seleniumVersion"
testFixturesApi "org.seleniumhq.selenium:selenium-remote-driver:$seleniumVersion"
documentation 'org.apache.groovy:groovy'
documentation 'org.apache.groovy:groovy-ant'
documentation 'org.apache.groovy:groovy-templates'
documentation 'com.github.javaparser:javaparser-core'
}
grailsPublish {
userOrg = 'grails'
githubSlug = 'grails/geb'
license {
name = 'Apache-2.0'
}
title = 'Grails Geb Plugin'
desc = 'Provides Integration with Geb for Functional Testing'
developers = [
graemerocher: 'Graeme Rocher',
puneetbehl: 'Puneet Behl',
sbglasius: 'Søren Berg Glasius',
matrei: 'Mattias Reichel'
]
}
tasks.withType(Groovydoc).configureEach {
destinationDir = layout.buildDirectory.dir('docs/api').get().asFile
docTitle = "Grails Geb Plugin ${version}"
classpath = configurations.documentation
}
tasks.withType(Test).configureEach {
useJUnitPlatform()
testLogging {
events 'passed', 'skipped', 'failed'
showExceptions true
exceptionFormat 'full'
showCauses true
showStackTraces true
}
}
tasks.named('bootJar') { enabled = false }
tasks.named('bootRun') { enabled = false }
tasks.named('bootTestRun') { enabled = false }
tasks.named('findMainClass') { enabled = false }