grails.servlet.version = "3.0" // Change depending on target container compliance (2.5 or 3.0)
grails.project.class.dir = "target/classes"
grails.project.test.class.dir = "target/test-classes"
grails.project.test.reports.dir = "target/test-reports"
grails.project.work.dir = "target/work"
grails.project.target.level = 1.7
grails.project.source.level = 1.7
grails.project.war.file = "target/${appName}.war"

grails.project.fork = [
        test: false,
        run: false
]

// grails.plugin.location.'ala-web-theme' = "../ala-web-theme"
grails.project.dependency.resolver = "maven" // or ivy
grails.project.dependency.resolution = {
    // inherit Grails' default dependencies
    inherits("global") {
        // specify dependency exclusions here; for example, uncomment this to disable ehcache:
        // excludes 'ehcache'
    }
    log "error" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'
    checksums true // Whether to verify checksums on resolve
    legacyResolve false // whether to do a secondary resolve on plugin installation, not advised and here for backwards compatibility

    repositories {
        mavenLocal()
        mavenRepo("http://nexus.ala.org.au/content/groups/public/") {
            updatePolicy 'always'
        }
    }

    dependencies {
        // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes e.g.
        runtime 'org.postgresql:postgresql:9.3-1101-jdbc41'

        test "org.grails:grails-datastore-test-support:1.0.2-grails-2.4"
        test "org.gebish:geb-spock:0.10.0"

        compile 'net.sf.ehcache:ehcache:2.8.4'
        compile 'com.github.rjeschke:txtmark:0.13'
        compile('ognl:ognl:3.0.8') {
            excludes('javassist:javassist:3.11.0.GA')
        }
        compile 'org.elasticsearch:elasticsearch:1.4.4'
        compile 'com.vividsolutions:jts:1.13'
        compile 'io.searchbox:jest:0.1.5'
    }

    plugins {
        build(":release:3.1.0") {
            excludes "rest-client-builder"
        }
        // plugins for the build system only
        build ":tomcat:7.0.55.2"

        test ":geb:0.10.0"

        // plugins for the compile step
        compile ":rest-client-builder:2.1.0"
        compile ":scaffolding:2.1.2"
        compile(':cache:1.1.8') {
            excludes "webxml"
        }
        compile ":quartz:1.0.2"
        compile ":mail:1.0.7"
        compile ":pretty-time:2.1.3.Final-1.0.1"
        compile ":avatar:0.6.3"
        compile ":ajaxanywhere:1.0"
        // compile ":asset-pipeline:2.1.5"

        // plugins needed at runtime but not for compilation
        runtime ":hibernate4:4.3.8.1"
        runtime ":database-migration:1.4.0"
        //runtime ":jquery:1.11.1"

        runtime ":ala-bootstrap3:1.2-SNAPSHOT"
        runtime(":ala-auth:1.3.1") {
            excludes "servlet-api"
        }
        runtime ":images-client-plugin:0.6.1"

        // Uncomment these to enable additional asset-pipeline capabilities
        //compile ":sass-asset-pipeline:1.9.0"
        // compile ":less-asset-pipeline:1.10.0"
        //compile ":coffee-asset-pipeline:1.8.0"
        //compile ":handlebars-asset-pipeline:1.3.0.3"
    }
}
