1 | grails.project.class.dir = "target/classes" |
---|
2 | grails.project.test.class.dir = "target/test-classes" |
---|
3 | grails.project.test.reports.dir = "target/test-reports" |
---|
4 | |
---|
5 | def env = System.getProperty('grails.env') |
---|
6 | |
---|
7 | switch (env) { |
---|
8 | case "production": |
---|
9 | //grails.project.war.file = "target/${appName}-${appVersion}.war" |
---|
10 | grails.project.war.file = "target/${appName}Live.war" |
---|
11 | break |
---|
12 | case "development": |
---|
13 | grails.project.war.file = "target/${appName}Dev.war" |
---|
14 | break |
---|
15 | default: |
---|
16 | grails.project.war.file = "target/${appName}.war" |
---|
17 | break |
---|
18 | } |
---|
19 | |
---|
20 | grails.war.resources = { stagingDir, args -> |
---|
21 | // Remove some duplicate jars. |
---|
22 | delete file: "${stagingDir}/WEB-INF/lib/jasperreports-2.0.5.jar" |
---|
23 | delete file: "${stagingDir}/WEB-INF/lib/jasperreports-3.1.2.jar" |
---|
24 | delete file: "${stagingDir}/WEB-INF/lib/aspectjrt-1.5.4.jar" |
---|
25 | delete file: "${stagingDir}/WEB-INF/lib/commons-digester-1.7.jar" |
---|
26 | delete file: "${stagingDir}/WEB-INF/lib/iText-2.0.8.jar" |
---|
27 | delete file: "${stagingDir}/WEB-INF/lib/iText-2.1.5.jar" |
---|
28 | delete file: "${stagingDir}/WEB-INF/lib/jfreechart-1.0.3.jar" |
---|
29 | delete file: "${stagingDir}/WEB-INF/lib/poi-3.0.2-FINAL-20080204.jar" |
---|
30 | delete file: "${stagingDir}/WEB-INF/lib/facebook-2.0.4.jar" |
---|
31 | } |
---|
32 | |
---|
33 | grails.project.dependency.resolution = { |
---|
34 | |
---|
35 | // inherit Grails' default dependencies |
---|
36 | inherits("global") { |
---|
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 { |
---|
44 | grailsHome() |
---|
45 | grailsPlugins() |
---|
46 | grailsCentral() |
---|
47 | |
---|
48 | // uncomment the below to enable remote dependency resolution |
---|
49 | // from public Maven repositories |
---|
50 | //mavenLocal() |
---|
51 | mavenCentral() |
---|
52 | mavenRepo "https://nexus.codehaus.org/content/repositories/snapshots" |
---|
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 | |
---|
59 | dependencies { |
---|
60 | // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg. |
---|
61 | |
---|
62 | runtime 'mysql:mysql-connector-java:5.1.9' |
---|
63 | |
---|
64 | runtime('org.apache.poi:poi:3.5-FINAL') { |
---|
65 | excludes 'servlet-api', 'commons-logging', 'log4j' |
---|
66 | } |
---|
67 | |
---|
68 | runtime('net.sf.jasperreports:jasperreports:3.7.2') { |
---|
69 | excludes 'xml-apis' |
---|
70 | } |
---|
71 | |
---|
72 | runtime('org.apache.ant:ant:1.7.1') |
---|
73 | runtime('org.apache.ant:ant-launcher:1.7.1') |
---|
74 | |
---|
75 | test("org.seleniumhq.selenium:selenium-htmlunit-driver:latest.release") { |
---|
76 | excludes 'xml-apis' |
---|
77 | } |
---|
78 | } |
---|
79 | plugins { |
---|
80 | test ":geb:0.6-SNAPSHOT" |
---|
81 | test ":spock:0.5-groovy-1.7" |
---|
82 | } |
---|
83 | |
---|
84 | } |
---|