buildscript { repositories { mavenLocal() maven { url "http://workhorse.lemanscorp.com/nexus/content/groups/public/" } } dependencies { classpath "org.grails:grails-gradle-plugin:$grailsVersion" classpath "org.grails.plugins:hibernate5:6.0.5" classpath "org.grails.plugins:views-gradle:1.1.2" } } // version "0.1" - leave this out to get no version no. in the war filename - kkrebs group "com.lemans.services" defaultTasks 'clean', 'check' apply plugin:"eclipse" apply plugin:"idea" apply plugin:"war" apply plugin:"org.grails.grails-web" apply plugin:"org.grails.plugins.views-json" // Lemans apply plugin: 'codenarc' repositories { mavenLocal() maven { url 'http://workhorse.lemanscorp.com/nexus/content/groups/public/' } } dependencyManagement { imports { mavenBom "org.grails:grails-bom:$grailsVersion" } applyMavenExclusions false } //Lemans configurations { compile.exclude module: 'commons-logging' } dependencies { testCompile "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-plugin-url-mappings" compile "org.grails:grails-plugin-rest" compile "org.grails:grails-plugin-codecs" compile "org.grails:grails-plugin-interceptors" compile "org.grails:grails-plugin-services" compile "org.grails:grails-plugin-datasource" compile "org.grails:grails-plugin-databinding" compile "org.grails:grails-plugin-async" compile "org.grails:grails-web-boot" compile "org.grails:grails-logging" compile "org.grails.plugins:cache" compile "org.grails.plugins:hibernate5" compile "org.hibernate:hibernate-core:5.1.2.Final" compile "org.hibernate:hibernate-ehcache:5.1.2.Final" compile "org.grails.plugins:views-json" compile "org.grails.plugins:views-json-templates" console "org.grails:grails-console" profile "org.grails.profiles:rest-api" provided 'log4j:log4j:1.2.17' // needed for SecurityInterceptor provided "org.slf4j:slf4j-api:1.7.21" provided "org.slf4j:jcl-over-slf4j:1.7.21" provided "org.slf4j:jul-to-slf4j:1.7.21" provided "org.slf4j:log4j-over-slf4j:1.7.21" provided "ch.qos.logback:logback-core" provided "ch.qos.logback:logback-classic" compile 'cglib:cglib:3.2.4' testCompile "org.grails:grails-plugin-testing" compile 'lemans:xml-json:0.11' compile 'org.apache.httpcomponents:httpclient:4.2.1' compile 'org.codehaus.groovy.modules.http-builder:http-builder:0.7.2' testCompile 'com.h2database:h2' provided 'net.sourceforge.jtds:jtds:1.3.1' compile 'com.lemans.grails.plugins:lemans-core:0.1.3' compile 'com.lemans.grails.plugins:lemans-rest:0.1.0c' testCompile 'com.lemans.grails.plugins:lemans-testing:0.1.0a' compile('com.googlecode.ehcache-spring-annotations:ehcache-spring-annotations:1.2.0') { exclude module: 'spring-beans' } compile 'javax.mail:mail:1.4.5' compile 'dumbster:dumbster:1.6' } bootRun { jvmArgs('-Dspring.output.ansi.enabled=always') } war { archiveName = 'auth-service.war' } task wrapper(type: Wrapper) { gradleVersion = gradleWrapperVersion } //Extra Lemans Config Section: grails { // deals with 'command line too long' issue when running Grails commands in Idea pathingJar = true } tasks.withType(Test) { testLogging { showStandardStreams = true } systemProperties System.properties } tasks.withType(JavaExec) { systemProperties System.properties } codenarc { toolVersion = '1.0' configFile = file("${project.projectDir}/codenarc/rules.groovy") }