@@ -6,20 +6,18 @@ buildscript {
6
6
}
7
7
dependencies {
8
8
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:$w ebdriverBinariesVersion "
11
+ classpath " com.bertramlabs.plugins:asset-pipeline-gradle:3.4.6 "
12
+ classpath ' org.grails.plugins:database-migration:4.2 .0'
13
13
}
14
14
}
15
15
16
16
plugins {
17
- id " com.gorylenko.gradle-git-properties" version " 2.4.0-rc2 "
17
+ id " com.gorylenko.gradle-git-properties" version " 2.4.1 "
18
18
}
19
19
20
-
21
- version " 3.1.3"
22
-
20
+ version " 4.0.0-SNAPSHOT"
23
21
group " au.org.ala"
24
22
25
23
apply plugin :" eclipse"
@@ -31,12 +29,9 @@ apply plugin:"com.bertramlabs.asset-pipeline"
31
29
apply plugin :" org.grails.grails-gsp"
32
30
apply plugin :" maven-publish"
33
31
34
- bootJar {
35
- enabled = true
36
- classifier = ' exec'
37
- }
38
32
39
33
publishing {
34
+ targetCompatibility = 1.11
40
35
repositories {
41
36
maven {
42
37
name ' Nexus'
@@ -49,34 +44,15 @@ publishing {
49
44
}
50
45
publications {
51
46
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
76
48
}
77
49
}
78
50
}
79
51
52
+ bootWar {
53
+ launchScript()
54
+ }
55
+
80
56
repositories {
81
57
mavenLocal()
82
58
maven { url " https://nexus.ala.org.au/content/groups/public/" }
@@ -100,107 +76,106 @@ sourceSets {
100
76
101
77
dependencies {
102
78
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"
126
102
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"
129
106
130
107
// See: https://github.com/AtlasOfLivingAustralia/collectory/issues/84#issuecomment-1070670979
131
108
// 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:$a laSecurityLibsVersion "
113
+ implementation " org.grails.plugins:ala-ws-security-plugin:$a laSecurityLibsVersion "
114
+ implementation " org.grails.plugins:ala-ws-plugin:$a laSecurityLibsVersion "
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'
142
119
143
120
console " org.grails:grails-console"
144
121
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
+ }
164
147
}
165
148
166
149
bootRun {
167
150
ignoreExitValue true
168
151
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 ' )
173
156
sourceResources sourceSets. main
174
157
String springProfilesActive = ' spring.profiles.active'
175
158
systemProperty springProfilesActive, System . getProperty(springProfilesActive)
176
159
}
177
160
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
-
189
161
tasks. withType(Test ) {
190
162
systemProperty " geb.env" , System . getProperty(' geb.env' )
191
163
systemProperty " geb.build.reportsDir" , reporting. file(" geb/integrationTest" )
192
164
systemProperty " webdriver.chrome.driver" , System . getProperty(' webdriver.chrome.driver' )
193
165
systemProperty " webdriver.gecko.driver" , System . getProperty(' webdriver.gecko.driver' )
194
166
}
195
167
168
+ webdriverBinaries {
169
+ chromedriver " $chromeDriverVersion "
170
+ geckodriver " $geckodriverVersion "
171
+ }
196
172
197
173
assets {
198
174
minifyJs = true
199
175
minifyCss = true
200
176
}
201
177
202
- springBoot {
203
- buildInfo()
178
+ test {
179
+ testLogging . showStandardStreams = true
204
180
}
205
181
206
-
0 commit comments