12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- buildscript {
- ext {
- springBootVersion = '1.5.8.RELEASE'
- }
- repositories {
- /*本地仓库*/
- mavenLocal()
- jcenter()
- mavenCentral()
- maven {
- url "http://central.maven.org/maven2"
- }
- }
- dependencies {
- classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
- }
- }
- apply plugin: 'java'
- apply plugin: 'org.springframework.boot'
- apply plugin: 'war'
- group = 'com.emato'
- version = '1.0.0'
- sourceCompatibility = 1.8
- // 解决中文乱码
- tasks.withType(JavaCompile) {
- options.encoding = "UTF-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'
- cage = '1.0'
- okhttp = '3.4.1'
- apache_commons_lang3 = '3.6'
- gson = '2.8.0'
- }
- 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-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}")
- compile("org.apache.commons:commons-lang3:${apache_commons_lang3}")
- //gson
- compile("com.google.code.gson:gson:${gson}")
- }
|