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

Last change on this file since 928 was 913, checked in by gav, 14 years ago

Svn merge -r875:r911 branches/features/grailsUpgrade/ into trunk/.

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