build.gradle 2.47 KB
group 'com.viontech'
version '1.0-SNAPSHOT'
buildscript {
    /*repositories {
        jcenter()
    }*/
    repositories {
        maven { url 'http://192.168.9.220:8081/nexus/content/groups/public/' }
    }
    dependencies {
        classpath("org.springframework.boot:spring-boot-gradle-plugin:1.5.2.RELEASE")
    }
}

/***
 * 使用的插件
 */
apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'org.springframework.boot'

/**
 * 设置jdk的版本
 */
sourceCompatibility = 1.8
targetCompatibility = 1.8

tasks.withType(JavaCompile) {
    options.compilerArgs << '-Xlint:unchecked'
    options.deprecation = true
}
repositories {
    mavenCentral()
}



/***
 * 依赖
 */
dependencies {
    compile("org.springframework.boot:spring-boot-starter-parent:1.5.2.RELEASE"){
        exclude module: 'hibernate-core'
        exclude module: 'hibernate-entitymanager'
    }
    compile("org.springframework.boot:spring-boot-starter-web:1.5.2.RELEASE")
    // hibernate 集成
    compile('org.hibernate:hibernate-core:5.2.12.Final')
    compile('org.hibernate:hibernate-entitymanager:5.2.12.Final')
    compile('org.hibernate:hibernate-ehcache:5.2.12.Final')
    compile('com.fasterxml.jackson.datatype:jackson-datatype-hibernate5:2.9.4')
    compile("org.postgresql:postgresql:9.3-1102-jdbc41")
    compile("org.springframework.boot:spring-boot-starter-data-jpa:1.5.2.RELEASE"){
        exclude module: 'hibernate-core'
        exclude module: 'hibernate-entitymanager'
    }
    //compile("javax:javaee-api:7.0")
    compile("org.springframework.boot:spring-boot-starter-websocket")
    compile("org.springframework.boot:spring-boot-starter-jdbc:1.5.2.RELEASE")
    compile("org.springframework.boot:spring-boot-starter-activemq")
    compile("org.apache.activemq:activemq-pool")
    testCompile group: 'junit', name: 'junit', version: '4.12'
    compile 'org.springframework:spring-core'
    compile 'org.springframework.boot:spring-boot-autoconfigure'
    compileOnly ('org.springframework.boot:spring-boot-starter-tomcat')
    compile("org.springframework.kafka:spring-kafka:1.1.2.RELEASE")
    compile group: 'com.alibaba', name: 'druid', version: '1.0.18'
    compile group: 'com.alibaba', name: 'fastjson', version: '1.2.47'
    compile group: 'org.projectlombok', name: 'lombok', version: '1.18.4'
    compile("org.apache.commons:commons-lang3:3.5")
    compile group: 'net.sf.json-lib', name: 'json-lib', version: '2.4',classifier:'jdk15'
}