plugins { id 'org.springframework.boot' version '1.5.9.RELEASE' } group = 'com.emato' version = '2.0.0' apply plugin: 'java' apply plugin: 'idea' apply plugin: 'eclipse' apply plugin: 'org.springframework.boot' // 部署为外部服务器时, 配置为war包 apply plugin: 'war' // 此配置在外部部署时, 为请求url的上下文路径 archivesBaseName='ccnet2.0' sourceCompatibility = 1.8 repositories { /*本地仓库*/ mavenLocal() jcenter() mavenCentral() maven { url('http://central.maven.org/maven2') } } ext { mybatis_spring_boot = '1.3.1' mybatis_typehandlers_jsr310 = '1.0.2' logback_ext_spring = '0.1.4' jackson = '2.8.4' google_guava = '23.3-jre' okhttp = '3.4.1' apache_commons_beanutils = '1.9.3' apache_commons_lang3 = '3.6' apache_commons_io = '2.6' jxls = '2.4.2' jxls_poi = '1.0.13' jxls_jexcel = '1.0.6' jxls_reader = '2.0.3' dom4j = '1.6.1' jsonLib = '2.4' xom = '1.2.5' jedis = '2.9.0' fastjson = '1.2.15' gson = '2.6.2' spring_boot_starter_amqp = '1.5.2.RELEASE' } dependencies { // Spring Boot testCompile('org.springframework.boot:spring-boot-starter-test') compile('org.springframework.boot:spring-boot-starter-web') compile('org.springframework.boot:spring-boot-starter-aop') compile('org.springframework.boot:spring-boot-configuration-processor') compile('org.springframework.boot:spring-boot-starter-jdbc') // Mybatis Spring Boot compile("org.mybatis.spring.boot:mybatis-spring-boot-starter:${mybatis_spring_boot}") // Mybatis支持使用LocalDateTime compile("org.mybatis:mybatis-typehandlers-jsr310:${mybatis_typehandlers_jsr310}") /*runtime('mysql:mysql-connector-java')*/ runtime('com.microsoft.sqlserver:mssql-jdbc') // Mariadb jdbc compile('org.mariadb.jdbc:mariadb-java-client') // HikariCP compile('com.zaxxer:HikariCP') // logback对spring的支持 compile("org.logback-extensions:logback-ext-spring:${logback_ext_spring}") // 数据序列化 compile("com.fasterxml.jackson.core:jackson-databind:${jackson}") compile("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:${jackson}") compile("com.fasterxml.jackson.module:jackson-module-afterburner:${jackson}") // 工具类 compile("com.google.guava:guava:${google_guava}") // HTTP工具 compile("com.squareup.okhttp3:okhttp:${okhttp}") /* apache commons */ compile("commons-beanutils:commons-beanutils:${apache_commons_beanutils}") compile("org.apache.commons:commons-lang3:${apache_commons_lang3}") compile("commons-io:commons-io:${apache_commons_io}") // excel工具类 compile("org.jxls:jxls:${jxls}") compile("org.jxls:jxls-poi:${jxls_poi}") compile("org.jxls:jxls-jexcel:${jxls_jexcel}") compile("org.jxls:jxls-reader:${jxls_reader}") //xml转map compile("dom4j:dom4j:${dom4j}") compile("net.sf.json-lib:json-lib:${jsonLib}:jdk15") compile("xom:xom:${xom}") //redis缓存 compile("redis.clients:jedis:${jedis}") compile("com.alibaba:fastjson:${fastjson}") compile("com.google.code.gson:gson:${gson}") compile("org.springframework.boot:spring-boot-starter-amqp:${spring_boot_starter_amqp}") }