apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'eclipse-wtp'


tasks.withType(JavaCompile) {
    sourceCompatibility = 1.6
    targetCompatibility = 1.6
    options.encoding = "UTF-8"
}
task wrapper(type: Wrapper) {
    gradleVersion = '2.2.1'
}

configurations {
    provided
}

sourceSets {
    main.compileClasspath += configurations.provided
    test.compileClasspath += configurations.provided
    test.runtimeClasspath += configurations.provided
}

idea {
    module {
        scopes.PROVIDED.plus += [configurations.provided]
    }
}


repositories {
    mavenCentral()
}

dependencies {


    compile 'com.jfinal:jfinal:1.9'
    compile 'com.google.guava:guava:18.0'

    provided 'junit:junit:4.12'
    provided 'com.jfinal:jetty-server:8.1.8'
    provided 'mysql:mysql-connector-java:5.1.34'
    provided 'com.alibaba:druid:1.0.12'
    provided 'log4j:log4j:1.2.17'
    provided 'org.freemarker:freemarker:2.3.21'
    provided 'org.quartz-scheduler:quartz:1.8.6'
    provided 'org.quartz-scheduler:quartz:2.2.1'
    provided 'org.apache.poi:poi:3.10.1'
    provided 'org.apache.poi:poi-ooxml:3.10.1'
    provided 'org.mongodb:mongo-java-driver:2.11.2'
    provided 'it.sauronsoftware.cron4j:cron4j:2.2.5'
    provided 'org.apache.activemq:activemq-core:5.7.0'
    provided 'javax.jms:jms-api:1.1-rev-1'
    provided 'net.sf.jxls:jxls-core:0.9.9'
    provided 'redis.clients:jedis:2.2.1'
    provided 'org.apache.shiro:shiro-all:1.2.2'
    provided 'org.crazycake:shiro-redis:1.0.0-RELEASE'
    provided 'org.apache.commons:commons-lang3:3.1'
}

apply from: 'maven_push.gradle'