Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Grails version to 6 #133

Merged
merged 3 commits into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ branches:
- dev
- feature/grails5
- feature/plugin-upgrade
- feature/grails6-upgrade

before_install:
- sudo mkdir -p /data/dashboard
- sudo chmod o+xw /data
- sudo chmod o+xw /data/dashboard

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

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

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


env:
global:
- JAVA_TOOL_OPTIONS=-Dhttps.protocols=TLSv1.2
Expand Down
55 changes: 18 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 @@ -80,7 +71,7 @@ dependencies {
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 +85,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 +116,6 @@ tasks.withType(Test) {
systemProperty "webdriver.gecko.driver", System.getProperty('webdriver.gecko.driver')
}

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


assets {
minifyJs = false
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
grailsVersion=5.2.1
gormVersion=7.2.1
grailsVersion=6.0.0
grailsGradlePluginVersion=6.0.0
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'