Skip to content

Commit c0ea0dc

Browse files
author
Chris Dunstall
committed
Merge branch 'release/6.1.4'
2 parents 983c628 + f85144b commit c0ea0dc

File tree

114 files changed

+2066
-1134
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+2066
-1134
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ branches:
77
only:
88
- master
99
- develop
10-
- feature/6.1.0-fixes
10+
- feature/grails33upgrade
1111
services:
1212
- postgresql
1313
addons:

build.gradle

+48-56
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ plugins {
2525
id "com.virgo47.ClasspathJar" version "1.0.0"
2626
}
2727

28-
version "6.1.3"
28+
version "6.1.4"
2929
group "au.org.ala"
3030
description "Digivol application"
3131

@@ -122,37 +122,61 @@ repositories {
122122
//}
123123

124124
dependencies {
125-
// Grails 3.2.11
125+
// Grails 3.3.15
126126
compile "org.springframework.boot:spring-boot-starter-logging"
127127
compile "org.springframework.boot:spring-boot-autoconfigure"
128128
compile "org.grails:grails-core"
129129
compile "org.springframework.boot:spring-boot-starter-actuator"
130130
compile "org.springframework.boot:spring-boot-starter-tomcat"
131-
compile "org.grails:grails-dependencies"
132131
compile "org.grails:grails-web-boot"
133-
compile "org.grails.plugins:cache"
132+
compile "org.grails:grails-logging"
133+
compile "org.grails:grails-plugin-rest"
134+
compile "org.grails:grails-plugin-databinding"
135+
compile "org.grails:grails-plugin-i18n"
136+
compile "org.grails:grails-plugin-services"
137+
compile "org.grails:grails-plugin-url-mappings"
138+
compile "org.grails:grails-plugin-interceptors"
139+
compile "org.grails.plugins:cache:4.0.3"
140+
compile "org.grails.plugins:async"
134141
compile "org.grails.plugins:scaffolding"
142+
compile "org.grails.plugins:events"
135143
compile "org.grails.plugins:hibernate5:${gormVersion-".RELEASE"}"
136-
compile "org.hibernate:hibernate-core:5.1.3.Final"
137-
compile "org.hibernate:hibernate-ehcache:5.1.3.Final"
144+
compile "org.hibernate:hibernate-core:$hibernateVersion"
145+
compile "org.grails.plugins:gsp"
138146
console "org.grails:grails-console"
139-
compile "com.drewnoakes:metadata-extractor:2.11.0"
140147
profile "org.grails.profiles:web"
141-
compile "com.bertramlabs.plugins:asset-pipeline-grails:$assetPipelineVersion"
142-
assets "com.bertramlabs.plugins:sass-asset-pipeline:$assetPipelineVersion"
143-
testCompile "org.grails:grails-plugin-testing"
144-
testCompile "org.grails.plugins:geb"
148+
runtime "org.glassfish.web:el-impl:2.1.2-b03"
149+
150+
testCompile "org.grails:grails-gorm-testing-support"
151+
testCompile "org.grails.plugins:geb:1.1.2"
152+
testCompile "org.grails:grails-web-testing-support"
145153
testRuntime "org.seleniumhq.selenium:selenium-htmlunit-driver:2.47.1"
146154
testRuntime "net.sourceforge.htmlunit:htmlunit:2.18"
155+
testRuntime "org.seleniumhq.selenium:selenium-chrome-driver:2.47.1"
156+
157+
// Extra official Grails plugins
158+
compile "org.grails.plugins:converters"
159+
compile "com.bertramlabs.plugins:asset-pipeline-grails:$assetPipelineVersion"
160+
assets "com.bertramlabs.plugins:sass-asset-pipeline:$assetPipelineVersion"
161+
//testCompile "org.grails:grails-plugin-testing" // Moved in upgrade to Grails 3.3.11
162+
testCompile "org.grails:grails-test-mixins:3.3.0" // For legacy @TestMixin and @TestFor
147163

164+
compile "org.grails:grails-async-gpars"
165+
compile "org.grails:grails-events-rxjava2"
148166
compile "org.grails.plugins:grails-java8"
149167
compile "org.grails.plugins:rxjava2:2.0.0"
150-
compile "org.hibernate:hibernate-java8:5.1.3.Final"
168+
compile "org.codehaus.gpars:gpars:1.2.1" // Added for the GPars dependencies.
169+
compile "io.reactivex.rxjava2:rxjava:2.1.3"
170+
compile "org.grails:grails-datastore-gorm-async:${gormVersion}"
171+
172+
// Extra Hibernate
173+
compile "org.hibernate:hibernate-ehcache:$hibernateVersion"
174+
compile "org.hibernate:hibernate-java8:$hibernateVersion"
151175

152176
// Additional Plugins
153177
compile 'org.grails.plugins:cache-headers:2.0.2'
154178
compile 'org.grails.plugins:csv:1.0.ALA.3'
155-
compile 'org.grails.plugins:postgresql-extensions:5.2.0'
179+
compile 'org.grails.plugins:postgresql-extensions:6.1.0'
156180
compile 'org.grails.plugins:mail:2.0.1'
157181
compile 'org.grails.plugins:grails-executor:0.4' // used in TaskLoadService.backgroundProcessQueue
158182
compile 'org.grails.plugins:grails-markdown:3.0.0' // may need modifications?
@@ -161,22 +185,20 @@ dependencies {
161185
compile 'org.grails.plugins:grails-google-visualization:2.2'
162186
compile 'org.grails.plugins:external-config:1.1.2'
163187
// TODO ALA Plugins: image service (is it used anywhere?)
164-
compile 'org.grails.plugins:ala-auth:3.0.5'
165-
compile 'au.org.ala:userdetails-service-client:1.4.0' // override this to for external properties changes
166-
compile 'org.grails.plugins:cache-ehcache:2.0.0.ALA'
167-
//compile 'org.grails.plugins:cache-ehcache:3.0.0.M1'
188+
compile 'org.grails.plugins:ala-auth:3.2.3'
189+
compile 'au.org.ala:userdetails-service-client:1.5.0' // override this to for external properties changes
190+
compile 'org.grails.plugins:cache-ehcache:3.0.0'
191+
compile 'org.ehcache:ehcache:3.4.0' // Prevent cache-ehcache dependent version being overridden
192+
//compile 'org.grails.plugins:cache-ehcache:2.0.0.ALA'
168193
// TODO Collection Event Controller?
169194

170-
// BOOTSTRAP, FONT-AWESOME? NPM? Yarn? webjars ?
171-
// compile 'org.webjars:bootstrap:3.3.7-1'
172-
// compile 'org.webjars:angularjs:1.6.1'
173-
// compile 'org.webjars:font-awesome:4.7.0'
174-
175195
// Dependencies
176196
runtime "org.postgresql:postgresql:$postgresVersion"
197+
runtime "com.zaxxer:HikariCP:4.0.3"
198+
compile "com.drewnoakes:metadata-extractor:2.11.0"
177199
compile 'org.imgscalr:imgscalr-lib:4.2'
178-
compile 'com.squareup.retrofit2:retrofit:2.2.0'
179-
compile 'com.squareup.retrofit2:converter-gson:2.2.0'
200+
compile 'com.squareup.retrofit2:retrofit:2.4.0'
201+
compile 'com.squareup.retrofit2:converter-gson:2.4.0'
180202
compile 'com.google.guava:guava:19.0'
181203
compile 'com.github.ben-manes.caffeine:caffeine:2.8.0'
182204
compile 'org.apache.commons:commons-compress:1.11'
@@ -196,8 +218,7 @@ dependencies {
196218
compile "org.flywaydb:flyway-core:4.2.0"
197219

198220
// For logback filter
199-
compile 'org.codehaus.janino:janino:3.0.6'
200-
221+
compile 'org.codehaus.janino:janino:3.1.7'
201222
}
202223

203224
bootRun {
@@ -207,6 +228,7 @@ bootRun {
207228

208229
springBoot {
209230
layout = WAR
231+
mainClass = 'au.org.ala.volunteer.Application'
210232
}
211233

212234
bootRepackage {
@@ -280,33 +302,3 @@ publish {
280302
dependsOn assemble
281303
}
282304

283-
284-
//node {
285-
// // Version of node to use.
286-
// version = '6.9.4'
287-
//
288-
// // Version of npm to use.
289-
// npmVersion = '3.10.10'
290-
//
291-
// // Version of Yarn to use.
292-
// yarnVersion = '0.16.1'
293-
//
294-
// // Base URL for fetching node distributions (change if you have a mirror).
295-
// distBaseUrl = 'https://nodejs.org/dist'
296-
//
297-
// // If true, it will download node using above parameters.
298-
// // If false, it will try to use globally installed node.
299-
// download = false
300-
//
301-
// // Set the work directory for unpacking node
302-
// workDir = file("${project.buildDir}/nodejs")
303-
//
304-
// // Set the work directory for NPM
305-
// npmWorkDir = file("${project.buildDir}/npm")
306-
//
307-
// // Set the work directory for Yarn
308-
// yarnWorkDir = file("${project.buildDir}/yarn")
309-
//
310-
// // Set the work directory where node_modules should be located
311-
// nodeModulesDir = file("${project.projectDir}/grails-app/assets")
312-
//}

gradle.properties

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#Sat Jan 21 22:08:45 AEDT 2017
2-
grailsVersion=3.2.11
3-
gormVersion=6.0.12.RELEASE
2+
grailsVersion=3.3.15
3+
gormVersion=6.1.12.RELEASE
44
grailsWrapperVersion=1.0.0
5-
gradleWrapperVersion=3.4.1
6-
assetPipelineVersion=2.14.7
5+
gradleWrapperVersion=3.5
6+
assetPipelineVersion=2.15.1
77
postgresVersion=42.2.11
8+
hibernateVersion=5.2.17.Final

grails-app/assets/javascripts/digivol-notifications.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -57,20 +57,22 @@ function digivolNotify(config, self) {
5757
var alertNotify = null;
5858

5959
function alertMessage(data) {
60+
var isClosed = amplify.store.sessionStorage("bvp_notify_close");
6061
if (alertNotify != null) {
6162
if (data) {
6263
alertNotify.update('message', data);
6364
} else {
6465
alertNotify.close();
6566
}
66-
} else if (data) {
67+
} else if (data && (!isClosed)) {
6768
alertNotify = $.notify({
6869
icon: config.alertIconClass,
6970
message: data
7071
},{
7172
type: config.alertType,
7273
onClose: function() {
7374
alertNotify = null;
75+
amplify.store.sessionStorage("bvp_notify_close", true);
7476
}
7577
});
7678
}

grails-app/assets/javascripts/digivol.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
//= require qtip
55
//= require bootbox
66
//= require digivol-notifications
7-
//= require bvp-common
7+
//= require bvp-common
8+
//= require amplify

grails-app/conf/application.groovy

+7
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,13 @@ grails {
101101
}
102102

103103
}
104+
gorm {
105+
'default' {
106+
mapping = {
107+
autowire: true
108+
}
109+
}
110+
}
104111
// gorm {
105112
// 'default' {
106113
// mapping = {

grails-app/conf/application.yml

+47-2
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,47 @@ security:
147147
cas:
148148
adminRole: "ROLE_VP_ADMIN"
149149
validatorRole: "ROLE_VP_VALIDATOR"
150-
uriFilterPattern: '/validate/save.*,/validate/.*,/user/.*,/project/((?!index).)*,/task/((?!summary).)*,/newsItem/.*,/picklist/.*,/admin,/admin/.*,/frontPage/.*,/ajax/userReport,/ws/userReport,/transcribe/.*,/taskComment/((?!getCommentsAjax).)*,/locality/.*,/collectionEvent/.*,/ajax/keepSessionAlive.*,/ws/keepSessionAlive.*,/forum/.*,/template/.*,/monitoring,/metrics,/metrics/.*,/ws/acceptAchievements,/ajax/acceptAchievements,/project/createNewProject.*,/message/.*'
151-
authenticateOnlyIfLoggedInPattern: '/,/;jsessionid=.*,/project/index/.*,/task/summary/.*,/tutorials/.*,/institution/.*,/buildInfo,/events/.*,/es,/eventSource.*,/wildlife-spotter,/message/.*'
150+
uriFilterPattern:
151+
- "/validate/save*"
152+
- "/validate/*"
153+
- "/user/*"
154+
- "/project/*"
155+
- "/task/*"
156+
- "/newsItem/*"
157+
- "/picklist/*"
158+
- "/admin"
159+
- "/admin/*"
160+
- "/frontPage/*"
161+
- "/ajax/userReport"
162+
- "/ws/userReport"
163+
- "/transcribe/*"
164+
- "/taskComment/*"
165+
- "/locality/*"
166+
- "/collectionEvent/*"
167+
- "/ajax/keepSessionAlive*"
168+
- "/ws/keepSessionAlive*"
169+
- "/forum/*"
170+
- "/template/*"
171+
- "/monitoring"
172+
- "/metrics"
173+
- "/metrics/*"
174+
- "/ws/acceptAchievements"
175+
- "/ajax/acceptAchievements"
176+
- "/project/createNewProject*"
177+
- "/message/*"
178+
authenticateOnlyIfLoggedInPattern:
179+
- "/"
180+
- "/;jsessionid=*"
181+
- "/project/index/*"
182+
- "/task/summary/*"
183+
- "/tutorials/*"
184+
- "/institution/*"
185+
- "/buildInfo"
186+
- "/events/*"
187+
- "/es"
188+
- "/eventSource*"
189+
- "/wildlife-spotter"
190+
- "/message/*"
152191
uriExclusionFilterPattern: '/assets/.*,/static/.*,/fonts/.*,/images/.*,/css/.*,/js/.*,/less/.*,/image/.*'
153192

154193
bvp:
@@ -274,10 +313,16 @@ hibernate:
274313
region.factory_class: org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory
275314
#SQL="trace,stdout"
276315
#type="trace,stdout"
316+
jdbc:
317+
lob:
318+
non_contextual_creation: true
319+
temp:
320+
use_jdbc_metadata_defaults: false
277321

278322
dataSource:
279323
dbCreate: validate
280324
pooled: true
325+
poolName: 'grails-hikari'
281326
jmxExport: true
282327
driverClassName: org.postgresql.Driver
283328
# username: root

grails-app/conf/logback.groovy

+6-6
Original file line numberDiff line numberDiff line change
@@ -102,19 +102,19 @@ logger('au.org.ala.volunteer.BVPSessionListener', DEBUG, [ACCESS], false)
102102
logger('au.org.ala.cas', DEBUG, [CAS], false)
103103
logger('org.jasig.cas', DEBUG, [CAS], false)
104104

105-
//logger('grails.app.services.au.org.ala.volunteer.TaskService', DEBUG, [DEBUG_LOG], false)
106105
final debug_logger = [
107-
'grails.app.domain.au.org.ala.volunteer.Task',
108-
'grails.app.services.au.org.ala.volunteer.TaskService',
109-
'grails.app.services.au.org.ala.volunteer.ValidationService',
110-
'grails.app.controllers.au.org.ala.volunteer.TranscribeController',
111-
'grails.app.controllers.au.org.ala.volunteer.ValidateController'
106+
'au.org.ala.volunteer.Task',
107+
'au.org.ala.volunteer.TaskService',
108+
'au.org.ala.volunteer.ValidationService',
109+
'au.org.ala.volunteer.TranscribeController',
110+
'au.org.ala.volunteer.ValidateController'
112111
]
113112
for (String name: debug_logger) logger(name, DEBUG, [DEBUG_LOG], false)
114113

115114
logger('org.apache.tomcat.jdbc.pool.interceptor.SlowQueryReport', INFO, [SLOW_QUERIES], false)
116115

117116
final error = [
117+
'org.hibernate.orm.deprecation'
118118
]
119119

120120
final warn = [

0 commit comments

Comments
 (0)