@@ -19,43 +19,63 @@ buildscript {
19
19
}
20
20
dependencies {
21
21
classpath " org.grails:grails-gradle-plugin:$grailsVersion "
22
- classpath " com.bertramlabs.plugins:asset-pipeline-gradle:3.3.2 "
23
- classpath " org.grails.plugins:hibernate5:7.0.2 "
22
+ classpath " com.bertramlabs.plugins:asset-pipeline-gradle:3.4.6 "
23
+ classpath " org.grails.plugins:hibernate5:7.0.5 "
24
24
classpath ' org.grails.plugins:quartz:2.0.13'
25
+ classpath " gradle.plugin.com.github.erdi.webdriver-binaries:webdriver-binaries-gradle-plugin:2.6"
25
26
}
26
27
}
27
28
28
29
plugins {
29
- id " com.gorylenko.gradle-git-properties" version " 1 .4.17 "
30
+ id " com.gorylenko.gradle-git-properties" version " 2 .4.1 "
30
31
}
31
32
32
33
33
- version " 2.0.3 "
34
+ version " 2.2.0-SNAPSHOT "
34
35
group " au.org.ala"
35
36
36
37
apply plugin :" eclipse"
37
38
apply plugin :" idea"
38
39
apply plugin :" war"
39
40
apply plugin :" org.grails.grails-web"
41
+ apply plugin :" com.github.erdi.webdriver-binaries"
40
42
apply plugin :" org.grails.grails-gsp"
41
43
apply plugin :" com.bertramlabs.asset-pipeline"
44
+ apply plugin :" maven-publish"
42
45
43
- // apply from: 'https://raw.githubusercontent.com/AtlasOfLivingAustralia/travis-build-configuration/master/travis_grails_publish.gradle'
44
- apply from : " ${ project.projectDir} /gradle/publish.gradle"
45
46
46
- sourceCompatibility = 1.11
47
- targetCompatibility = 1.11
47
+ publishing {
48
+ repositories {
49
+ maven {
50
+ name ' Nexus'
51
+ url " https://nexus.ala.org.au/content/repositories/${ project.version.endsWith('-SNAPSHOT') ? 'snapshots' : 'releases'} "
52
+ credentials {
53
+ username = System . getenv(' TRAVIS_DEPLOY_USERNAME' )
54
+ password = System . getenv(' TRAVIS_DEPLOY_PASSWORD' )
55
+ }
56
+ }
57
+ }
58
+ publications {
59
+ mavenJar(MavenPublication ) {
60
+ artifact bootWar
61
+ }
62
+ }
63
+ }
64
+
65
+ bootWar {
66
+ launchScript()
67
+ }
48
68
49
69
repositories {
50
70
mavenLocal()
51
71
maven { url " https://nexus.ala.org.au/content/groups/public/" }
52
72
maven { url " https://repo.grails.org/grails/core" }
53
73
}
54
74
55
- grails {
56
- exploded = true
57
- plugins {
58
- // compile project(":ala-admin-plugin") // inline plugin use only
75
+ configurations {
76
+ developmentOnly
77
+ runtimeClasspath {
78
+ extendsFrom developmentOnly
59
79
}
60
80
}
61
81
@@ -64,82 +84,104 @@ dependencies {
64
84
exclude group : ' org.grails.plugins' , module : ' cache'
65
85
exclude group : ' org.ehcache' , module : ' ehcache'
66
86
}
67
-
68
- compile " org.springframework.boot:spring-boot-starter-logging"
69
- compile " org.springframework.boot:spring-boot-autoconfigure"
70
- compile " org.grails:grails-core"
71
- compile " org.springframework.boot:spring-boot-starter-actuator"
72
- compile " org.springframework.boot:spring-boot-starter-tomcat"
73
- compile " org.grails:grails-web-boot"
74
- compile " org.grails:grails-logging"
75
- compile " org.grails:grails-plugin-rest"
76
- compile " org.grails:grails-plugin-databinding"
77
- compile " org.grails:grails-plugin-i18n"
78
- compile " org.grails:grails-plugin-services"
79
- compile " org.grails:grails-plugin-url-mappings"
80
- compile " org.grails:grails-plugin-interceptors"
81
- compile " org.grails.plugins:async"
82
- compile " org.grails.plugins:scaffolding"
83
- compile " org.grails.plugins:events"
84
- compile " org.grails.plugins:hibernate5"
85
- // compile "org.hibernate:hibernate-core:5.4.0.Final"
86
- // compile "org.hibernate:hibernate-ehcache:5.4.0.Final"
87
- compile " org.hibernate:hibernate-jcache"
88
-
89
- compile " org.grails.plugins:gsp"
87
+ developmentOnly(" org.springframework.boot:spring-boot-devtools" )
88
+ implementation " org.springframework.boot:spring-boot-starter-logging"
89
+ implementation " org.springframework.boot:spring-boot-autoconfigure"
90
+ implementation " org.grails:grails-core"
91
+ implementation " org.springframework.boot:spring-boot-starter-actuator"
92
+ implementation " org.springframework.boot:spring-boot-starter-tomcat"
93
+ implementation " org.grails:grails-web-boot"
94
+ implementation " org.grails:grails-logging"
95
+ implementation " org.grails:grails-plugin-rest"
96
+ implementation " org.grails:grails-plugin-databinding"
97
+ implementation " org.grails:grails-plugin-i18n"
98
+ implementation " org.grails:grails-plugin-services"
99
+ implementation " org.grails:grails-plugin-url-mappings"
100
+ implementation " org.grails:grails-plugin-interceptors"
101
+ implementation " org.grails.plugins:async"
102
+ implementation " org.grails.plugins:scaffolding"
103
+ implementation " org.grails.plugins:events"
104
+ implementation " org.grails.plugins:hibernate5"
105
+ implementation " org.hibernate:hibernate-jcache"
106
+
107
+ implementation " org.grails.plugins:gsp"
90
108
console " org.grails:grails-console"
91
109
profile " org.grails.profiles:web"
92
- runtime " org.glassfish.web:el-impl:2.1.2-b03"
93
- runtime " com.h2database:h2"
94
- runtime " org.apache.tomcat:tomcat-jdbc"
95
- runtime " com.bertramlabs.plugins:asset-pipeline-grails:3.3.2"
96
-
97
- // compile "org.grails.plugins:grails-plugin-converters" // only needed for grails 3.3
98
- // testCompile "org.grails:grails-plugin-testing"
99
- testCompile " org.grails:grails-gorm-testing-support"
100
- testCompile " org.grails.plugins:geb"
101
- testCompile " org.grails:grails-web-testing-support"
102
- testCompile " org.grails:grails-test-mixins:3.3.0"
110
+ runtimeOnly " org.glassfish.web:el-impl:2.1.2-b03"
111
+ runtimeOnly " com.h2database:h2"
112
+ runtimeOnly " org.apache.tomcat:tomcat-jdbc"
113
+ runtimeOnly " com.bertramlabs.plugins:asset-pipeline-grails:3.4.6"
114
+
115
+ testImplementation " org.grails:grails-gorm-testing-support"
116
+ testImplementation " org.grails.plugins:geb"
117
+ testImplementation " org.grails:grails-web-testing-support"
118
+ testImplementation " org.grails:grails-test-mixins:3.3.0"
103
119
104
120
// Grails plugin dependencies
105
- runtime " org.grails.plugins:ala-bootstrap3:4.1.0" , noCache
106
- compile " org.grails.plugins:ala-ws-security-plugin:4.1.1" , noCache
107
- compile " org.grails.plugins:ala-ws-plugin:3.1.2" , noCache
108
- compile " org.grails.plugins:ala-auth:5.1.1" , noCache
109
- compile " org.grails.plugins:ala-admin-plugin:2.3.0"
121
+ runtimeOnly " org.grails.plugins:ala-bootstrap3:4.1.0" , noCache
122
+ implementation " org.grails.plugins:ala-auth:$alaSecurityLibsVersion "
123
+ implementation " org.grails.plugins:ala-ws-security-plugin:$alaSecurityLibsVersion "
124
+ implementation " org.grails.plugins:ala-ws-plugin:$alaSecurityLibsVersion "
125
+ implementation " au.org.ala:userdetails-service-client:$alaSecurityLibsVersion "
126
+ implementation " org.grails.plugins:ala-admin-plugin:2.3.0"
110
127
111
- compile ' org.grails.plugins:external-config:2.0.0'
112
- compile ' org.grails.plugins:mail:3.0.0'
113
- compile ' org.grails.plugins:http-builder-helper:1.0.2.ALA'
114
- compile ' org.grails.plugins:schwartz-monitor:2.0.1.ALA-SNAPSHOT'
115
- compile ' org.grails.plugins:quartz:2.0.13'
116
- compile ' org.grails.plugins:cache:4.0.2'
117
- compile ' org.grails.plugins:cache-ehcache:3.0.0'
128
+ implementation ' dk.glasius:external-config:3.1.1'
129
+ implementation ' org.grails.plugins:mail:3.0.0'
130
+ implementation " org.codehaus.groovy.modules.http-builder:http-builder:0.7.2"
131
+ implementation ' org.grails.plugins:schwartz-monitor:2.0.1.ALA-SNAPSHOT'
132
+ implementation ' org.grails.plugins:quartz:2.0.13'
133
+ implementation ' org.quartz-scheduler:quartz:2.3.2' // Is not pulled in by default https://stackoverflow.com/questions/61144025/quartz-not-working-in-grails4-issue-in-dependency-not-able-to-compile
134
+ implementation ' org.grails.plugins:cache:4.0.2'
135
+ implementation ' org.grails.plugins:cache-ehcache:3.0.0'
118
136
119
137
// regular JAR dependencies
120
- runtime ' mysql:mysql-connector-java:8.0.25'
121
- testRuntime " com.h2database:h2"
122
- testRuntime " org.seleniumhq.selenium:selenium-htmlunit -driver:2.47.1 "
123
- testRuntime " net.sourceforge.htmlunit:htmlunit:2.18 "
124
- runtime ' commons-lang:commons-lang:2.6 '
125
- compile ' commons-io:commons-io:2.5 '
126
- runtime ' org.hamcrest:hamcrest-core:1.3 '
127
- runtime ' org.hamcrest:hamcrest-library:1.3 '
128
- runtime ' xalan:xalan:2.7.2 '
129
- // runtime 'org.apache.httpcomponents:httpcore:4.2.2 '
130
- // runtime 'org.apache.httpcomponents:httpclient:4.2 .2'
131
- compile ' com.jayway.jsonpath:json-path:0.5.6'
132
- compile ' com.jayway.jsonpath:json-path-assert:0.5.6'
133
- compile ' au.org.ala.plugins:openapi:1.1.0'
138
+ runtimeOnly ' mysql:mysql-connector-java:8.0.25'
139
+ testRuntimeOnly " com.h2database:h2"
140
+ testImplementation " org.seleniumhq.selenium:selenium-remote -driver:3.14.0 "
141
+ testImplementation " org.seleniumhq.selenium:selenium-api:3.14.0 "
142
+ testImplementation " org.seleniumhq.selenium:selenium-support:3.14.0 "
143
+ testImplementation " org.seleniumhq.selenium:selenium-firefox-driver:3.14.0 "
144
+ runtimeOnly ' commons-lang:commons-lang:2.6 '
145
+ implementation ' commons-io:commons-io:2.5 '
146
+ runtimeOnly ' org.hamcrest:hamcrest-core:1.3 '
147
+ runtimeOnly ' org.hamcrest:hamcrest-library:1.3 '
148
+ runtimeOnly ' xalan:xalan:2.7 .2'
149
+ implementation ' com.jayway.jsonpath:json-path:0.5.6'
150
+ implementation ' com.jayway.jsonpath:json-path-assert:0.5.6'
151
+ implementation ' au.org.ala.plugins:openapi:1.1.0'
134
152
}
135
153
136
154
bootRun {
137
- jvmArgs(' -Dspring.output.ansi.enabled=always' )
155
+ ignoreExitValue true
156
+ jvmArgs(
157
+ ' -Dspring.output.ansi.enabled=always' ,
158
+ ' -noverify' ,
159
+ ' -XX:TieredStopAtLevel=1' ,
160
+ ' -Xmx1024m' )
138
161
sourceResources sourceSets. main
139
162
String springProfilesActive = ' spring.profiles.active'
140
163
systemProperty springProfilesActive, System . getProperty(springProfilesActive)
141
164
}
142
165
166
+ tasks. withType(GroovyCompile ) {
167
+ configure(groovyOptions) {
168
+ forkOptions. jvmArgs = [' -Xmx1024m' ]
169
+ }
170
+ }
171
+
172
+
173
+ webdriverBinaries {
174
+ chromedriver ' 2.45.0'
175
+ geckodriver ' 0.24.0'
176
+ }
177
+
178
+ tasks. withType(Test ) {
179
+ systemProperty " geb.env" , System . getProperty(' geb.env' )
180
+ systemProperty " geb.build.reportsDir" , reporting. file(" geb/integrationTest" )
181
+ systemProperty " webdriver.chrome.driver" , System . getProperty(' webdriver.chrome.driver' )
182
+ systemProperty " webdriver.gecko.driver" , System . getProperty(' webdriver.gecko.driver' )
183
+ }
184
+
143
185
144
186
assets {
145
187
minifyJs = true
0 commit comments