[532] | 1 | grails.project.class.dir = "target/classes" |
---|
| 2 | grails.project.test.class.dir = "target/test-classes" |
---|
[902] | 3 | grails.project.test.reports.dir = "target/test-reports" |
---|
[532] | 4 | |
---|
| 5 | def env = System.getProperty('grails.env') |
---|
| 6 | |
---|
| 7 | switch (env) { |
---|
| 8 | case "production": |
---|
| 9 | //grails.project.war.file = "target/${appName}-${appVersion}.war" |
---|
[902] | 10 | grails.project.war.file = "target/${appName}Live.war" |
---|
[532] | 11 | break |
---|
| 12 | case "development": |
---|
[902] | 13 | grails.project.war.file = "target/${appName}Dev.war" |
---|
[532] | 14 | break |
---|
| 15 | default: |
---|
[902] | 16 | grails.project.war.file = "target/${appName}.war" |
---|
[532] | 17 | break |
---|
| 18 | } |
---|
| 19 | |
---|
| 20 | grails.war.resources = { stagingDir, args -> |
---|
[903] | 21 | // Remove some duplicate/not required jars. |
---|
| 22 | // From export plugin lib dir. |
---|
[532] | 23 | delete file: "${stagingDir}/WEB-INF/lib/iText-2.1.5.jar" |
---|
[903] | 24 | delete file: "${stagingDir}/WEB-INF/lib/xercesImpl.jar" |
---|
| 25 | // From acegi plugin lib dir. |
---|
| 26 | delete file: "${stagingDir}/WEB-INF/lib/facebook-java-api-2.0.4.jar" |
---|
| 27 | delete file: "${stagingDir}/WEB-INF/lib/easymock.jar" |
---|
| 28 | delete file: "${stagingDir}/WEB-INF/lib/cas-client-core-3.1.1.jar" |
---|
| 29 | delete file: "${stagingDir}/WEB-INF/lib/openid4java-0.9.2.jar" |
---|
| 30 | |
---|
[532] | 31 | } |
---|
| 32 | |
---|
| 33 | grails.project.dependency.resolution = { |
---|
| 34 | |
---|
| 35 | // inherit Grails' default dependencies |
---|
[902] | 36 | inherits("global") { |
---|
[532] | 37 | // uncomment to disable ehcache |
---|
| 38 | // excludes 'ehcache' |
---|
| 39 | } |
---|
| 40 | |
---|
| 41 | log "warn" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose' |
---|
| 42 | |
---|
| 43 | repositories { |
---|
[876] | 44 | grailsHome() |
---|
[532] | 45 | grailsPlugins() |
---|
[876] | 46 | grailsCentral() |
---|
[532] | 47 | |
---|
| 48 | // uncomment the below to enable remote dependency resolution |
---|
| 49 | // from public Maven repositories |
---|
| 50 | //mavenLocal() |
---|
| 51 | mavenCentral() |
---|
[902] | 52 | mavenRepo "https://nexus.codehaus.org/content/repositories/snapshots" |
---|
[532] | 53 | //mavenRepo "http://snapshots.repository.codehaus.org" |
---|
| 54 | //mavenRepo "http://repository.codehaus.org" |
---|
| 55 | //mavenRepo "http://download.java.net/maven/2/" |
---|
| 56 | //mavenRepo "http://repository.jboss.com/maven2/" |
---|
| 57 | } |
---|
| 58 | |
---|
[904] | 59 | plugins { |
---|
| 60 | test ":geb:0.6-SNAPSHOT" |
---|
| 61 | test ":spock:0.5-groovy-1.7" |
---|
| 62 | runtime( ':jasper:1.1.3' ) { |
---|
| 63 | transitive = false |
---|
| 64 | } |
---|
| 65 | } |
---|
| 66 | |
---|
[532] | 67 | dependencies { |
---|
| 68 | // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg. |
---|
| 69 | |
---|
[561] | 70 | runtime 'mysql:mysql-connector-java:5.1.9' |
---|
[532] | 71 | |
---|
[903] | 72 | // Japser plugin. |
---|
| 73 | runtime('net.sf.jasperreports:jasperreports:3.7.2') { |
---|
| 74 | excludes 'antlr', 'commons-beanutils', 'commons-collections', 'commons-logging', |
---|
| 75 | 'ant', 'mondrian', 'commons-javaflow','barbecue', 'xml-apis-ext','xml-apis', 'xalan', 'groovy-all', 'hibernate', 'saaj-api', 'servlet-api', |
---|
| 76 | 'xercesImpl','xmlParserAPIs','spring-core','bsh', 'spring-beans', 'jaxen', 'barcode4j','batik-svg-dom','batik-xml','batik-awt-util','batik-dom', |
---|
| 77 | 'batik-css','batik-gvt','batik-script', 'batik-svggen','batik-util','batik-bridge','persistence-api','jdtcore','bcmail-jdk14','bcprov-jdk14','bctsp-jdk14' |
---|
| 78 | } |
---|
[902] | 79 | runtime('org.apache.poi:poi:3.5-FINAL') { |
---|
[903] | 80 | excludes 'log4j', 'commons-logging' |
---|
[561] | 81 | } |
---|
| 82 | |
---|
[902] | 83 | runtime('org.apache.ant:ant:1.7.1') |
---|
| 84 | runtime('org.apache.ant:ant-launcher:1.7.1') |
---|
[636] | 85 | |
---|
[902] | 86 | test("org.seleniumhq.selenium:selenium-htmlunit-driver:latest.release") { |
---|
| 87 | excludes 'xml-apis' |
---|
| 88 | } |
---|
[532] | 89 | } |
---|
[903] | 90 | |
---|
[532] | 91 | } |
---|