-
Notifications
You must be signed in to change notification settings - Fork 20
/
build.gradle
201 lines (178 loc) · 6.4 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
buildscript {
version "7.1.1"
group "au.org.ala"
}
plugins {
id "groovy"
id "org.grails.grails-gsp"
id "org.grails.grails-web"
id "war"
id "idea"
id "com.bertramlabs.asset-pipeline"
id "com.github.erdi.webdriver-binaries" version "3.0"
id "eclipse"
id "maven-publish"
}
ext {
// The drivers we want to use
drivers = ["firefox", "chrome", "chromeHeadless"]
ext {
gebVersion = '2.3'
seleniumVersion = '3.14.0'
chromeDriverVersion = '2.44'
geckoDriverVersion = '0.26.0'
}
}
repositories {
mavenLocal()
maven { url "https://nexus.ala.org.au/content/groups/public/" }
maven { url "https://repo.grails.org/grails/core" }
}
configurations {
developmentOnly
runtimeClasspath {
extendsFrom developmentOnly
}
}
bootWar {
launchScript()
dependsOn(compileGroovyPages)
}
war {
dependsOn(compileGroovyPages)
}
// Set to true it needed only for development
boolean inplace = false
if (inplace) {
grails {
exploded = true
plugins {
// When not inplace used, the dependencies below are managed by biocache-hubs plugin
implementation project(':biocache-hubs')
// implementation project(':downloads-plugin')
// implementation project(':ala-charts-plugin')
// implementation project(':images-client-plugin')
// implementation project(':ala-bootstrap3')
// implementation project(':ala-ws-plugin')
// implementation "au.org.ala.plugins.grails:downloads-plugin:3.0", {
// exclude group: 'org.grails.plugins', module: 'cache'
// exclude group: 'org.ehcache', module: 'ehcache'
// exclude group: 'org.grails.plugins', module: 'cache-ehcache'
// }
// implementation "org.grails.plugins:ala-bootstrap3:4.1.0", {
// exclude group: 'au.org.ala', module: 'ala-cas-client'
// }
}
}
}
dependencies {
def noCache = {
exclude group: 'org.grails.plugins', module: 'cache'
exclude group: 'org.ehcache', module: 'ehcache'
exclude group: 'org.grails.plugins', module: 'cache-ehcache'
}
developmentOnly("org.springframework.boot:spring-boot-devtools")
implementation "org.springframework.boot:spring-boot-starter-logging"
implementation "org.springframework.boot:spring-boot-autoconfigure"
implementation "org.grails:grails-core"
implementation "org.springframework.boot:spring-boot-starter-actuator"
implementation "org.springframework.boot:spring-boot-starter-tomcat"
implementation "org.grails:grails-web-boot"
implementation "org.grails:grails-logging"
implementation "org.grails:grails-plugin-rest"
implementation "org.grails:grails-plugin-i18n"
implementation "org.grails:grails-plugin-services"
implementation "org.grails:grails-plugin-url-mappings"
implementation "org.grails:grails-plugin-interceptors"
// implementation "org.grails.plugins:cache:5.0.0-ALA:ALA"
// implementation "org.grails.plugins:cache"
implementation "org.grails.plugins:cache:5.0.1-ALA"
implementation "org.grails.plugins:async"
implementation "org.grails.plugins:scaffolding"
implementation "org.grails.plugins:events"
implementation "org.grails.plugins:gsp"
implementation 'dk.glasius:external-config:3.1.1'
compileOnly "io.micronaut:micronaut-inject-groovy"
console "org.grails:grails-console"
profile "org.grails.profiles:web"
runtimeOnly "org.glassfish.web:el-impl:2.2.1-b05"
runtimeOnly "com.h2database:h2"
runtimeOnly "org.apache.tomcat:tomcat-jdbc"
runtimeOnly 'org.ehcache:ehcache'
runtimeOnly "javax.xml.bind:jaxb-api:2.3.1"
runtimeOnly 'org.glassfish.jaxb:jaxb-runtime:2.3.1'
// runtimeOnly 'jakarta.xml.bind:jakarta.xml.bind-api:3.0.1'
runtimeOnly "com.bertramlabs.plugins:asset-pipeline-grails:3.4.7"
testImplementation "io.micronaut:micronaut-inject-groovy"
testImplementation "org.mockito:mockito-core"
testImplementation "org.grails:grails-web-testing-support"
testImplementation "org.grails.plugins:geb"
testImplementation "org.seleniumhq.selenium:selenium-remote-driver:4.0.0"
testImplementation "org.seleniumhq.selenium:selenium-api:4.0.0"
testImplementation "org.seleniumhq.selenium:selenium-support:4.0.0"
testRuntimeOnly "org.seleniumhq.selenium:selenium-chrome-driver:4.0.0"
testRuntimeOnly "org.seleniumhq.selenium:selenium-firefox-driver:4.0.0"
// Jars
implementation 'org.apache.httpcomponents:httpclient:4.5.13'
implementation 'xml-apis:xml-apis:1.4.01'
// ALA Plugins
implementation "org.grails.plugins:ala-bootstrap3:4.5.0", {
exclude group: 'au.org.ala', module: 'ala-cas-client'
}
implementation "au.org.ala.plugins.grails:downloads-plugin:5.0.0"
if (!inplace) {
implementation "au.org.ala.plugins.grails:biocache-hubs:7.1.1", noCache
}
}
bootRun {
ignoreExitValue true
jvmArgs(
'-Dspring.output.ansi.enabled=always',
'-noverify',
'-XX:TieredStopAtLevel=1',
'-Xmx1024m')
sourceResources sourceSets.main
String springProfilesActive = 'spring.profiles.active'
systemProperty springProfilesActive, System.getProperty(springProfilesActive)
}
tasks.withType(GroovyCompile) {
configure(groovyOptions) {
forkOptions.jvmArgs = ['-Xmx1024m']
}
}
assets {
minifyJs = true
minifyCss = true
}
publishing {
repositories {
maven {
name 'Nexus'
url "https://nexus.ala.org.au/content/repositories/${project.version.endsWith('-SNAPSHOT') ? 'snapshots' : 'releases' }"
credentials {
username = System.getenv('TRAVIS_DEPLOY_USERNAME')
password = System.getenv('TRAVIS_DEPLOY_PASSWORD')
}
}
}
publishing {
repositories {
maven {
name 'Nexus'
url "https://nexus.ala.org.au/content/repositories/${project.version.endsWith('-SNAPSHOT') ? 'snapshots' : 'releases'}"
credentials {
username = System.getenv('TRAVIS_DEPLOY_USERNAME')
password = System.getenv('TRAVIS_DEPLOY_PASSWORD')
}
}
}
publications {
mavenJar(MavenPublication) {
artifact bootWar
}
}
}
bootWar {
launchScript()
}
}