-
Notifications
You must be signed in to change notification settings - Fork 15
/
build.gradle
256 lines (211 loc) · 8.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
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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
buildscript {
repositories {
mavenLocal()
maven { url "https://nexus.ala.org.au/content/groups/public/" }
maven { url "https://repo.grails.org/grails/core" }
maven { url 'https://plugins.gradle.org/m2/' }
}
dependencies {
classpath "org.grails:grails-gradle-plugin:$grailsGradlePluginVersion"
classpath "com.bertramlabs.plugins:asset-pipeline-gradle:$assetPipelineVersion"
classpath 'org.grails.plugins:quartz:2.0.13' // Needed to compile *Job classes
classpath "org.grails.plugins:views-gradle:$grailsViewsVersion"
}
}
plugins {
id "com.github.node-gradle.node" version "3.4.0"
id 'jacoco'
id "com.gorylenko.gradle-git-properties" version "2.4.1"
}
version "5.1-SNAPSHOT"
group "au.org.ala"
description "Ecodata"
apply plugin:"eclipse"
apply plugin:"idea"
apply plugin:"war"
apply plugin: "groovy"
apply plugin:"org.grails.grails-web"
apply plugin:"org.grails.grails-gsp"
apply plugin: "org.grails.plugins.views-json"
apply plugin:"asset-pipeline"
if (Boolean.valueOf(enableJacoco)) {
apply from: "${project.projectDir}/gradle/jacoco.gradle"
}
sourceCompatibility = '11'
targetCompatibility = '11'
apply from: "${project.projectDir}/gradle/publish.gradle"
repositories {
mavenLocal()
maven { url "https://repo.osgeo.org/repository/release/" }
maven { url "https://repo.grails.org/grails/core" }
maven { url "https://nexus.ala.org.au/content/groups/public/" }
mavenCentral()
}
configurations {
developmentOnly
runtimeClasspath {
extendsFrom developmentOnly
}
}
dependencies {
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 'javax.media:jai-core:1.1.3'
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-databinding"
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"
implementation "org.grails.plugins:async"
implementation "org.grails.plugins:scaffolding"
implementation "org.grails.plugins:events"
implementation "org.grails:grails-plugin-datasource"
implementation "org.grails:grails-plugin-databinding"
implementation "org.grails:grails-plugin-codecs"
implementation "org.grails.plugins:mongodb:$gormMongoVersion"
implementation "org.grails.plugins:gorm-graphql-plugin:2.0.0"
// Without this override, 18.1 is being included which is not compatible with the graphql-plugin
implementation "com.graphql-java:graphql-java:14.0"
implementation "org.grails.plugins:gsp"
console "org.grails:grails-console"
profile "org.grails.profiles:web"
implementation "org.grails.plugins:views-json:$grailsViewsVersion"
implementation "org.grails.plugins:views-json-templates:$grailsViewsVersion"
testImplementation "org.grails:views-json-testing-support:$grailsViewsVersion"
implementation 'dk.glasius:external-config:3.0.0'
implementation "com.bertramlabs.plugins:asset-pipeline-grails:$assetPipelineVersion"
implementation "org.elasticsearch:elasticsearch:$elasticsearchVersion"
implementation "org.elasticsearch.client:elasticsearch-rest-high-level-client:$elasticsearchVersion"
implementation "org.elasticsearch.client:elasticsearch-rest-client:$elasticsearchVersion"
implementation "com.spatial4j:spatial4j:0.5"
implementation group: 'org.locationtech.spatial4j', name: 'spatial4j', version: '0.7'
implementation group: 'org.locationtech.jts', name: 'jts-core', version: '1.15.0'
implementation 'org.apache.poi:poi:5.2.2'
implementation 'org.apache.poi:poi-ooxml:5.2.2'
implementation 'org.codehaus.groovy:groovy-dateutil:3.0.8'
implementation "org.grails.plugins:ala-auth:$alaSecurityLibsVersion"
implementation "org.grails.plugins:ala-ws-security-plugin:$alaSecurityLibsVersion"
implementation "org.grails.plugins:ala-ws-plugin:$alaSecurityLibsVersion"
implementation "au.org.ala:userdetails-service-client:$alaSecurityLibsVersion"
implementation "org.codehaus.gpars:gpars:1.1.0"
implementation "org.apache.httpcomponents:httpclient:4.5.7"
implementation "org.imgscalr:imgscalr-lib:4.2"
implementation "commons-io:commons-io:2.11.0"
implementation ("com.github.fge:json-schema-validator:2.1.6") {
exclude module: "mailapi"
}
implementation 'org.grails.plugins:excel-export:2.1'
implementation "org.locationtech.jts:jts-core:${jtsVersion}"
implementation "com.itextpdf:itextpdf:5.5.1"
implementation "org.apache.httpcomponents:httpmime:4.2.1"
implementation 'org.grails.plugins:csv:1.0.1'
implementation "org.geotools.xsd:gt-xsd-kml:${geoToolsVersion}"
implementation "org.geotools:gt-shapefile:${geoToolsVersion}"
implementation "org.geotools:gt-geojson:${geoToolsVersion}"
implementation "org.geotools:gt-epsg-hsql:${geoToolsVersion}"
implementation 'com.twelvemonkeys.imageio:imageio-jpeg:3.6.4'
implementation 'org.grails.plugins:mail:3.0.0'
implementation "com.drewnoakes:metadata-extractor:2.10.1"
implementation 'org.codehaus.jackson:jackson-core-asl:1.9.13'
implementation 'org.codehaus.jackson:jackson-mapper-asl:1.9.13'
implementation 'org.grails.plugins:quartz:2.0.13'
implementation 'org.quartz-scheduler:quartz:2.2.1' // Need transitive dependency from plugin
// For logback filter
implementation 'org.codehaus.janino:janino:3.0.6'
// Added due to previous reliance on transitive dependencies from plugins
implementation 'au.com.bytecode:opencsv:2.4'
implementation "com.bertramlabs.plugins:asset-pipeline-core:$assetPipelineVersion"
implementation 'au.org.ala.plugins:openapi:1.2.0-SNAPSHOT'
implementation "org.hibernate:hibernate-validator:6.2.0.Final"
testImplementation "org.grails:grails-gorm-testing-support"
testImplementation "org.grails.plugins:geb"
testImplementation "org.grails:grails-web-testing-support"
testImplementation "com.github.tomakehurst:wiremock-jre8-standalone:2.33.2"
testImplementation "org.seleniumhq.selenium:selenium-chrome-driver:$seleniumVersion"
testRuntimeOnly "org.seleniumhq.selenium:selenium-firefox-driver:$seleniumVersion"
testRuntimeOnly "org.seleniumhq.selenium:selenium-safari-driver:$seleniumSafariDriverVersion"
testImplementation "org.seleniumhq.selenium:selenium-remote-driver:$seleniumVersion"
testImplementation "org.seleniumhq.selenium:selenium-api:$seleniumVersion"
testImplementation "org.seleniumhq.selenium:selenium-support:$seleniumVersion"
testRuntimeOnly "org.seleniumhq.selenium:selenium-htmlunit-driver:2.47.1"
testRuntimeOnly "net.sourceforge.htmlunit:htmlunit:2.18"
testImplementation "com.squareup.retrofit2:retrofit-mock:2.4.0"
// This is needed to support test execution based on @Tag
testImplementation "org.spockframework:spock-core:2.2-groovy-3.0"
runtimeOnly "org.slf4j:jul-to-slf4j:1.7.7"
runtimeOnly "org.hsqldb:hsqldb:2.3.1"
}
springBoot {
buildInfo()
}
bootRun {
//dependsOn npm_run_bundle
jvmArgs('-Dspring.output.ansi.enabled=always', '-Xmx8000m')
sourceResources sourceSets.main
System.properties.each { k,v->
if(!systemProperties[k]) {
systemProperties[k] = v
println "$k = $v"
}
}
String springProfilesActive = 'spring.profiles.active'
systemProperty springProfilesActive, System.getProperty(springProfilesActive)
}
tasks.withType(GroovyCompile) {
configure(groovyOptions) {
forkOptions.jvmArgs = ['-Xmx1024m', '-Xss2048k']
}
}
tasks.withType(Test) {
useJUnitPlatform() {
excludeTags("mongo")
}
}
tasks.withType(Test) {
testLogging {
events "passed", "skipped", "failed"
exceptionFormat 'full'
showStandardStreams true
}
}
tasks.register("mongoSpecTests", Test) {
useJUnitPlatform {
includeTags "mongo"
}
}
test {
dependsOn "mongoSpecTests"
}
assets {
minifyJs = true
minifyCss = true
}
npm_run_bundle {
dependsOn npmInstall
}
bootJar {
duplicatesStrategy(DuplicatesStrategy.EXCLUDE)
enabled = true
classifier = 'exec'
launchScript()
}
assetCompile {
dependsOn npm_run_bundle
}
assemble {
dependsOn bootJar
}
bootWar {
enabled = false
}
publish {
dependsOn assemble
}