-
Notifications
You must be signed in to change notification settings - Fork 29
/
build.gradle
69 lines (56 loc) · 1.92 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import org.springframework.boot.gradle.plugin.SpringBootPlugin
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.springframework.boot:spring-boot-gradle-plugin:2.5.5'
}
}
ext {
springCloudVersion = "2020.0.4"
alibabaCloudVersion = "2020.0.RC1"
springCloudK8sVersion = '2.0.1'
}
allprojects {
repositories {
mavenCentral()
}
}
subprojects {
apply plugin: "java"
apply plugin: "org.springframework.boot"
apply plugin: "io.spring.dependency-management"
version = "0.0.1"
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
def defaultEncoding = 'UTF-8'
tasks.withType(AbstractCompile).forEach { it.options.encoding = defaultEncoding }
javadoc {
options.encoding = defaultEncoding
options.addBooleanOption('Xdoclint:none', true)
}
compileJava.dependsOn(processResources)
springBoot {
buildInfo()
}
bootJar {
archiveFileName.set('app.jar')
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
mavenBom "org.springframework.cloud:spring-cloud-kubernetes-dependencies:${springCloudK8sVersion}"
mavenBom "com.alibaba.cloud:spring-cloud-alibaba-dependencies:${alibabaCloudVersion}"
mavenBom SpringBootPlugin.BOM_COORDINATES
}
}
dependencies {
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor"
compileOnly "org.springframework.boot:spring-boot-configuration-processor"
implementation "org.springframework.boot:spring-boot-starter-actuator"
implementation "org.springframework.cloud:spring-cloud-starter"
implementation "org.springframework.cloud:spring-cloud-starter-kubernetes-fabric8-all"
implementation fileTree(dir: 'libs', includes: ['*.jar'])
}
}