Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
qifeng-bai committed Sep 14, 2021
1 parent b32a305 commit ec56354
Show file tree
Hide file tree
Showing 14 changed files with 81 additions and 863 deletions.
28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

469 changes: 0 additions & 469 deletions LICENSE.txt

This file was deleted.

47 changes: 0 additions & 47 deletions README.md

This file was deleted.

65 changes: 23 additions & 42 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.gradle.api.tasks.compile.GroovyCompile

buildscript {
repositories {
mavenLocal()
Expand All @@ -6,9 +8,7 @@ buildscript {
}
dependencies {
classpath "org.grails:grails-gradle-plugin:$grailsVersion"
//classpath "org.grails.plugins:hibernate5:7.0.5"
classpath "gradle.plugin.com.github.erdi.webdriver-binaries:webdriver-binaries-gradle-plugin:2.0"
classpath "com.bertramlabs.plugins:asset-pipeline-gradle:3.2.4"
classpath "com.bertramlabs.plugins:asset-pipeline-gradle:3.0.10"
}
}

Expand All @@ -17,9 +17,8 @@ group "au.org.ala.plugins.grails"

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

Expand All @@ -36,13 +35,19 @@ configurations {
}
}

springBoot {
mainClassName = 'biocache.hubs.Application'
}


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-dependencies"
compile "org.grails:grails-web-boot"
compile "org.grails:grails-logging"
compile "org.grails:grails-plugin-rest"
Expand All @@ -54,35 +59,22 @@ dependencies {
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.4.18.Final"
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 "com.h2database:h2"
runtime "org.apache.tomcat:tomcat-jdbc"
runtime "javax.xml.bind:jaxb-api:2.3.1"
runtime "com.bertramlabs.plugins:asset-pipeline-grails:3.2.4"
testCompile "io.micronaut:micronaut-inject-groovy"
testCompile "org.grails:grails-gorm-testing-support"
profile "org.grails.profiles:web-plugin"
runtime "com.bertramlabs.plugins:asset-pipeline-grails:3.0.10"
//testCompile "org.grails:grails-gorm-testing-support"
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"
//testCompile "org.grails:grails-plugin-testing"

testImplementation group: 'org.spockframework', name: 'spock-spring', version: '1.3-groovy-2.5'
implementation group: 'org.ehcache', name: 'ehcache', version: '3.1.0'
testImplementation group: 'xml-apis', name: 'xml-apis', version: '1.4.01'
//compile 'org.grails:grails-validation:3.1.14'

// testCompile "org.grails:grails-test-mixins:3.3.0"
// testCompile "org.grails:grails-test-mixins:3.3.0"

def noCache = {
exclude group: 'org.grails.plugins', module: 'cache'
Expand All @@ -101,9 +93,10 @@ dependencies {
compile "com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer:20180219.1"

compile "au.org.ala:data-quality-filter-service-client:1.0.0", noCache
compile 'xml-apis:xml-apis:1.4.01'

//plugins
//compile 'org.grails.plugins:cache-ehcache:3.0.0.M1'
compile 'org.grails.plugins:cache-ehcache:3.0.0.M1'
compile 'org.grails.plugins:http-builder-helper:1.0.2.ALA'
compile "org.grails.plugins:ala-admin-plugin:2.2"
compile "org.grails.plugins:ala-auth:3.2.3"
Expand All @@ -115,10 +108,9 @@ dependencies {
}

bootRun {
ignoreExitValue true
jvmArgs(
'-Dspring.output.ansi.enabled=always',
'-noverify',
'-Dspring.output.ansi.enabled=always',
'-noverify',
'-XX:TieredStopAtLevel=1',
'-Xmx1024m')
sourceResources sourceSets.main
Expand All @@ -132,22 +124,11 @@ tasks.withType(GroovyCompile) {
}
}

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')
}

// enable if you wish to package this plugin as a standalone application
bootJar.enabled = false

assets {
minifyJs = true
minifyCss = true
packagePlugin = true
}

publishing {
Expand Down
Loading

0 comments on commit ec56354

Please sign in to comment.