Watch 4 Star 5 Fork 3

kite / kite-coreJavaApache-2.0

Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
SpringCloud 微服务开发组件扩展 spread retract

Clone or download
build.gradle 2.48 KB
Copy Edit Web IDE Raw Blame History
花朝 authored 2019-07-24 22:54 . :sparkles: kite-data
buildscript {
repositories {
maven { url "https://plugins.gradle.org/m2/" }
maven { url "http://repo.spring.io/plugins-release" }
maven { url "http://maven.aliyun.com/nexus/content/groups/public" }
}
dependencies {
classpath("io.spring.gradle:propdeps-plugin:0.0.10.RELEASE")
classpath("io.spring.gradle:dependency-management-plugin:1.0.7.RELEASE")
}
}
ext {
javaVersion = JavaVersion.VERSION_1_8
springBootVersion = "2.1.6.RELEASE"
springCloudVersion = "Greenwich.SR2"
okhttpVersion = "3.10.0"
findbugsVersion = "3.0.1"
swaggerVersion = "2.9.2"
lombokVersion = "1.18.4"
junitVersion = "4.12"
//kite-data
protostuffVersion = "1.6.0"
druidStarterVersion = "1.1.9"
mybatisPlusVersion = "3.0.7"
}
configure(subprojects) {
group = GROUPID
version = VERSION
apply plugin: "java-library"
apply plugin: 'maven-publish'
apply plugin: 'signing'
apply plugin: "io.spring.dependency-management"
apply from: "${rootProject.projectDir}/gradle/publish-jar.gradle"
sourceCompatibility = "$javaVersion"
targetCompatibility = "$javaVersion"
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
// maven 仓库
repositories {
mavenLocal()
maven { url "https://repo.spring.io/libs-release" }
maven { url "http://repo.aliyun.com/repository/kite/" }
maven { url "http://maven.aliyun.com/nexus/content/groups/public" }
mavenCentral()
}
// 依赖
dependencies {
// lombok
api "org.projectlombok:lombok:$lombokVersion"
annotationProcessor "org.projectlombok:lombok:$lombokVersion"
// 自动生成 spring-configuration-metadata.json
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor"
// spring-cloud-context @RefreshScope 用于动态刷新配置
compileOnly "org.springframework.cloud:spring-cloud-context"
compileOnly "com.google.code.findbugs:annotations:$findbugsVersion"
// junit 测试包
testCompileOnly "junit:junit:$junitVersion"
}
// bom
dependencyManagement {
imports {
mavenBom "org.springframework.boot:spring-boot-dependencies:$springBootVersion"
mavenBom "org.springframework.cloud:spring-cloud-dependencies:$springCloudVersion"
}
}
compileJava.dependsOn(processResources)
}

Comment ( 0 )

Sign in for post a comment

Java
1
https://gitee.com/killi/kite-core.git
git@gitee.com:killi/kite-core.git
killi
kite-core
kite-core
master

Help Search

191139_cd20d5fd_5186603 191143_ebef6f8d_5186603