10
10
* implied. See the License for the specific language governing
11
11
* rights and limitations under the License.
12
12
*/
13
-
14
13
buildscript {
15
- repositories {
16
- mavenLocal()
17
- maven { url " https://nexus.ala.org.au/content/groups/public/" }
18
- maven { url " https://repo.grails.org/grails/core" }
19
- }
20
- dependencies {
21
- classpath " org.grails:grails-gradle-plugin:$grailsVersion "
22
- classpath " com.bertramlabs.plugins:asset-pipeline-gradle:3.4.6"
23
- classpath " org.grails.plugins:hibernate5:7.0.5"
24
- classpath ' org.grails.plugins:quartz:2.0.13'
25
- classpath " gradle.plugin.com.github.erdi.webdriver-binaries:webdriver-binaries-gradle-plugin:2.6"
26
- }
14
+ version " 4.0.0-SNAPSHOT"
15
+ group " au.org.ala"
27
16
}
28
17
29
18
plugins {
30
- id " com.gorylenko.gradle-git-properties" version " 2.4.1"
31
- }
32
-
19
+ id " groovy"
20
+ id " org.grails.grails-gsp"
21
+ id " org.grails.grails-web"
22
+ id " com.github.erdi.webdriver-binaries" version " 3.0"
23
+ id " war"
24
+ id " idea"
25
+ id " com.bertramlabs.asset-pipeline"
26
+ id " application"
27
+ id " eclipse"
33
28
34
- version " 3.0.0"
35
- group " au.org.ala"
36
-
37
- apply plugin :" eclipse"
38
- apply plugin :" idea"
39
- apply plugin :" war"
40
- apply plugin :" org.grails.grails-web"
41
- apply plugin :" com.github.erdi.webdriver-binaries"
42
- apply plugin :" org.grails.grails-gsp"
43
- apply plugin :" com.bertramlabs.asset-pipeline"
44
- apply plugin :" maven-publish"
29
+ id " com.gorylenko.gradle-git-properties" version " 2.4.1"
45
30
31
+ id " maven-publish"
32
+ }
46
33
47
34
publishing {
48
35
repositories {
@@ -67,16 +54,28 @@ bootWar {
67
54
}
68
55
69
56
repositories {
70
- mavenLocal()
71
- maven { url " https://nexus.ala.org.au/content/groups/public/" }
72
- maven { url " https://repo.grails.org/grails/core" }
57
+ repositories {
58
+ mavenLocal()
59
+ maven { url " https://nexus.ala.org.au/content/groups/public/" }
60
+ mavenCentral()
61
+ maven { url " https://repo.grails.org/grails/core/" }
62
+ }
63
+ mavenCentral()
73
64
}
74
65
75
66
configurations {
76
67
developmentOnly
77
68
runtimeClasspath {
78
69
extendsFrom developmentOnly
79
70
}
71
+ all {
72
+ resolutionStrategy. force ' org.codehaus.groovy:groovy-xml:3.0.13'
73
+ resolutionStrategy. eachDependency { DependencyResolveDetails details ->
74
+ if (details. requested. group == ' org.seleniumhq.selenium' ) {
75
+ details. useVersion(' 4.10.0' )
76
+ }
77
+ }
78
+ }
80
79
}
81
80
82
81
dependencies {
@@ -88,8 +87,10 @@ dependencies {
88
87
implementation " org.springframework.boot:spring-boot-starter-logging"
89
88
implementation " org.springframework.boot:spring-boot-autoconfigure"
90
89
implementation " org.grails:grails-core"
90
+ implementation(" org.springframework.boot:spring-boot-starter" )
91
91
implementation " org.springframework.boot:spring-boot-starter-actuator"
92
92
implementation " org.springframework.boot:spring-boot-starter-tomcat"
93
+ implementation(" org.springframework.boot:spring-boot-starter-validation" )
93
94
implementation " org.grails:grails-web-boot"
94
95
implementation " org.grails:grails-logging"
95
96
implementation " org.grails:grails-plugin-rest"
@@ -102,88 +103,112 @@ dependencies {
102
103
implementation " org.grails.plugins:scaffolding"
103
104
implementation " org.grails.plugins:events"
104
105
implementation " org.grails.plugins:hibernate5"
106
+ implementation(" org.hibernate:hibernate-core:5.6.15.Final" )
105
107
implementation " org.hibernate:hibernate-jcache"
108
+ compileOnly(" io.micronaut:micronaut-inject-groovy" )
106
109
107
110
implementation " org.grails.plugins:gsp"
108
111
console " org.grails:grails-console"
109
112
profile " org.grails.profiles:web"
110
113
runtimeOnly " org.glassfish.web:el-impl:2.1.2-b03"
111
114
runtimeOnly " com.h2database:h2"
112
115
runtimeOnly " org.apache.tomcat:tomcat-jdbc"
113
- runtimeOnly " com.bertramlabs.plugins:asset-pipeline-grails:3.4.6 "
116
+ runtimeOnly " com.bertramlabs.plugins:asset-pipeline-grails:4.3.0 "
114
117
115
118
testImplementation " org.grails:grails-gorm-testing-support"
116
119
testImplementation " org.grails.plugins:geb"
117
120
testImplementation " org.grails:grails-web-testing-support"
118
121
testImplementation " org.grails:grails-test-mixins:3.3.0"
119
122
120
123
// Grails plugin dependencies
121
- runtimeOnly " org.grails.plugins:ala-bootstrap3:4.1 .0" , noCache
124
+ runtimeOnly " org.grails.plugins:ala-bootstrap3:4.4 .0" , noCache
122
125
implementation " org.grails.plugins:ala-auth:$alaSecurityLibsVersion "
123
126
implementation " org.grails.plugins:ala-ws-security-plugin:$alaSecurityLibsVersion "
124
127
implementation " org.grails.plugins:ala-ws-plugin:$alaSecurityLibsVersion "
125
128
implementation " au.org.ala:userdetails-service-client:$alaSecurityLibsVersion "
126
129
implementation " org.grails.plugins:ala-admin-plugin:2.3.0"
127
-
130
+
131
+ // for ContentType
132
+ implementation " org.apache.httpcomponents:httpcore:4.4.16"
133
+
128
134
implementation ' dk.glasius:external-config:3.1.1'
129
135
implementation ' org.grails.plugins:mail:3.0.0'
130
- implementation " org.codehaus.groovy.modules.http-builder:http-builder:0.7.2 "
136
+
131
137
implementation ' org.grails.plugins:schwartz-monitor:2.0.1.ALA-SNAPSHOT'
132
138
implementation ' org.grails.plugins:quartz:2.0.13'
133
139
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 '
140
+ implementation ' org.grails.plugins:cache'
135
141
implementation ' org.grails.plugins:cache-ehcache:3.0.0'
136
-
142
+
137
143
// regular JAR dependencies
138
- runtimeOnly ' mysql:mysql-connector-java:8.0.25 '
144
+ runtimeOnly ' mysql:mysql-connector-java:8.0.33 '
139
145
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"
146
+ testImplementation " org.seleniumhq.selenium:selenium-remote-driver:4.10.0"
147
+ testImplementation " org.seleniumhq.selenium:selenium-api:4.10.0"
148
+ testImplementation " org.seleniumhq.selenium:selenium-support:4.10.0"
149
+ testRuntimeOnly(" org.seleniumhq.selenium:selenium-chrome-driver:4.10.0" )
150
+ testRuntimeOnly(" org.seleniumhq.selenium:selenium-firefox-driver:4.10.0" )
151
+ testRuntimeOnly(" org.seleniumhq.selenium:selenium-safari-driver:4.10.0" )
144
152
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 '
153
+ implementation ' commons-io:commons-io:2.11.0 '
154
+ runtimeOnly ' org.hamcrest:hamcrest-core:2.2 '
155
+ runtimeOnly ' org.hamcrest:hamcrest-library:2.2 '
156
+ runtimeOnly ' xalan:xalan:2.7.3 '
157
+ implementation ' com.jayway.jsonpath:json-path:2.7.0 '
158
+ implementation ' com.jayway.jsonpath:json-path-assert:2.7.0 '
151
159
implementation ' au.org.ala.plugins:openapi:1.1.0'
152
160
}
161
+ //
162
+ // bootRun {
163
+ // ignoreExitValue true
164
+ // jvmArgs(
165
+ // '-Dspring.output.ansi.enabled=always',
166
+ // '-noverify',
167
+ // '-XX:TieredStopAtLevel=1',
168
+ // '-Xmx1024m')
169
+ // sourceResources sourceSets.main
170
+ // String springProfilesActive = 'spring.profiles.active'
171
+ // systemProperty springProfilesActive, System.getProperty(springProfilesActive)
172
+ // }
173
+ //
174
+ // tasks.withType(GroovyCompile) {
175
+ // configure(groovyOptions) {
176
+ // forkOptions.jvmArgs = ['-Xmx1024m']
177
+ // }
178
+ // }
179
+ //
153
180
154
- bootRun {
155
- ignoreExitValue true
156
- jvmArgs(
157
- ' -Dspring.output.ansi.enabled=always' ,
158
- ' -noverify' ,
159
- ' -XX:TieredStopAtLevel=1' ,
160
- ' -Xmx1024m' )
161
- sourceResources sourceSets. main
162
- String springProfilesActive = ' spring.profiles.active'
163
- systemProperty springProfilesActive, System . getProperty(springProfilesActive)
181
+ tasks. withType(Test ) {
182
+ useJUnitPlatform()
183
+ systemProperty " geb.env" , System . getProperty(' geb.env' )
184
+ systemProperty " geb.build.reportsDir" , reporting. file(" geb/integrationTest" )
185
+ systemProperty ' webdriver.chrome.driver' , " ${ System.getenv('CHROMEWEBDRIVER')} /chromedriver"
186
+ systemProperty ' webdriver.gecko.driver' , " ${ System.getenv('GECKOWEBDRIVER')} /geckodriver"
164
187
}
165
-
166
- tasks. withType(GroovyCompile ) {
167
- configure(groovyOptions) {
168
- forkOptions. jvmArgs = [' -Xmx1024m' ]
169
- }
188
+ tasks. withType(War ). configureEach { War war ->
189
+ war. dependsOn compileGroovyPages
170
190
}
171
-
172
-
173
191
webdriverBinaries {
174
- chromedriver ' 2.45.0'
175
- geckodriver ' 0.24.0'
192
+ chromedriver ' 110.0.5481.77'
193
+ geckodriver ' 0.32.2'
194
+ edgedriver ' 110.0.1587.57'
195
+ }
196
+ assets {
197
+ minifyJs = true
198
+ minifyCss = true
176
199
}
177
200
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' )
201
+
202
+
203
+ bootWar {
204
+ dependsOn(compileGroovyPages)
183
205
}
184
206
207
+ war {
208
+ dependsOn(compileGroovyPages)
209
+ }
185
210
186
- assets {
187
- minifyJs = true
188
- minifyCss = true
211
+ java {
212
+ sourceCompatibility = JavaVersion . toVersion(" 11" )
189
213
}
214
+
0 commit comments