source: branches/features/grailsUpgrade/grails-app/conf/BuildConfig.groovy @ 905

Last change on this file since 905 was 905, checked in by gav, 9 years ago

Adjust dependencies, move remaining plugin depends to BuildConfig.groovy.

File size: 3.6 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    delete file: "${stagingDir}/WEB-INF/lib/xercesImpl.jar"
25    // From acegi plugin lib dir.
26    delete file: "${stagingDir}/WEB-INF/lib/facebook-java-api-2.0.4.jar"
27    delete file: "${stagingDir}/WEB-INF/lib/easymock.jar"
28    delete file: "${stagingDir}/WEB-INF/lib/cas-client-core-3.1.1.jar"
29    delete file: "${stagingDir}/WEB-INF/lib/openid4java-0.9.2.jar"
30
31}
32
33grails.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    plugins {
60        runtime ':acegi:0.5.3'
61        runtime ':export:0.7'
62        runtime ':filterpane:0.7'
63        runtime ':help-balloons:1.4'
64        runtime(':jasper:1.1.3') {
65            transitive = false
66        }
67        runtime ':navigation:1.1.1'
68        runtime ':quartz:0.4.2'
69        runtime ':richui:0.8'
70        runtime ':searchable:0.6-SNAPSHOT'
71
72        test ':geb:0.6-SNAPSHOT'
73        test ':spock:0.5-groovy-1.7'
74    }
75
76    dependencies {
77        // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg.
78
79        runtime 'mysql:mysql-connector-java:5.1.9'
80
81        // Japser plugin.
82        runtime('net.sf.jasperreports:jasperreports:3.7.2') {
83            excludes 'antlr', 'commons-beanutils', 'commons-collections', 'commons-logging',
84                    'ant', 'mondrian', 'commons-javaflow','barbecue', 'xml-apis-ext','xml-apis', 'xalan', 'groovy-all', 'hibernate', 'saaj-api', 'servlet-api',
85                    'xercesImpl','xmlParserAPIs','spring-core','bsh', 'spring-beans', 'jaxen', 'barcode4j','batik-svg-dom','batik-xml','batik-awt-util','batik-dom',
86                    'batik-css','batik-gvt','batik-script', 'batik-svggen','batik-util','batik-bridge','persistence-api','jdtcore','bcmail-jdk14','bcprov-jdk14','bctsp-jdk14'
87        }
88        runtime('org.apache.poi:poi:3.5-FINAL') {
89            excludes 'log4j', 'commons-logging'
90        }
91
92        // Origin unknown, still required?
93        runtime('org.apache.ant:ant:1.7.1')
94        runtime('org.apache.ant:ant-launcher:1.7.1')
95
96        test('org.seleniumhq.selenium:selenium-htmlunit-driver:latest.release') {
97            excludes 'xml-apis'
98        }
99    }
100
101}
Note: See TracBrowser for help on using the repository browser.