Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- buildscript {
- repositories {
- maven { url "https://repo.grails.org/grails/core" }
- }
- dependencies {
- classpath "org.grails:grails-gradle-plugin:$grailsVersion"
- classpath "org.grails.plugins:hibernate5:7.0.0"
- classpath "gradle.plugin.com.github.erdi.webdriver-binaries:webdriver-binaries-gradle-plugin:2.0"
- classpath "com.bertramlabs.plugins:asset-pipeline-gradle:3.0.10"
- }
- }
- version "0.1"
- apply plugin:"eclipse"
- apply plugin:"idea"
- //apply plugin:"war"
- apply plugin:"org.grails.grails-web"
- apply plugin:"com.github.erdi.webdriver-binaries"
- apply plugin:"org.grails.grails-gsp"
- apply plugin:"com.bertramlabs.asset-pipeline"
- repositories {
- 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"
- provided "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.4.0.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.0"
- 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"
- //Hibernate cache
- compile "org.hibernate:hibernate-ehcache"
- //mysql plugin
- runtime 'mysql:mysql-connector-java:8.0.17'
- //mail sending plugin
- compile 'org.grails.plugins:mail:2.0.0'
- //Security & OAuth
- compile 'org.grails.plugins:spring-security-core:4.0.0.RC2'
- compile 'org.grails.plugins:spring-security-ui:4.0.0.M1'
- // compile "org.apache.httpcomponents:httpclient:4.5.5"
- // compile "org.apache.commons:commons-parent:35"
- //CSV file renderer
- compile 'org.grails.plugins:csv:1.0'
- compile 'org.grails.plugins:wkhtmltopdf:1.0.0.RC9'
- compile "org.grails.plugins:export:2.0.0"
- //Web runner for heroku
- // developmentOnly 'com.github.jsimone:webapp-runner:9.0.24.1'
- //fields plugin
- compile 'org.grails.plugins:fields:3.0.0.RC1'
- //Date/Time Utils
- compile 'org.codehaus.groovy:groovy-dateutil:2.5.8'
- }
- bootRun {
- 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 '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
- }
- task stage() {
- dependsOn clean, assemble
- }
- assemble.mustRunAfter clean
- task copyToLib(type: Copy) {
- into "$buildDir/server"
- // from(configurations.compile) {
- // include "webapp-runner*"
- // }
- }
- //stage.dependsOn(copyToLib)
- tasks.stage.doLast() {
- delete fileTree(dir: "build/distributions")
- delete fileTree(dir: "build/assetCompile")
- delete fileTree(dir: "build/distributions")
- delete fileTree(dir: "build/libs", exclude: "*.jar")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement