-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
75 lines (61 loc) · 1.44 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
plugins {
id 'java'
}
ext {
springBootVersion = '3.0.5'
springVersion = '6.0.7'
lombokVersion = '1.18.26'
javapoetVersion = '1.13.0'
commonslang3Version = '3.12.0'
mapstructVersion = '1.5.3.Final'
}
repositories {
mavenCentral()
}
test {
useJUnitPlatform()
}
tasks.withType(JavaCompile){
options.encoding = "UTF-8"
}
allprojects {
apply plugin: "java-library"
apply plugin: "jacoco"
repositories {
mavenLocal()
maven {
url 'https://maven.aliyun.com/repository/public/'
}
maven {
url 'https://maven.aliyun.com/repository/spring/'
}
mavenCentral()
}
}
subprojects {
apply plugin: "java-library"
apply plugin: "jacoco"
group 'io.github.dailinyucode'
version '1.0.2'
javadoc.options.encoding("UTF-8")
compileJava.options.encoding("UTF-8")
compileTestJava.options.encoding("UTF-8")
dependencies {
compileOnly "org.projectlombok:lombok:${lombokVersion}"
annotationProcessor "org.projectlombok:lombok:${lombokVersion}"
}
test{
useJUnitPlatform()
}
//约束java版本
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
javadoc {
// <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
// 防止本地打开中文乱码
options.addStringOption("charset", "UTF-8")
}
}