source: trunk/grails-app/conf/BuildConfig.groovy @ 964

Last change on this file since 964 was 959, checked in by gav, 13 years ago

Set grails exploded war dir to target/exploded-war.

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