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

Last change on this file since 958 was 933, checked in by gav, 14 years ago

Simplify BuildConfig since with external config environment base war files are no longer required.

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