Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
d53034e
fix: unit test
sdelamo Oct 1, 2021
bd6384e
test: ignore integraiton test if S3_REGION not set
sdelamo Oct 1, 2021
6f9e247
build: bump up json views to 2.0.4
sdelamo Oct 1, 2021
eb85407
build: bump up Grails to 5.0.0-RC3
sdelamo Oct 1, 2021
ff3813e
build: bump up webdriver binary plugin to 2.6
sdelamo Oct 1, 2021
ccd0751
build: bump up gradle to 6.9.1
sdelamo Oct 1, 2021
efd71d5
build: update grails wrapper
sdelamo Oct 1, 2021
0ccddef
link to Webdriver binaries plugin
sdelamo Oct 1, 2021
05f51b1
add spring.devetools
sdelamo Oct 1, 2021
c533553
update jmx and actuator configuration
sdelamo Oct 1, 2021
92b9fa0
build: bump up gorm to 7.1.0.RC3
sdelamo Oct 1, 2021
83be2bd
build: update springboot gradle plugin configuration
sdelamo Oct 1, 2021
2afe40d
downgrade webdriver binaries plugin to 2.4
sdelamo Oct 1, 2021
2d74c3b
bump up selenium to 3.141.59
sdelamo Oct 1, 2021
0ab9e61
build: bump up asset pipeline 3.3.4
sdelamo Oct 1, 2021
878872b
define groovy version to 3.0.7
sdelamo Oct 1, 2021
32d04dd
add gradle configuraiton to gradle.properties
sdelamo Oct 1, 2021
ef5fed5
remove grailsWrapper property
sdelamo Oct 1, 2021
e288fdf
replace scriptlets to spriptlet
sdelamo Oct 1, 2021
faf77cf
update yaml indentation
sdelamo Oct 1, 2021
e78ad5f
update repositories
sdelamo Oct 1, 2021
a2b928c
update gorm
sdelamo Oct 1, 2021
0497228
build: bump up spring core to 4.0.3
sdelamo Oct 1, 2021
d66ab90
build: bump up hamcrest to 2.2
sdelamo Oct 1, 2021
36f733c
build: awsSdkS3Version to 2.4.8
sdelamo Oct 1, 2021
db0bc3c
fix compilation
sdelamo Oct 1, 2021
f311b0e
prevent NPE
sdelamo Oct 1, 2021
fb54cf4
annotate with @Slf4j
sdelamo Oct 1, 2021
23c66ec
place @Transactional after javadoc
sdelamo Oct 1, 2021
856645d
remove mavenLocal
sdelamo Oct 1, 2021
5b4d239
log s3 plugin at trace level
sdelamo Oct 1, 2021
cd29fda
fix Validation Task deletion
sdelamo Oct 1, 2021
03980ea
add log statement
sdelamo Oct 1, 2021
3d9f583
Fix Validation task creation
sdelamo Oct 1, 2021
5d235af
link to Grails AWS SDK S3 Plugin
sdelamo Oct 1, 2021
2c0b251
update grails aws sdk s3
sdelamo Oct 1, 2021
e695ef2
remove jcenter
sdelamo Oct 1, 2021
ba23091
Merge branch 'fix-unit-tests' into upgrade-to-grails-five
sdelamo Oct 1, 2021
68cb12b
use implementation
sdelamo Oct 1, 2021
8d93717
protect against NPE if credentials null
sdelamo Oct 1, 2021
53b7c11
use Junit platform
sdelamo Oct 1, 2021
ce3c42d
configure Groovy Compile task
sdelamo Oct 1, 2021
6c2a098
pass all system properties to bootRun
sdelamo Oct 1, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,10 @@ Also you must provide values for:

Environment Variables - `S3_BUCKET` and `S3_REGION`

An example of a value for `S3_REGION` could be `eu-west-1` for Ireland buckets.
An example of a value for `S3_REGION` could be `eu-west-1` for Ireland buckets.

# Dependencies

- [Webdriver Binaries Gradle Plugin](https://github.com/erdi/webdriver-binaries-gradle-plugin/blob/master/README.md) [Gradle Portal](https://plugins.gradle.org/plugin/com.github.erdi.webdriver-binaries) - A plugin that downloads and caches WebDriver binaries specific to the OS the build runs on.

- [Grails AWS SDK S3 Plugin](https://github.com/agorapulse/grails-aws-sdk/tree/master/grails-aws-sdk-s3)
138 changes: 88 additions & 50 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
buildscript {
repositories {
mavenLocal()
maven {
url "https://repo.grails.org/grails/core"
}
maven {
url "https://plugins.gradle.org/m2/"
}
maven { url "https://repo.grails.org/grails/core" }
}
dependencies {
classpath "org.grails:grails-gradle-plugin:$grailsVersion"
classpath "gradle.plugin.com.energizedwork.webdriver-binaries:webdriver-binaries-gradle-plugin:$webdriverBinariesGradleVersion"
classpath "org.grails.plugins:hibernate5:${gormVersion-".RELEASE"}"
classpath "gradle.plugin.com.github.erdi.webdriver-binaries:webdriver-binaries-gradle-plugin:$webdriverBinariesGradleVersion"
classpath "org.grails.plugins:hibernate5:7.1.0.RC3"
classpath "com.bertramlabs.plugins:asset-pipeline-gradle:$assetPipelineVersion"
classpath "org.grails.plugins:views-gradle:$jsonViewsVersion"
classpath "com.moowork.gradle:gradle-node-plugin:1.2.0"
Expand All @@ -25,17 +19,15 @@ apply plugin:"eclipse"
apply plugin:"idea"
apply plugin:"war"
apply plugin:"org.grails.grails-web"
apply plugin:"com.energizedwork.webdriver-binaries"
apply plugin: "com.github.erdi.webdriver-binaries"
apply plugin:"asset-pipeline"
apply plugin:"org.grails.grails-gsp"
apply plugin: "org.grails.plugins.views-json"
apply plugin: "com.moowork.node"

repositories {
mavenLocal()
maven { url 'https://jitpack.io' }
maven { url "https://repo.grails.org/grails/core" }
jcenter()
maven { url 'http://dl.bintray.com/agorapulse/libs' }
}

node {
Expand Down Expand Up @@ -81,39 +73,65 @@ task bowerInstall(type: NodeTask) {


dependencies {
compile "org.springframework.boot:spring-boot-starter-logging"
compile "org.springframework.boot:spring-boot-autoconfigure"
compile "org.grails:grails-core"
compile "org.springframework.boot:spring-boot-starter-actuator"
compile "org.springframework.boot:spring-boot-starter-tomcat"
compile "org.grails:grails-web-boot"
compile "org.grails:grails-logging"
compile "org.grails:grails-plugin-rest"
compile "org.grails:grails-plugin-databinding"
compile "org.grails:grails-plugin-i18n"
compile "org.grails:grails-plugin-services"
compile "org.grails:grails-plugin-url-mappings"
compile "org.grails:grails-plugin-interceptors"
compile "org.grails.plugins:cache"
compile "org.grails.plugins:async"
compile "org.grails.plugins:scaffolding"
compile "org.grails.plugins:events"
compile "org.grails.plugins:hibernate5"
compile "org.hibernate:hibernate-core:5.1.5.Final"
compile "org.grails.plugins:gsp"
developmentOnly("org.springframework.boot:spring-boot-devtools")
compileOnly "io.micronaut:micronaut-inject-groovy"
console "org.grails:grails-console"
implementation "org.springframework.boot:spring-boot-starter-validation"
implementation "org.grails.plugins:views-json"

implementation "org.springframework.boot:spring-boot-starter-logging"
implementation "org.springframework.boot:spring-boot-autoconfigure"

implementation "org.grails:grails-core"



implementation "org.grails.plugins:cache"

implementation "org.springframework.boot:spring-boot-starter-actuator"
implementation "org.springframework.boot:spring-boot-starter-tomcat"
implementation "org.grails:grails-web-boot"
implementation "org.grails:grails-logging"
implementation "org.grails:grails-plugin-rest"
implementation "org.grails:grails-plugin-databinding"
implementation "org.grails:grails-plugin-i18n"
implementation "org.grails:grails-plugin-services"
implementation "org.grails:grails-plugin-url-mappings"

implementation "org.grails:grails-plugin-interceptors"


implementation "org.grails.plugins:async"
implementation "org.grails.plugins:scaffolding"
implementation "org.grails.plugins:events"

implementation "org.grails.plugins:hibernate5"
implementation "org.hibernate:hibernate-core:5.5.7.Final"
implementation "org.grails.plugins:gsp"
console "org.grails:grails-console"
profile "org.grails.profiles:web"
runtime "org.glassfish.web:el-impl:2.1.2-b03"
runtime "org.apache.tomcat:tomcat-jdbc"
runtime "com.bertramlabs.plugins:asset-pipeline-grails:$assetPipelineVersion"
testCompile "org.grails:grails-gorm-testing-support"
testCompile "org.grails:grails-web-testing-support"
testCompile "org.grails.plugins:geb"
testRuntime "org.seleniumhq.selenium:selenium-chrome-driver:$seleniumVersion"
testRuntime "org.seleniumhq.selenium:selenium-firefox-driver:$seleniumVersion"
testCompile "org.seleniumhq.selenium:selenium-remote-driver:$seleniumVersion"
testCompile "org.seleniumhq.selenium:selenium-api:$seleniumVersion"
testCompile "org.seleniumhq.selenium:selenium-support:$seleniumVersion"

runtimeOnly "javax.xml.bind:jaxb-api:2.3.1"
runtimeOnly "org.glassfish.web:el-impl:2.2.1-b05"

runtimeOnly "org.apache.tomcat:tomcat-jdbc"
runtimeOnly "com.bertramlabs.plugins:asset-pipeline-grails:$assetPipelineVersion"

testImplementation "io.micronaut:micronaut-inject-groovy"
testImplementation "io.micronaut:micronaut-http-client"

testImplementation "org.grails:grails-gorm-testing-support"
testImplementation "org.mockito:mockito-core"
testImplementation "org.grails:grails-web-testing-support"

testImplementation "org.grails.plugins:geb"
testImplementation "org.seleniumhq.selenium:selenium-remote-driver:$seleniumVersion"
testImplementation "org.seleniumhq.selenium:selenium-api:$seleniumVersion"
testImplementation "org.seleniumhq.selenium:selenium-support:$seleniumVersion"
testRuntimeOnly "org.seleniumhq.selenium:selenium-chrome-driver:$seleniumVersion"

testRuntimeOnly "org.seleniumhq.selenium:selenium-firefox-driver:$seleniumVersion"


runtime "mysql:mysql-connector-java:$mysqlVersion"

Expand Down Expand Up @@ -142,18 +160,27 @@ dependencies {

compile "com.github.mpkorstanje:simmetrics-core:$simmetricsVersion"

compile "org.grails.plugins:aws-sdk-s3:$awsSdkS3Version"
compile 'com.github.agorapulse.grails-aws-sdk:aws-sdk-s3:2.4.14'
}

bootRun {
systemProperties System.properties
jvmArgs('-Dspring.output.ansi.enabled=always')
addResources = true
ignoreExitValue true
jvmArgs(
'-Dspring.output.ansi.enabled=always',
'-noverify',
'-XX:TieredStopAtLevel=1',
'-Xmx1024m')
sourceResources sourceSets.main
String springProfilesActive = 'spring.profiles.active'
systemProperty springProfilesActive, System.getProperty(springProfilesActive)
}

webdriverBinaries {
chromedriver "${chromedriverVersion}"
geckodriver "${geckodriverVersion}"
if (System.getProperty('geb.env')) {
webdriverBinaries {
chromedriver "${chromedriverVersion}"
geckodriver "${geckodriverVersion}"
}
}

test {
Expand All @@ -164,6 +191,17 @@ integrationTest {
systemProperties System.properties
}

tasks.withType(GroovyCompile) {
configure(groovyOptions) {
forkOptions.jvmArgs = ['-Xmx1024m']
}
}

tasks.withType(Test) {
useJUnitPlatform()
}


tasks.withType(Test) {
systemProperties System.properties
systemProperty "grails.env", 'test'
Expand Down
25 changes: 14 additions & 11 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
#Tue Jun 26 14:44:22 BST 2018
jsonViewsVersion=1.2.7
webdriverBinariesGradleVersion=1.4
grailsWrapperVersion=1.0.0
grailsVersion=3.3.6
hamcrestVersion=1.3
seleniumVersion=3.6.0
gradleWrapperVersion=3.5
gormVersion=6.1.10.RELEASE
jsonViewsVersion=2.0.4
webdriverBinariesGradleVersion=2.4
grailsVersion=5.0.0-RC3
groovyVersion=3.0.7
hamcrestVersion=2.2
seleniumVersion=3.141.59
gorm.version=7.1.0.RC3
org.gradle.daemon=true
org.gradle.parallel=true
org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Xmx1024M

mysqlVersion=5.1.46
ersatzVersion=1.6.2
assetPipelineVersion=2.14.8
assetPipelineVersion=3.3.4
okHttpVersion=3.9.1
moshiVersion=1.5.0
droolsVersion=7.5.0.Final
chromedriverVersion=2.40
geckodriverVersion=0.21.0
spreadsheetBuilderVersion=1.0.5
springSecurityCoreVersion=3.2.3
springSecurityCoreVersion=4.0.3
simmetricsVersion=4.1.1
awsSdkS3Version=2.2.4
awsSdkS3Version=2.4.8
poiVersion=3.16
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 1 addition & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#Wed Feb 07 16:55:23 CET 2018
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-all.zip
Loading