Skip to content

Commit 0f05d9c

Browse files
authored
Merge pull request #197 from AtlasOfLivingAustralia/develop
PR for 4.0.0 release
2 parents 36521f5 + bbbc2fb commit 0f05d9c

40 files changed

+793
-468
lines changed

.travis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ branches:
66
only:
77
- master
88
- develop
9-
- feature/issue-175
9+
- /^feature\/.*$/
10+
- /^bugfix\/.*$/
1011

1112
before_cache:
1213
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock

build.gradle

+83-108
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,18 @@ buildscript {
66
}
77
dependencies {
88
classpath "org.grails:grails-gradle-plugin:$grailsVersion"
9-
classpath "org.grails.plugins:hibernate5:7.0.5"
10-
classpath "gradle.plugin.com.github.erdi.webdriver-binaries:webdriver-binaries-gradle-plugin:2.0"
11-
classpath "com.bertramlabs.plugins:asset-pipeline-gradle:3.3.2"
12-
classpath 'org.grails.plugins:database-migration:3.1.0'
9+
classpath "org.grails.plugins:hibernate5:${gormVersion}"
10+
classpath "gradle.plugin.com.github.erdi.webdriver-binaries:webdriver-binaries-gradle-plugin:$webdriverBinariesVersion"
11+
classpath "com.bertramlabs.plugins:asset-pipeline-gradle:3.4.6"
12+
classpath 'org.grails.plugins:database-migration:4.2.0'
1313
}
1414
}
1515

1616
plugins {
17-
id "com.gorylenko.gradle-git-properties" version "2.4.0-rc2"
17+
id "com.gorylenko.gradle-git-properties" version "2.4.1"
1818
}
1919

20-
21-
version "3.1.3"
22-
20+
version "4.0.0-SNAPSHOT"
2321
group "au.org.ala"
2422

2523
apply plugin:"eclipse"
@@ -31,12 +29,9 @@ apply plugin:"com.bertramlabs.asset-pipeline"
3129
apply plugin:"org.grails.grails-gsp"
3230
apply plugin:"maven-publish"
3331

34-
bootJar {
35-
enabled = true
36-
classifier = 'exec'
37-
}
3832

3933
publishing {
34+
targetCompatibility = 1.11
4035
repositories {
4136
maven {
4237
name 'Nexus'
@@ -49,34 +44,15 @@ publishing {
4944
}
5045
publications {
5146
mavenJar(MavenPublication) {
52-
pom.withXml {
53-
def pomNode = asNode()
54-
pomNode.dependencyManagement.replaceNode {}
55-
56-
// simply remove dependencies without a version
57-
// version-less dependencies are handled with dependencyManagement
58-
// see https://github.com/spring-gradle-plugins/dependency-management-plugin/issues/8 for more complete solutions
59-
pomNode.dependencies.dependency.findAll {
60-
it.version.text().isEmpty()
61-
}.each {
62-
it.replaceNode {}
63-
}
64-
}
65-
from components.web
66-
// if (bootJar && bootJar.enabled && bootJar.classifier) {
67-
// def repackagedFile = file("$libsDir/$project.name-$project.version-${bootJar.classifier}.jar")
68-
// if (repackagedFile.exists()) {
69-
// artifact(repackagedFile) {
70-
// classifier bootRepackage.classifier
71-
// }
72-
// } else {
73-
// logger.quiet("Spring Boot repackage with classifier specified but file is not present!")
74-
// }
75-
// }
47+
artifact bootWar
7648
}
7749
}
7850
}
7951

52+
bootWar {
53+
launchScript()
54+
}
55+
8056
repositories {
8157
mavenLocal()
8258
maven { url "https://nexus.ala.org.au/content/groups/public/" }
@@ -100,107 +76,106 @@ sourceSets {
10076

10177
dependencies {
10278
developmentOnly("org.springframework.boot:spring-boot-devtools")
103-
compile "org.springframework.boot:spring-boot-starter-logging"
104-
compile "org.springframework.boot:spring-boot-autoconfigure"
105-
compile "org.grails:grails-core"
106-
compile "org.springframework.boot:spring-boot-starter-actuator"
107-
compile "org.springframework.boot:spring-boot-starter-tomcat"
108-
compile "org.grails:grails-web-boot"
109-
compile "org.grails:grails-logging"
110-
compile "org.grails:grails-plugin-rest"
111-
compile "org.grails:grails-plugin-databinding"
112-
compile "org.grails:grails-plugin-i18n"
113-
compile "org.grails:grails-plugin-services"
114-
compile "org.grails:grails-plugin-url-mappings"
115-
compile "org.grails:grails-plugin-interceptors"
116-
compile "org.grails.plugins:cache"
117-
compile "org.grails.plugins:async"
118-
compile "org.grails.plugins:scaffolding"
119-
compile "org.grails.plugins:events"
120-
compile "org.grails.plugins:hibernate5"
121-
compile "org.hibernate:hibernate-core:5.4.18.Final"
122-
compile "org.grails.plugins:gsp"
123-
124-
compile "com.opencsv:opencsv:3.7"
125-
compile "io.micronaut:micronaut-http-client"
79+
implementation "org.springframework.boot:spring-boot-starter-logging"
80+
implementation "org.springframework.boot:spring-boot-autoconfigure"
81+
implementation "org.grails:grails-core"
82+
implementation "org.springframework.boot:spring-boot-starter-actuator"
83+
implementation "org.springframework.boot:spring-boot-starter-tomcat"
84+
implementation "org.grails:grails-web-boot"
85+
implementation "org.grails:grails-logging"
86+
implementation "org.grails:grails-plugin-rest"
87+
implementation "org.grails:grails-plugin-databinding"
88+
implementation "org.grails:grails-plugin-i18n"
89+
implementation "org.grails:grails-plugin-services"
90+
implementation "org.grails:grails-plugin-url-mappings"
91+
implementation "org.grails:grails-plugin-interceptors"
92+
implementation "org.grails.plugins:cache"
93+
implementation "org.grails.plugins:async"
94+
implementation "org.grails.plugins:scaffolding"
95+
implementation "org.grails.plugins:events"
96+
implementation "org.grails.plugins:hibernate5"
97+
implementation "org.hibernate:hibernate-core:5.4.18.Final"
98+
implementation "org.grails.plugins:gsp"
99+
100+
implementation "com.opencsv:opencsv:3.7"
101+
implementation "io.micronaut:micronaut-http-client"
126102
compileOnly "io.micronaut:micronaut-inject-groovy"
127-
compile "org.apache.httpcomponents:httpclient:4.5.13"
128-
compile "commons-io:commons-io:2.11.0"
103+
implementation "io.reactivex.rxjava3:rxjava:3.1.6"
104+
implementation "org.apache.httpcomponents:httpclient:4.5.13"
105+
implementation "commons-io:commons-io:2.11.0"
129106

130107
// See: https://github.com/AtlasOfLivingAustralia/collectory/issues/84#issuecomment-1070670979
131108
// before updating mysql-connector-java
132-
compile "mysql:mysql-connector-java:8.0.22"
133-
compile "org.grails.plugins:ala-bootstrap3:4.1.0"
134-
compile "au.org.ala.plugins.grails:ala-charts-plugin:2.1.2"
135-
compile "org.grails.plugins:ala-auth:5.1.1"
136-
compile "org.grails.plugins:ala-ws-security-plugin:4.1.2"
137-
compile "org.grails.plugins:ala-ws-plugin:3.1.1"
138-
compile "org.grails.plugins:audit-logging:4.0.3"
139-
compile "org.grails.plugins:external-config:2.0.0"
140-
compile "org.grails.plugins:ala-admin-plugin:2.3.0"
141-
compile 'au.org.ala.plugins:openapi:1.1.0'
109+
implementation "mysql:mysql-connector-java:8.0.22"
110+
implementation "org.grails.plugins:ala-bootstrap3:4.1.0"
111+
implementation "au.org.ala.plugins.grails:ala-charts-plugin:2.3.0"
112+
implementation "org.grails.plugins:ala-auth:$alaSecurityLibsVersion"
113+
implementation "org.grails.plugins:ala-ws-security-plugin:$alaSecurityLibsVersion"
114+
implementation "org.grails.plugins:ala-ws-plugin:$alaSecurityLibsVersion"
115+
implementation "org.grails.plugins:audit-logging:4.0.3"
116+
implementation 'dk.glasius:external-config:3.1.1'
117+
implementation "org.grails.plugins:ala-admin-plugin:2.3.0"
118+
implementation 'au.org.ala.plugins:openapi:1.1.0'
142119

143120
console "org.grails:grails-console"
144121
profile "org.grails.profiles:web"
145-
runtime "org.glassfish.web:el-impl:2.1.2-b03"
146-
runtime "com.h2database:h2"
147-
runtime "org.apache.tomcat:tomcat-jdbc"
148-
runtime "javax.xml.bind:jaxb-api:2.3.1"
149-
runtime "com.bertramlabs.plugins:asset-pipeline-grails:3.2.4"
150-
testCompile "io.micronaut:micronaut-inject-groovy"
151-
testCompile "org.grails:grails-gorm-testing-support"
152-
testCompile "org.mockito:mockito-core"
153-
testCompile "org.grails:grails-web-testing-support"
154-
testCompile "org.grails.plugins:geb"
155-
testCompile "org.seleniumhq.selenium:selenium-remote-driver:3.141.59"
156-
testCompile "org.seleniumhq.selenium:selenium-api:3.141.59"
157-
testCompile "org.seleniumhq.selenium:selenium-support:3.141.59"
158-
testRuntime "org.seleniumhq.selenium:selenium-chrome-driver:3.141.59"
159-
testRuntime "org.seleniumhq.selenium:selenium-firefox-driver:3.141.59"
160-
compile 'org.grails.plugins:sentry:11.7.25'
161-
// In newer versions use 'implementation'
162-
compile 'org.liquibase:liquibase-core:3.10.3'
163-
compile "org.grails.plugins:database-migration:3.1.0"
122+
runtimeOnly "org.glassfish.web:el-impl:2.1.2-b03"
123+
runtimeOnly "com.h2database:h2"
124+
runtimeOnly "org.apache.tomcat:tomcat-jdbc"
125+
runtimeOnly "javax.xml.bind:jaxb-api:2.3.1"
126+
runtimeOnly "com.bertramlabs.plugins:asset-pipeline-grails:3.4.6"
127+
testImplementation "io.micronaut:micronaut-inject-groovy"
128+
testImplementation "org.grails:grails-gorm-testing-support"
129+
testImplementation "org.mockito:mockito-core"
130+
testImplementation "org.grails:grails-web-testing-support"
131+
testImplementation "org.grails.plugins:geb"
132+
testImplementation "org.seleniumhq.selenium:selenium-remote-driver:$seleniumVersion"
133+
testImplementation "org.seleniumhq.selenium:selenium-api:$seleniumVersion"
134+
testImplementation "org.seleniumhq.selenium:selenium-support:$seleniumVersion"
135+
runtimeOnly "net.sourceforge.htmlunit:htmlunit:2.18"
136+
testImplementation "org.seleniumhq.selenium:selenium-htmlunit-driver:2.47.1"
137+
testImplementation "org.seleniumhq.selenium:selenium-chrome-driver:$seleniumVersion"
138+
testImplementation "org.seleniumhq.selenium:selenium-firefox-driver:$seleniumVersion"
139+
testImplementation "org.seleniumhq.selenium:selenium-safari-driver:$seleniumSafariDriverVersion"
140+
implementation 'org.grails.plugins:sentry:11.7.25'
141+
// db-migration
142+
implementation 'org.liquibase:liquibase-core:4.19.0'
143+
implementation('org.grails.plugins:database-migration:4.2.0') {
144+
// spring-boot-cli exclusion required since Grails5 upgrade to prevent NullPointerException Error: https://github.com/grails/grails-database-migration/issues/268
145+
exclude module: 'spring-boot-cli'
146+
}
164147
}
165148

166149
bootRun {
167150
ignoreExitValue true
168151
jvmArgs(
169-
'-Dspring.output.ansi.enabled=always',
170-
'-noverify',
171-
'-XX:TieredStopAtLevel=1',
172-
'-Xmx1024m')
152+
'-Dspring.output.ansi.enabled=always',
153+
'-noverify',
154+
'-XX:TieredStopAtLevel=1',
155+
'-Xmx2048m')
173156
sourceResources sourceSets.main
174157
String springProfilesActive = 'spring.profiles.active'
175158
systemProperty springProfilesActive, System.getProperty(springProfilesActive)
176159
}
177160

178-
tasks.withType(GroovyCompile) {
179-
configure(groovyOptions) {
180-
forkOptions.jvmArgs = ['-Xmx1024m']
181-
}
182-
}
183-
184-
webdriverBinaries {
185-
chromedriver '2.45.0'
186-
geckodriver '0.24.0'
187-
}
188-
189161
tasks.withType(Test) {
190162
systemProperty "geb.env", System.getProperty('geb.env')
191163
systemProperty "geb.build.reportsDir", reporting.file("geb/integrationTest")
192164
systemProperty "webdriver.chrome.driver", System.getProperty('webdriver.chrome.driver')
193165
systemProperty "webdriver.gecko.driver", System.getProperty('webdriver.gecko.driver')
194166
}
195167

168+
webdriverBinaries {
169+
chromedriver "$chromeDriverVersion"
170+
geckodriver "$geckodriverVersion"
171+
}
196172

197173
assets {
198174
minifyJs = true
199175
minifyCss = true
200176
}
201177

202-
springBoot {
203-
buildInfo()
178+
test {
179+
testLogging.showStandardStreams = true
204180
}
205181

206-

gradle.properties

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1-
grailsVersion=4.1.1
2-
gorm.version=7.0.8.RELEASE
1+
grailsVersion=5.2.1
2+
gormVersion=7.2.1
33
org.gradle.daemon=true
44
org.gradle.parallel=true
55
org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Xmx1024M
6+
gebVersion=2.3
7+
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

gradle/wrapper/gradle-wrapper.jar

4.24 KB
Binary file not shown.
+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-5.6.4-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)