-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from charvolant/master
Release 2.0
- Loading branch information
Showing
108 changed files
with
1,907 additions
and
5,359 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
/target | ||
/.idea | ||
Thumbs.db | ||
.DS_Store | ||
.gradle | ||
build/ | ||
out/ | ||
.idea | ||
*.iml | ||
*.ipr | ||
*.iws | ||
.project | ||
.settings | ||
.classpath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,23 @@ | ||
dist: trusty | ||
language: groovy | ||
jdk: | ||
- oraclejdk7 | ||
- oraclejdk8 | ||
sudo: false | ||
branches: | ||
only: | ||
- master | ||
before_install: | ||
- wget -q https://raw.githubusercontent.com/AtlasOfLivingAustralia/travis-build-configuration/master/ala_common.sh | ||
- chmod +x ala_common.sh | ||
- source ./ala_common.sh | ||
- ala_travis_grails_setup_env | ||
script: | ||
- ala_travis_grails_build | ||
- develop | ||
before_cache: | ||
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock | ||
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/ | ||
cache: | ||
directories: | ||
- "$HOME/.m2" | ||
- "$HOME/.gradle/caches/" | ||
- "$HOME/.gradle/wrapper/" | ||
after_success: | ||
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && travis_retry ./gradlew publish' | ||
env: | ||
global: | ||
- secure: XXXTssBnWIBinafmyop1zf/2Pf81hpr0IisjfUd9lw4InfnbICNChS6P/ovfdtFu062xeVYbAgUQLCec1KlPDZQ32UgxFGU74EQ/1M70bJULsxd35UBpTNkhUyNQIcr9DkOhMYahvQbmySv5JGVFiT9ry/38xzQsHfYCQPs5dJY= | ||
- secure: FHlKa+UKFJdz/4AlfIo6rspYR6+KGOND4hk13LJN3QZCHRjM2ij9toqDxP74aH4VGpaUzEaKy1cC8hqE2F97VbptrFo2NtDEl9fJ6Z/+3lPo3tr6PZ69WZqex//bO+kkpjEn0KspLc92cCfaVOJxHWu5QcQ+C1SddfTwY5FuHPU= | ||
- secure: Z6Jfqbjh+XtuJZpVEmBq3ZarQYG2Hb++md9uBKQeWyy23pM7Mh3S3enne3DNs7zyPEUYVr+udUZI5uGyKmjMKZqAgacZZeAtaj4tcJyZPJDzxCTyxzA+BlcYT3/tdmv/9jH4iwolp9CPHGZA69WhlttV9NLg9GBCpElfxi2bs7A= | ||
- secure: Bl6/Y0aI9Dq3CxZBJgES+M39O62+zkxzI93/6R0g0b7e86i6v5l319Y9fi3PLQ+YsIwJDMMSPvksKOLCk+e0WrizcdF21fDcJlHyO6WrnPoZIHA+dvMJ2AORIbHtBWo5KdczDmWR9/n2UkV6xwRZ0MRZ25bZLy3AsHh/I/5FMPA= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
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:2.0" | ||
// classpath "org.grails.plugins:hibernate5:7.0.4" | ||
classpath "com.bertramlabs.plugins:asset-pipeline-gradle:3.2.4" | ||
} | ||
} | ||
|
||
version "2.0" | ||
group "au.org.ala" | ||
|
||
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" | ||
|
||
sourceCompatibility = 1.8 | ||
targetCompatibility = 1.8 | ||
|
||
repositories { | ||
mavenLocal() | ||
maven { url "http://nexus.ala.org.au/content/groups/public/" } | ||
maven { url "https://repo.grails.org/grails/core" } | ||
} | ||
|
||
configurations { | ||
developmentOnly | ||
runtimeClasspath { | ||
extendsFrom developmentOnly | ||
} | ||
} | ||
|
||
dependencies { | ||
developmentOnly("org.springframework.boot:spring-boot-devtools") | ||
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-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:events" | ||
compile "org.grails.plugins:gsp" | ||
compileOnly "io.micronaut:micronaut-inject-groovy" | ||
console "org.grails:grails-console" | ||
profile "org.grails.profiles:web" | ||
runtime "org.glassfish.web:el-impl:2.1.2-b03" | ||
runtime "javax.xml.bind:jaxb-api:2.3.1" | ||
runtime "xml-apis:xml-apis:1.4.01" | ||
runtime "com.bertramlabs.plugins:asset-pipeline-grails:3.2.4" | ||
testCompile "io.micronaut:micronaut-inject-groovy" | ||
testCompile "org.mockito:mockito-core" | ||
testCompile "org.grails:grails-web-testing-support" | ||
testCompile "org.grails.plugins:geb" | ||
testCompile "org.seleniumhq.selenium:selenium-remote-driver:3.14.0" | ||
testCompile "org.seleniumhq.selenium:selenium-api:3.14.0" | ||
testCompile "org.seleniumhq.selenium:selenium-support:3.14.0" | ||
testRuntime "org.seleniumhq.selenium:selenium-chrome-driver:3.14.0" | ||
testRuntime "org.seleniumhq.selenium:selenium-firefox-driver:3.14.0" | ||
|
||
// External config | ||
compile 'org.grails.plugins:external-config:2.0.0' | ||
|
||
// Javascript libraries | ||
compile 'org.webjars:knockout:3.5.1' | ||
|
||
// ALA Plugins | ||
compile group: 'org.grails.plugins', name: 'ala-auth', version: '3.2.2' | ||
compile group: 'org.grails.plugins', name: 'ala-admin-plugin', version: '2.2' | ||
compile group: 'org.grails.plugins', name: 'ala-bootstrap3', version: '3.2.3' | ||
compile group: 'au.org.ala.plugins.grails', name: 'images-client-plugin', version: '1.2' | ||
} | ||
|
||
bootRun { | ||
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) | ||
} | ||
|
||
tasks.withType(GroovyCompile) { | ||
configure(groovyOptions) { | ||
forkOptions.jvmArgs = ['-Xmx1024m'] | ||
} | ||
} | ||
|
||
webdriverBinaries { | ||
chromedriver '2.45.0' | ||
geckodriver '0.24.0' | ||
} | ||
|
||
tasks.withType(Test) { | ||
systemProperty "geb.env", System.getProperty('geb.env') | ||
systemProperty "geb.build.reportsDir", reporting.file("geb/integrationTest") | ||
systemProperty "webdriver.chrome.driver", System.getProperty('webdriver.chrome.driver') | ||
systemProperty "webdriver.gecko.driver", System.getProperty('webdriver.gecko.driver') | ||
} | ||
|
||
assets { | ||
minifyJs = true | ||
minifyCss = true | ||
} | ||
|
||
// Standard ALA import doesn't work with this version | ||
publishing { | ||
repositories { | ||
maven { | ||
name 'Nexus' | ||
url "https://nexus.ala.org.au/content/repositories/${project.version.endsWith('-SNAPSHOT') ? 'snapshots' : 'releases' }" | ||
credentials { | ||
username = System.getenv('TRAVIS_DEPLOY_USERNAME') | ||
password = System.getenv('TRAVIS_DEPLOY_PASSWORD') | ||
} | ||
} | ||
} | ||
publications { | ||
mavenJar(MavenPublication) { | ||
pom.withXml { | ||
def pomNode = asNode() | ||
pomNode.dependencyManagement.replaceNode {} | ||
|
||
// simply remove dependencies without a version | ||
// version-less dependencies are handled with dependencyManagement | ||
// see https://github.com/spring-gradle-plugins/dependency-management-plugin/issues/8 for more complete solutions | ||
pomNode.dependencies.dependency.findAll { | ||
it.version.text().isEmpty() | ||
}.each { | ||
it.replaceNode {} | ||
} | ||
} | ||
from components.web | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
grailsVersion=4.0.5 | ||
gorm.version=7.0.8.RELEASE | ||
org.gradle.daemon=true | ||
org.gradle.parallel=true | ||
org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Xmx1024M |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.