gradle 管理文件 //plugins {// id "java"// id "idea"// id "org.springframework.boot" version "1.5.1.RELEASE"// id "io.spring.dependency-management" version "1.0.0.RELEASE"//}buildscript { repositories { maven { url "http://mhis-rdsp-nexu
//plugins {
// id "java"
// id "idea"
// id "org.springframework.boot" version "1.5.1.RELEASE"
// id "io.spring.dependency-management" version "1.0.0.RELEASE"
//}
buildscript {
repositories {
maven {
url "http://mhis-rdsp-nexus.paic.com.cn/repository/aliyun-maven/"
}
maven {
url "http://mhis-rdsp-nexus.paic.com.cn/repository/maven-central/"
}
mavenCentral()
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:1.5.4.RELEASE"
}
}
apply plugin: "java"
apply plugin: "idea"
apply plugin: "org.springframework.boot"
apply plugin: "checkstyle"
apply plugin: "findbugs"
apply plugin: "jacoco"
group 'com.pingan.mhm.siapp'
version '0.1.0-SNAPSHOT'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
maven {
url "http://mhis-rdsp-nexus.paic.com.cn/repository/maven-snapshots/"
}
maven {
url "http://mhis-rdsp-nexus.paic.com.cn/repository/aliyun-maven/"
}
maven {
url "http://mhis-rdsp-nexus.paic.com.cn/repository/maven-central/"
}
mavenCentral()
}
configurations {
compile.exclude module: "spring-boot-starter-tomcat"
}
configurations.all {
// Check for updates every build
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
jar {
baseName "siapp-ncd-main"
version "0.1.0"
}
dependencyManagement {
imports {
mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Dalston.SR1'
}
resolutionStrategy{
cacheChangingModulesFor 0, 'seconds'
}
}
dependencies {
compile group: 'org.springframework.boot', name: 'spring-boot-starter-web'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-undertow'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-data-jpa'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-data-redis'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-actuator'
compile group: 'org.springframework.cloud', name: 'spring-cloud-starter-config'
compile group: 'org.springframework.cloud', name: 'spring-cloud-starter-eureka'
compile group: 'org.springframework.cloud', name: 'spring-cloud-starter-feign'
compile group: 'org.springframework.session', name: 'spring-session-data-redis', version: '1.3.0.RELEASE'
compile group: 'org.springframework.cloud', name: 'spring-cloud-starter-sleuth'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-security'
compile group: 'org.springframework.security.oauth', name: 'spring-security-oauth2', version: '2.1.0.RELEASE'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-thymeleaf'
compile group: 'org.thymeleaf.extras', name: 'thymeleaf-extras-springsecurity4', version: '2.1.3.RELEASE'
// siapp-framework
compile group: 'com.pingan.mhm.siapp', name: 'siapp-framework', version: '0.0.6-SNAPSHOT', changing: true
// siapp-rpc-api
compile group: 'com.pingan.mhm.siapp', name: 'siapp-rpc-api', version: '0.0.55-SNAPSHOT', changing: true
//cxf
compile group: 'org.apache.cxf', name: 'cxf-rt-frontend-jaxws', version: '3.1.10'
compile group: 'org.apache.cxf', name: 'cxf-rt-transports-http', version: '3.1.10'
compile files('extlib/ojdbc7.jar')
compile files('extlib/sign-tool-jdk8-1.1.0.jar')
testCompile group: 'org.springframework.boot', name: 'spring-boot-starter-test'
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
tasks.withType(FindBugs) {
reports {
xml.enabled false
html.enabled true
}
}
checkstyle {
toolVersion = "7.6"
}
