group 'com.gxzc.pro'
version '1.0-SNAPSHOT'

buildscript {
    ext {
        kotlin_version = '1.2.20'

        commons_io_version = '2.5'
        commons_logging_version = '1.1.3'
        commons_lang3_version = '3.5'

        spring_boot_version = '1.5.9.RELEASE'
        spring_data_version = '2.0.2.RELEASE'
        spring_data_elasticsearch_version = '3.0.2.RELEASE'
        spring_rabbitmq_version = '2.0.1.RELEASE'

        ehcache_version = '3.4.0'
        ehcache_core_version = '2.6.11'
        mysql_connector_version = '5.1.45'
        alidruid_version = '1.1.6'
        mybatis_version = '3.4.5'
        mybatiss_version = '1.3.1'
        mybatis_plus_version = '2.1.7'
        mybatis_plus_boot_version = '1.0.4'
        activiti_version = '7-201712-EA'
        rabbitmq_version = '5.1.2'
        xxljob_version = '1.9.0'
        swagger_version = '2.7.0'

        fastjson_version = '1.2.44'
    }
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        classpath "org.jetbrains.kotlin:kotlin-allopen:$kotlin_version"
        classpath "org.springframework.boot:spring-boot-gradle-plugin:$spring_boot_version"
    }
}


allprojects {}


subprojects {
    apply plugin: 'java'
    apply plugin: 'kotlin'
    sourceCompatibility = 1.8
    targetCompatibility = 1.8

    repositories {
        mavenCentral()
    }

    dependencies {
        compile("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
        compile("org.jetbrains.kotlin:kotlin-reflect")
        compile("org.springframework.boot:spring-boot-starter-web")
        testCompile("junit:junit:4.12")
        testCompile("org.springframework.boot:spring-boot-starter-test")

        compile ("commons-io:commons-io:$commons_io_version")
        compile ("commons-logging:commons-logging:$commons_logging_version")
        compile ("org.apache.commons:commons-lang3:$commons_lang3_version")
        compile group: 'commons-codec', name: 'commons-codec', version: '1.10'
        compile group: 'commons-fileupload', name: 'commons-fileupload', version: '1.3.2'
        compile group: 'commons-beanutils', name: 'commons-beanutils', version: '1.9.3'
        compile group: 'log4j', name: 'log4j', version: '1.2.17'
        compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
        compile group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.25'

        // https://mvnrepository.com/artifact/javax.servlet/javax.servlet-api
        compile group: 'javax.servlet', name: 'javax.servlet-api', version: '3.1.0'
        compile group: 'javax.servlet', name: 'servlet-api', version: '2.5'
//        compile group: 'javax.servlet', name: 'jstl', version: '1.2'
//        compile group: 'javax.servlet.jsp', name: 'jsp-api', version: '2.1'

        compile ("org.springframework.amqp:spring-rabbit:$spring_rabbitmq_version")
        compile ("org.springframework.data:spring-data-commons-core:1.4.1.RELEASE")
        compile ("org.springframework.data:spring-data-commons:$spring_data_version")
        compile ("org.springframework.data:spring-data-redis:$spring_data_version")
        compile ("org.springframework.data:spring-data-jpa:$spring_data_version")
        compile ("org.springframework.data:spring-data-elasticsearch:$spring_data_elasticsearch_version")

        compile ("com.alibaba:druid:$alidruid_version")
        compile ("org.ehcache:ehcache:$ehcache_version")
        compile ("org.activiti:activiti-engine:$activiti_version")
        compile ("org.activiti:activiti-spring:$activiti_version")
        compile ("net.sf.ehcache:ehcache-core:$ehcache_core_version")
        compile ("mysql:mysql-connector-java:$mysql_connector_version")
//        compile ("org.mybatis:mybatis:$mybatis_version")
//        compile ("org.mybatis:mybatis-spring:$mybatiss_version")
        compile ("com.baomidou:mybatis-plus:$mybatis_plus_version")
        compile ("com.baomidou:mybatisplus-spring-boot-starter:$mybatis_plus_boot_version")
        compile ("com.rabbitmq:amqp-client:$rabbitmq_version")
        compile ("com.xuxueli:xxl-job-core:$xxljob_version")
        compile ("io.springfox:springfox-swagger2:$swagger_version")
        compile ("io.springfox:springfox-swagger2-ui:$swagger_version")

        compile ("com.google.guava:guava:23.6-jre")
        compile ("com.github.penggle:kaptcha:2.3.2")
        compile ("com.alibaba:fastjson:$fastjson_version")
        compile ("com.fasterxml.jackson.core:jackson-core:2.9.3")
        compile ("com.fasterxml.jackson.core:jackson-databind:2.9.3")
        compile ("com.fasterxml.jackson.core:jackson-annotations:2.9.3")


        compile ("com.baomidou:kisso:3.6.11")
        compile ("io.jsonwebtoken:jjwt:0.7.0")
        compile ("org.projectlombok:lombok:1.16.18")
    }
}