-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
111 lines (82 loc) · 3.47 KB
/
build.gradle.kts
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
buildscript {
repositories {
maven("http://maven.aliyun.com/nexus/content/groups/public/")
jcenter()
google()
mavenCentral()
}
}
allprojects {
group = "org.zhl"
version = "1.0"
ext {
set("guavaVersion", "29.0-jre")
set("junitVersion", "5.6.2")
set("lombokVersion", "1.18.16")
set("log4jVersion", "2.14.0")
set("springFrameworkVersion", "5.3.2")
set("vavrVersion", "0.10.3")
set("CCVersion", "4.1")
set("javaFakerVersion", "1.0.2")
set("jmockdataVersion", "4.2.0")
set("jolVersion", "0.16")
set("fastjsonVersion", "1.2.75")
set("slf4jVersion", "2.0.0-alpha1")
}
}
subprojects {
apply(plugin = "java")
apply(plugin = "application")
apply(plugin = "idea")
buildscript {
repositories {
gradlePluginPortal()
}
dependencies {
classpath("com.bmuschko:gradle-tomcat-plugin:2.7.0")
}
}
repositories {
maven("http://maven.aliyun.com/nexus/content/groups/public/")
jcenter()
google()
mavenCentral()
}
dependencies {
val guavaVersion = rootProject.ext["guavaVersion"] as String?
val junitVersion = rootProject.ext["junitVersion"] as String?
val lombokVersion = rootProject.ext["lombokVersion"] as String?
val vavrVersion = rootProject.ext["vavrVersion"] as String?
val CCVersion = rootProject.ext["CCVersion"] as String?
val javaFakerVersion = rootProject.ext["javaFakerVersion"] as String?
val jmockdataVersion = rootProject.ext["jmockdataVersion"] as String?
val jolVersion = rootProject.ext["jolVersion"] as String?
val fastjsonVersion = rootProject.ext["fastjsonVersion"] as String?
val slf4jVersion = rootProject.ext["slf4jVersion"] as String?
val log4jVersion = rootProject.ext["log4jVersion"] as String?
"implementation"("org.slf4j", "slf4j-api", "$slf4jVersion")
"implementation"("com.github.jsonzou", "jmockdata", "$jmockdataVersion")
"implementation"("com.github.javafaker", "javafaker", "$javaFakerVersion")
"implementation"("com.google.guava", "guava", "$guavaVersion")
"implementation"("io.vavr", "vavr", "$vavrVersion")
"implementation"("org.apache.commons", "commons-collections4", "$CCVersion")
"implementation"("com.alibaba", "fastjson", "$fastjsonVersion")
"implementation"("org.openjdk.jol", "jol-core", "$jolVersion")
"testImplementation"("org.junit.jupiter", "junit-jupiter-api", "$junitVersion")
"testRuntimeOnly"("org.junit.jupiter", "junit-jupiter-engine", "$junitVersion")
"testImplementation"("org.junit.jupiter", "junit-jupiter-params", "$junitVersion")
"compileOnly"("org.projectlombok", "lombok", "$lombokVersion")
"annotationProcessor"("org.projectlombok", "lombok", "$lombokVersion")
"testCompileOnly"("org.projectlombok", "lombok", "$lombokVersion")
"testAnnotationProcessor"("org.projectlombok", "lombok", "$lombokVersion")
"implementation"("org.apache.logging.log4j","log4j-core","$log4jVersion")
"implementation"("org.apache.logging.log4j:log4j-slf4j-impl:2.11.1")
}
val test by tasks.getting(Test::class) {
useJUnitPlatform()
}
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}