-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.gradle
106 lines (88 loc) · 3.32 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
buildscript {
repositories {
maven { url = 'https://repo.grails.org/grails/core' }
}
dependencies {
classpath "org.grails:grails-gradle-plugin:$grailsGradlePluginVersion"
}
}
plugins {
id 'com.github.ben-manes.versions' version '0.51.0'
}
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.grails-publish'
tasks.withType(JavaCompile).configureEach {
options.release = 17
}
repositories {
maven { url = 'https://repo.grails.org/grails/core' }
if (System.getenv("GITHUB_MAVEN_PASSWORD") && !grailsVersion.endsWith('-SNAPSHOT')) {
System.out.println("Adding Grails Core Repo for project ${project.name}")
maven {
url = 'https://maven.pkg.github.com/grails/grails-core'
credentials {
username = 'DOES_NOT_MATTER'
password = System.getenv("GITHUB_MAVEN_PASSWORD")
}
}
}
}
configurations.register('documentation')
ext.set('selenium.version', seleniumVersion) // Override selenium version from spring-boot-dependencies
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'
testFixturesCompileOnly 'org.slf4j:slf4j-simple' // Remove compilation warning about missing slf4j impl
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"
testFixturesImplementation "org.seleniumhq.selenium:selenium-support:$seleniumVersion"
documentation 'org.apache.groovy:groovy'
documentation 'org.apache.groovy:groovy-ant'
documentation 'org.apache.groovy:groovy-templates'
documentation 'org.apache.groovy:groovy-xml'
documentation 'com.github.javaparser:javaparser-core'
}
grailsPublish {
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',
jdaugherty: 'James Daugherty'
]
}
tasks.withType(Groovydoc).configureEach {
destinationDir = layout.buildDirectory.dir('docs/api').get().asFile
docTitle = "Grails Geb Plugin ${version}"
classpath = configurations.documentation
source = files(source, sourceSets.testFixtures.allSource)
}
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 }