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

Last change on this file since 632 was 577, checked in by gav, 15 years ago

Upgrade Compass and Lucene jars to 2.1.4, to fix reindex on update as reported here http://jira.codehaus.org/browse/GRAILSPLUGINS-1022.

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
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 jars.
22    delete file: "${stagingDir}/WEB-INF/lib/jasperreports-2.0.5.jar"
23    delete file: "${stagingDir}/WEB-INF/lib/jasperreports-3.1.2.jar"
24    delete file: "${stagingDir}/WEB-INF/lib/aspectjrt-1.5.4.jar"
25    delete file: "${stagingDir}/WEB-INF/lib/commons-digester-1.7.jar"
26    delete file: "${stagingDir}/WEB-INF/lib/iText-2.0.8.jar"
27    delete file: "${stagingDir}/WEB-INF/lib/iText-2.1.5.jar"
28    delete file: "${stagingDir}/WEB-INF/lib/jfreechart-1.0.3.jar"
29    delete file: "${stagingDir}/WEB-INF/lib/poi-3.0.2-FINAL-20080204.jar"
30    delete file: "${stagingDir}/WEB-INF/lib/facebook-2.0.4.jar"
31    // Included by searchable plugin.
32    delete file: "${stagingDir}/WEB-INF/lib/compass-2.1.0.jar"
33    delete file: "${stagingDir}/WEB-INF/lib/compass-2.1.0-src.jar"
34    delete file: "${stagingDir}/WEB-INF/lib/lucene-core.jar"
35    delete file: "${stagingDir}/WEB-INF/lib/lucene-analyzers.jar"
36    delete file: "${stagingDir}/WEB-INF/lib/lucene-highlighter.jar"
37    delete file: "${stagingDir}/WEB-INF/lib/lucene-queries.jar"
38    delete file: "${stagingDir}/WEB-INF/lib/lucene-snowball.jar"
39    delete file: "${stagingDir}/WEB-INF/lib/lucene-spellchecker.jar"
40}
41
42grails.project.dependency.resolution = {
43
44    // inherit Grails' default dependencies
45    inherits( "global" ) {
46        // uncomment to disable ehcache
47        // excludes 'ehcache'
48    }
49
50    log "warn" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'
51
52    repositories {
53        grailsPlugins()
54        grailsHome()
55
56        // uncomment the below to enable remote dependency resolution
57        // from public Maven repositories
58        //mavenLocal()
59        mavenCentral()
60        //mavenRepo "http://snapshots.repository.codehaus.org"
61        //mavenRepo "http://repository.codehaus.org"
62        //mavenRepo "http://download.java.net/maven/2/"
63        //mavenRepo "http://repository.jboss.com/maven2/"
64    }
65
66    dependencies {
67        // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg.
68
69        runtime 'mysql:mysql-connector-java:5.1.9'
70
71        runtime ('org.apache.poi:poi:3.5-FINAL') {
72            excludes 'servlet-api', 'commons-logging', 'log4j'
73        }
74
75        runtime ('net.sf.jasperreports:jasperreports:3.7.2') {
76            excludes 'xml-apis'
77        }
78
79        runtime ('org.compass-project:compass:2.1.4')
80        runtime ('org.apache.lucene:lucene-core:2.4.1')
81        runtime ('org.apache.lucene:lucene-analyzers:2.4.1')
82        runtime ('org.apache.lucene:lucene-highlighter:2.4.1')
83        runtime ('org.apache.lucene:lucene-queries:2.4.1')
84        runtime ('org.apache.lucene:lucene-snowball:2.4.1')
85        runtime ('org.apache.lucene:lucene-spellchecker:2.4.1')
86
87    }
88
89}
Note: See TracBrowser for help on using the repository browser.