-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
87 lines (74 loc) · 2.11 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
buildscript {
repositories {
maven { url "http://maven.aliyun.com/repository/central" }
maven { url "http://maven.aliyun.com/repository/jcenter" }
}
dependencies {
classpath "com.diffplug.spotless:spotless-plugin-gradle:3.28.1"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.61"
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.8"
classpath "org.sonarsource:sonar-persistit:3.3.2"
}
}
subprojects {
apply plugin: "com.diffplug.gradle.spotless"
apply plugin: "jacoco"
apply plugin: "java"
apply plugin: "kotlin"
apply plugin: "maven-publish"
apply plugin: "org.sonarqube"
repositories {
maven { url "http://maven.aliyun.com/repository/central" }
maven { url "http://maven.aliyun.com/repository/jcenter" }
}
group = "cn.zj.hz.xhgl"
version = project.properties["releaseVersion"] ?: "1.0.0"
ext {
commonsLangVersion = "3.9"
fastjsonVersion = "1.2.66"
hutoolVersion = "5.2.5"
kotlinVersion = "1.3.61"
lombokVersion = "1.18.8"
springBootVersion = "2.1.6.RELEASE"
springVersion = "5.1.8.RELEASE"
}
dependencies {
annotationProcessor "org.projectlombok:lombok:$lombokVersion"
testAnnotationProcessor "org.projectlombok:lombok:$lombokVersion"
compile "org.projectlombok:lombok:$lombokVersion"
testCompile "junit:junit:4.12"
}
configurations.all {
resolutionStrategy {
cacheChangingModulesFor 0, "seconds"
}
}
compileJava {
options.encoding = "UTF-8"
}
compileTestJava {
options.encoding = "UTF-8"
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
javadoc {
source = sourceSets.main.allJava
classpath = configurations.compile
}
spotless {
java {
googleJavaFormat("1.7").aosp()
}
kotlin {
ktlint("0.36.0")
}
}
}