-
Notifications
You must be signed in to change notification settings - Fork 153
/
build.gradle
46 lines (43 loc) · 1.39 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
plugins {
id 'java'
id 'java-library'
id 'io.spring.dependency-management' version '1.1.6'
}
allprojects{
group 'com.zhaofujun.nest'
version '3.0.1'
repositories {
mavenCentral()
maven { url 'https://repo.spring.io/milestone' }
maven { url 'https://repo.spring.io/snapshot' }
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'io.spring.dependency-management'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
dependencyManagement {
imports {
// mavenBom "org.springframework.cloud:spring-cloud-dependencies:2022.0.0"
// mavenBom "com.alibaba.cloud:spring-cloud-alibaba-dependencies:2022.0.0.0"
mavenBom "org.springframework.boot:spring-boot-dependencies:3.2.4"
}
dependencies {
dependency("javax.validation:validation-api:2.0.0.Final")
dependency("com.alibaba:transmittable-thread-local:2.11.0")
dependency("com.alibaba.fastjson2:fastjson2:2.0.10")
dependency("net.sf.ehcache:ehcache-core:2.6.6")
// implementation 'com.google.guava:guava:31.0.1-jre'
dependency("cglib:cglib:3.3.0")
}
}
tasks.withType(JavaCompile) {
options.compilerArgs << '-parameters' // 添加这行
options.encoding = 'UTF-8'
}
}