Skip to content

Commit

Permalink
Updated Grails version to 6
Browse files Browse the repository at this point in the history
  • Loading branch information
ArpitaCSIRO committed Dec 18, 2023
1 parent 0c950a6 commit 3c374d8
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 42 deletions.
16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ branches:
- dev
- feature/grails5
- feature/plugin-upgrade
- feature/grails6-upgrade

before_install:
- rm -fr $HOME/.gradle/caches
- sudo mkdir -p /data/dashboard/ehcache
- sudo chmod o+xw /data
- sudo chmod o+xw /data/dashboard
- sudo chmod o+xw /data/dashboard/ehcache

before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
Expand All @@ -18,8 +27,15 @@ cache:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/

install:
- 'travis_wait 30 ./gradlew clean'
- './gradlew assemble'

after_success:
- './gradlew bootJar'
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && travis_retry ./gradlew publish'


env:
global:
- JAVA_TOOL_OPTIONS=-Dhttps.protocols=TLSv1.2
Expand Down
57 changes: 20 additions & 37 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,35 +1,21 @@
buildscript {
repositories {
mavenLocal()
maven { url "https://nexus.ala.org.au/content/groups/public/" }
maven { url "https://repo.grails.org/grails/core" }
}
dependencies {
classpath "org.grails:grails-gradle-plugin:$grailsVersion"
classpath "gradle.plugin.com.github.erdi.webdriver-binaries:webdriver-binaries-gradle-plugin:$webdriverBinariesVersion"
classpath "com.bertramlabs.plugins:asset-pipeline-gradle:3.4.6"
classpath 'org.grails.plugins:quartz:2.0.13'
}
version "2.6-SNAPSHOT"
group "au.org.ala"
description "Dashboard application"
}

plugins {
id "groovy"
id "org.grails.grails-web"
id "org.grails.grails-gsp"
id "application"
id "war"
id "maven-publish"
id "com.bertramlabs.asset-pipeline"
id "com.gorylenko.gradle-git-properties" version "2.4.1"
}


version "2.5.2-SNAPSHOT"
group "au.org.ala"
description "Dashboard application"

apply plugin:"eclipse"
apply plugin:"idea"
apply plugin:"war"
apply plugin:"org.grails.grails-web"
apply plugin:"com.github.erdi.webdriver-binaries"
apply plugin:"com.bertramlabs.asset-pipeline"
apply plugin:"org.grails.grails-gsp"
apply plugin:"maven-publish"

publishing {
repositories {
maven {
Expand All @@ -50,12 +36,17 @@ publishing {

bootWar {
launchScript()
dependsOn(compileGroovyPages)
}

war {
dependsOn(compileGroovyPages)
}

repositories {
mavenLocal()
maven { url "https://nexus.ala.org.au/content/groups/public/" }
maven { url "https://repo.grails.org/grails/core" }
mavenCentral()
}

configurations {
Expand All @@ -77,10 +68,12 @@ dependencies {
implementation "org.grails:grails-logging"
implementation "org.grails.plugins:cache"
implementation "org.grails.plugins:scaffolding"
implementation "org.grails.plugins:hibernate5:${gormVersion}"
implementation "org.hibernate:hibernate-core:5.6.15.Final"
console "org.grails:grails-console"
profile "org.grails.profiles:web"
implementation "org.codehaus.groovy:groovy-dateutil"
runtimeOnly "com.bertramlabs.plugins:asset-pipeline-grails:3.4.6"
runtimeOnly "com.bertramlabs.plugins:asset-pipeline-grails:4.3.0"
testImplementation "org.grails.plugins:geb"
testImplementation "org.seleniumhq.selenium:selenium-chrome-driver:$seleniumVersion"
testImplementation "org.seleniumhq.selenium:selenium-firefox-driver:$seleniumVersion"
Expand All @@ -94,16 +87,11 @@ dependencies {
implementation 'dk.glasius:external-config:3.1.1'
runtimeOnly 'org.apache.ant:ant:1.7.1' //you can also use runtime
runtimeOnly 'org.apache.ant:ant-launcher:1.7.1'
// implementation 'net.sf.opencsv:opencsv:2.3'
implementation 'org.grails.plugins:csv:1.0.ALA.3'

implementation 'com.yahoo.platform.yui:yuicompressor:2.4.8'
implementation group: 'org.jsoup', name: 'jsoup', version: '1.9.1'

// implementation 'org.codehaus.groovy.modules.http-builder:http-builder:0.8'
implementation group: 'org.codehaus.groovy.modules.http-builder', name: 'http-builder', version: '0.7.2'

// implementation 'org.grails.grails-plugin-rest:2.3.0.M2'
implementation group: 'org.codehaus.groovy.modules.http-builder', name: 'http-builder', version: '0.7.2'
implementation 'org.codehaus.groovy:groovy-ant:2.0.0'

implementation "org.grails.plugins:ala-bootstrap3:4.4.0"
Expand All @@ -130,11 +118,6 @@ tasks.withType(Test) {
systemProperty "webdriver.gecko.driver", System.getProperty('webdriver.gecko.driver')
}

webdriverBinaries {
chromedriver "$chromeDriverVersion"
geckodriver "$geckodriverVersion"
}


assets {
minifyJs = false
Expand Down
5 changes: 3 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
grailsVersion=5.2.1
gormVersion=7.2.1
grailsVersion=6.0.0
grailsGradlePluginVersion=6.0.0
gormVersion=8.0.1
org.gradle.daemon=true
org.gradle.parallel=true
org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Xmx1024M
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
21 changes: 19 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
//include ':ala-bootstrap3'
//project(':ala-bootstrap3').projectDir = new File(settingsDir, '../ala-bootstrap3')
pluginManagement {
repositories {
mavenLocal()
maven { url "https://nexus.ala.org.au/content/groups/public/" }
maven { url "https://repo.grails.org/grails/core" }
mavenCentral()
}

plugins {
id "org.grails.grails-gradle-plugin" version "6.0.0"
id "org.grails.grails-web" version "6.0.0"
id "org.grails.grails-gsp" version "6.0.0"
id "com.bertramlabs.asset-pipeline" version "4.3.0"
id "org.grails.grails-plugin" version "2.0.13"

}
}


rootProject.name='dashboard'

0 comments on commit 3c374d8

Please sign in to comment.