Skip to content

Commit 6ade31f

Browse files
author
Adam Collins
committed
Merge remote-tracking branch 'origin/develop'
# Conflicts: # build.gradle
2 parents b120aee + b6757ae commit 6ade31f

25 files changed

+1019
-244
lines changed

.travis.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ branches:
66
only:
77
- master
88
- develop
9-
- feature/grails5
109
before_cache:
1110
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
1211
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
@@ -16,8 +15,11 @@ cache:
1615
# - $HOME/.m2
1716
# - $HOME/.gradle/caches/
1817
- $HOME/.gradle/wrapper/
19-
#install:
20-
# - ./gradlew assemble --refresh-dependencies
18+
19+
install:
20+
- 'travis_wait 30 ./gradlew clean'
21+
- './gradlew assemble'
22+
2123
after_success:
2224
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && travis_retry ./gradlew publish'
2325
env:

build.gradle

+99-74
Original file line numberDiff line numberDiff line change
@@ -10,39 +10,26 @@
1010
* implied. See the License for the specific language governing
1111
* rights and limitations under the License.
1212
*/
13-
1413
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"
2716
}
2817

2918
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"
3328

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"
4530

31+
id "maven-publish"
32+
}
4633

4734
publishing {
4835
repositories {
@@ -67,16 +54,28 @@ bootWar {
6754
}
6855

6956
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()
7364
}
7465

7566
configurations {
7667
developmentOnly
7768
runtimeClasspath {
7869
extendsFrom developmentOnly
7970
}
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+
}
8079
}
8180

8281
dependencies {
@@ -88,8 +87,10 @@ dependencies {
8887
implementation "org.springframework.boot:spring-boot-starter-logging"
8988
implementation "org.springframework.boot:spring-boot-autoconfigure"
9089
implementation "org.grails:grails-core"
90+
implementation("org.springframework.boot:spring-boot-starter")
9191
implementation "org.springframework.boot:spring-boot-starter-actuator"
9292
implementation "org.springframework.boot:spring-boot-starter-tomcat"
93+
implementation("org.springframework.boot:spring-boot-starter-validation")
9394
implementation "org.grails:grails-web-boot"
9495
implementation "org.grails:grails-logging"
9596
implementation "org.grails:grails-plugin-rest"
@@ -102,88 +103,112 @@ dependencies {
102103
implementation "org.grails.plugins:scaffolding"
103104
implementation "org.grails.plugins:events"
104105
implementation "org.grails.plugins:hibernate5"
106+
implementation("org.hibernate:hibernate-core:5.6.15.Final")
105107
implementation "org.hibernate:hibernate-jcache"
108+
compileOnly("io.micronaut:micronaut-inject-groovy")
106109

107110
implementation "org.grails.plugins:gsp"
108111
console "org.grails:grails-console"
109112
profile "org.grails.profiles:web"
110113
runtimeOnly "org.glassfish.web:el-impl:2.1.2-b03"
111114
runtimeOnly "com.h2database:h2"
112115
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"
114117

115118
testImplementation "org.grails:grails-gorm-testing-support"
116119
testImplementation "org.grails.plugins:geb"
117120
testImplementation "org.grails:grails-web-testing-support"
118121
testImplementation "org.grails:grails-test-mixins:3.3.0"
119122

120123
// 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
122125
implementation "org.grails.plugins:ala-auth:$alaSecurityLibsVersion"
123126
implementation "org.grails.plugins:ala-ws-security-plugin:$alaSecurityLibsVersion"
124127
implementation "org.grails.plugins:ala-ws-plugin:$alaSecurityLibsVersion"
125128
implementation "au.org.ala:userdetails-service-client:$alaSecurityLibsVersion"
126129
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+
128134
implementation 'dk.glasius:external-config:3.1.1'
129135
implementation 'org.grails.plugins:mail:3.0.0'
130-
implementation "org.codehaus.groovy.modules.http-builder:http-builder:0.7.2"
136+
131137
implementation 'org.grails.plugins:schwartz-monitor:2.0.1.ALA-SNAPSHOT'
132138
implementation 'org.grails.plugins:quartz:2.0.13'
133139
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'
135141
implementation 'org.grails.plugins:cache-ehcache:3.0.0'
136-
142+
137143
// regular JAR dependencies
138-
runtimeOnly 'mysql:mysql-connector-java:8.0.25'
144+
runtimeOnly 'mysql:mysql-connector-java:8.0.33'
139145
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")
144152
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'
151159
implementation 'au.org.ala.plugins:openapi:1.1.0'
152160
}
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+
//
153180

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"
164187
}
165-
166-
tasks.withType(GroovyCompile) {
167-
configure(groovyOptions) {
168-
forkOptions.jvmArgs = ['-Xmx1024m']
169-
}
188+
tasks.withType(War).configureEach { War war ->
189+
war.dependsOn compileGroovyPages
170190
}
171-
172-
173191
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
176199
}
177200

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)
183205
}
184206

207+
war {
208+
dependsOn(compileGroovyPages)
209+
}
185210

186-
assets {
187-
minifyJs = true
188-
minifyCss = true
211+
java {
212+
sourceCompatibility = JavaVersion.toVersion("11")
189213
}
214+

gradle.properties

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
grailsVersion=5.2.1
1+
grailsVersion=6.0.0
2+
grailsGradlePluginVersion=6.0.0
23
gormVersion=7.2.1
4+
org.gradle.caching=true
35
org.gradle.daemon=true
46
org.gradle.parallel=true
57
org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Xmx1024M
68
gebVersion=2.3
79
groovyVersion=3.0.11
8-
seleniumVersion=3.14.0
9-
webdriverBinariesVersion=2.6
10-
chromeDriverVersion=2.45.0
11-
geckodriverVersion=0.24.0
12-
seleniumSafariDriverVersion=3.14.0
13-
alaSecurityLibsVersion=6.0.4
10+
alaSecurityLibsVersion=6.2.0
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.2-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

grails-app/conf/application.yml

+26-7
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ grails:
1717
transactionManagement:
1818
proxies: false
1919
gorm:
20-
# Whether to autowire entities.
20+
# Whether to autowire entities.
2121
# Disabled by default for performance reasons.
22-
autowire: false
22+
autowire: false
2323
reactor:
2424
# Whether to translate GORM events into Reactor events
2525
# Disabled by default for performance reasons
@@ -135,7 +135,8 @@ spatial:
135135
baseURL: "https://spatial.ala.org.au"
136136
collectory:
137137
baseURL: "https://collections.ala.org.au"
138-
138+
lists:
139+
baseURL: "https://lists.ala.org.au"
139140
speciesPages:
140141
searchURL: "https://bie.ala.org.au/species/Tiliqua+rugosa"
141142
searchTitle: Shingle-back
@@ -154,19 +155,37 @@ useSpatialAlerts: true
154155
useBlogsAlerts: true
155156
useCitizenScienceAlerts: true
156157
biosecurity:
158+
cronExpression: '0 30 9 ? * WED'
157159
moreinfo:
158160
link: https://www.ala.org.au/blogs-news/ala-helps-to-stop-pests-in-their-tracks/
161+
dir: /data/alerts/emails
162+
legacy:
163+
aus: cl927:*
164+
act: cl927:"Australian Capital Territory" OR cl927:"Jervis Bay Territory"
165+
sa: cl927:"South Australia (including Coastal Waters)"
166+
vic: cl927:"Victoria (including Coastal Waters)"
167+
wa: cl927:"Western Australia (including Coastal Waters)"
168+
nt: cl927:"Northern Territory (including Coastal Waters)"
169+
qld: cl927:"Queensland (including Coastal Waters)"
170+
tas: cl927:"Tasmania (including Coastal Waters)"
171+
nsw: cl927:"New South Wales (including Coastal Waters)"
172+
lgaField: cl10923
173+
shape: cl11033:"Namadgi" OR cl11033:"Tidbinbilla" OR cl11033:"Bimberi"
174+
#shape: spatialObject:9223660
175+
eventDateAge: 29
176+
firstLoadedDateAge: 8
177+
159178
environments:
160179
development:
161180
grails:
162-
serverURL: "http://dev.ala.org.au:8080"
181+
serverURL: "http://localhost:8080"
163182
mail:
164183
host: "localhost"
165184
port: 1025
166185
username: postie.emailSender
167186
security:
168187
cas:
169-
appServerName: "http://dev.ala.org.au:8080"
188+
appServerName: "http://localhost:8080"
170189
test:
171190
grails:
172191
serverURL: "http://dev.ala.org.au:8080"
@@ -239,7 +258,7 @@ environments:
239258
driverClassName: org.h2.Driver
240259
username: sa
241260
password:
242-
url: jdbc:h2:mem:testDb;MVCC=TRUE;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE
261+
url: jdbc:h2:mem:testDb;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE
243262
production:
244263
dataSource:
245264
dbCreate: none
@@ -286,4 +305,4 @@ openapi:
286305
name: Mozilla Public License 1.1
287306
url: https://www.mozilla.org/en-US/MPL/1.1/
288307
version: '@info.app.version@'
289-
cachetimeoutms: 0
308+
cachetimeoutms: 0

grails-app/conf/logback.xml

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
</encoder>
1212
</appender>
1313

14+
<logger name="org.hibernate.orm" level="ERROR" />
15+
<logger name="org.grails.config.NavigableMap" level="ERROR" />
16+
<!-- <logger name="au.org.ala" level="DEBUG" />-->
1417

1518
<logger name="au.org.ala.cas.client" level="WARN">
1619
<appender-ref ref="STDOUT" />
@@ -19,4 +22,4 @@
1922
<root level="WARN">
2023
<appender-ref ref="STDOUT" />
2124
</root>
22-
</configuration>
25+
</configuration>

0 commit comments

Comments
 (0)