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

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

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

File size: 3.5 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
5def env = System.getProperty('grails.env')
6
7switch (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
20grails.war.resources = { stagingDir, args ->
21    // Remove some duplicate/not required jars.
22    // From export plugin lib dir.
23    delete file: "${stagingDir}/WEB-INF/lib/iText-2.1.5.jar"
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
30}
31
32grails.project.dependency.resolution = {
33
34    // inherit Grails' default dependencies
35    inherits("global") {
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 {
43        grailsHome()
44        grailsPlugins()
45        grailsCentral()
46
47        // uncomment the below to enable remote dependency resolution
48        // from public Maven repositories
49        //mavenLocal()
50        mavenCentral()
51        mavenRepo "https://nexus.codehaus.org/content/repositories/snapshots"
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
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
75    dependencies {
76        // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg.
77
78        runtime 'mysql:mysql-connector-java:5.1.9'
79
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'
86        }
87        runtime('org.apache.poi:poi:3.5-FINAL') {
88            excludes 'log4j', 'commons-logging'
89        }
90
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') {
96            excludes 'xml-apis'
97        }
98    }
99
100}
Note: See TracBrowser for help on using the repository browser.