-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
101 lines (93 loc) · 3.78 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
plugins {
id "groovy"
id "org.grails.grails-web"
id "org.grails.grails-gsp"
id "com.github.erdi.webdriver-binaries" version "3.0"
id "war"
id "idea"
id "com.bertramlabs.asset-pipeline"
id "application"
id "eclipse"
}
version "0.1"
group = "grailsSixZeroZero"
repositories {
mavenCentral()
maven { url "https://repo.grails.org/grails/core/" }
}
configurations {
all {
resolutionStrategy.force 'org.codehaus.groovy:groovy-xml:3.0.13'
resolutionStrategy.eachDependency { DependencyResolveDetails details->
if (details.requested.group == 'org.seleniumhq.selenium') {
details.useVersion('4.10.0')
}
}
}
}
dependencies {
implementation("org.grails:grails-core")
implementation("org.grails:grails-logging")
implementation("org.grails:grails-plugin-databinding")
implementation("org.grails:grails-plugin-i18n")
implementation("org.grails:grails-plugin-interceptors")
implementation("org.grails:grails-plugin-rest")
implementation("org.grails:grails-plugin-services")
implementation("org.grails:grails-plugin-url-mappings")
implementation("org.grails:grails-web-boot")
implementation("org.grails.plugins:gsp")
implementation("org.grails.plugins:hibernate5")
implementation("org.grails.plugins:scaffolding")
implementation("org.hibernate:hibernate-core:5.6.15.Final")
implementation("org.springframework.boot:spring-boot-autoconfigure")
implementation("org.springframework.boot:spring-boot-starter")
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("org.springframework.boot:spring-boot-starter-logging")
implementation("org.springframework.boot:spring-boot-starter-tomcat")
implementation("org.springframework.boot:spring-boot-starter-validation")
compileOnly("io.micronaut:micronaut-inject-groovy")
console("org.grails:grails-console")
runtimeOnly("com.bertramlabs.plugins:asset-pipeline-grails:4.3.0")
runtimeOnly("com.h2database:h2")
runtimeOnly("javax.xml.bind:jaxb-api:2.3.1")
runtimeOnly("org.apache.tomcat:tomcat-jdbc")
runtimeOnly("org.fusesource.jansi:jansi:1.18")
runtimeOnly("org.glassfish.web:el-impl:2.2.1-b05")
testImplementation("io.micronaut:micronaut-inject-groovy")
testImplementation("org.grails:grails-gorm-testing-support")
testImplementation("org.grails:grails-web-testing-support")
testImplementation("org.grails.plugins:geb")
testImplementation("org.seleniumhq.selenium:selenium-api:4.10.0")
testImplementation("org.seleniumhq.selenium:selenium-remote-driver:4.10.0")
testImplementation("org.seleniumhq.selenium:selenium-support:4.10.0")
testImplementation("org.spockframework:spock-core")
testRuntimeOnly("org.seleniumhq.selenium:selenium-chrome-driver:4.10.0")
testRuntimeOnly("org.seleniumhq.selenium:selenium-firefox-driver:4.10.0")
testRuntimeOnly("org.seleniumhq.selenium:selenium-safari-driver:4.10.0")
testImplementation("io.micronaut:micronaut-http-client")
}
application {
mainClass.set("grailsSixZeroZero.Application")
}
java {
sourceCompatibility = JavaVersion.toVersion("11")
}
tasks.withType(Test) {
useJUnitPlatform()
systemProperty "geb.env", System.getProperty('geb.env')
systemProperty "geb.build.reportsDir", reporting.file("geb/integrationTest")
systemProperty 'webdriver.chrome.driver', "${System.getenv('CHROMEWEBDRIVER')}/chromedriver"
systemProperty 'webdriver.gecko.driver', "${System.getenv('GECKOWEBDRIVER')}/geckodriver"
}
tasks.withType(War).configureEach { War war ->
war.dependsOn compileGroovyPages
}
webdriverBinaries {
chromedriver '110.0.5481.77'
geckodriver '0.32.2'
edgedriver '110.0.1587.57'
}
assets {
minifyJs = true
minifyCss = true
}