-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
107 lines (90 loc) · 2.79 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
import org.springframework.boot.gradle.plugin.SpringBootPlugin
plugins {
id 'org.springframework.boot' version "${springBootVersion}" apply false
// id 'org.graalvm.buildtools.native' version "${nativeBuildToolsVersion}" apply false
id 'org.jetbrains.kotlin.jvm' version "${kotlinVersion}" apply false
id 'me.champeau.jmh' version "0.7.2" apply false
}
allprojects {
group = 'com.example'
version = '0.0.1-SNAPSHOT'
repositories {
maven {
url 'https://maven.aliyun.com/repository/public/'
}
maven {
url 'https://maven.aliyun.com/repository/spring/'
}
mavenLocal()
mavenCentral()
}
}
ext {
// https://mvnrepository.com/artifact/org.dromara.hutool/hutool-core
hutoolVersion = '6.0.0-M5'
// https://mvnrepository.com/artifact/org.mapstruct/mapstruct
mapstructVersion = '1.5.5.Final'
// https://mvnrepository.com/artifact/io.github.mouzt/bizlog-sdk
bizlogSdkVersion = '3.0.6'
// https://mvnrepository.com/artifact/org.jeasy/easy-rules-core
easyRulesVersion = '4.1.0'
// https://mvnrepository.com/artifact/com.google.guava/guava
guavaVersion = '33.0.0-jre'
// docs
// https://mvnrepository.com/artifact/org.springdoc/springdoc-openapi-starter-webmvc-ui
openapiVersion = '2.2.0'
// https://mvnrepository.com/artifact/org.openjdk.jmh/jmh-core
jmhVersion = '1.37'
}
ignoreNoSourceProject = ext.ignoreNoSourceProject.split(",")
subprojects {
if (ignoreNoSourceProject.contains(project.name)) {
return
}
apply plugin: 'io.spring.dependency-management'
apply plugin: 'java'
repositories {
maven {
url 'https://maven.aliyun.com/repository/public/'
}
maven {
url 'https://maven.aliyun.com/repository/spring/'
}
mavenLocal()
mavenCentral()
}
dependencyManagement {
imports {
mavenBom SpringBootPlugin.BOM_COORDINATES
}
}
dependencies {
// kotlin optional
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
implementation 'org.jetbrains.kotlin:kotlin-reflect'
// tool
implementation "org.dromara.hutool:hutool-core:${hutoolVersion}"
implementation "com.google.guava:guava:${guavaVersion}"
implementation "org.mapstruct:mapstruct:${mapstructVersion}"
implementation 'org.hibernate.validator:hibernate-validator'
// dev
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
annotationProcessor "org.mapstruct:mapstruct-processor:${mapstructVersion}"
// test
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testCompileOnly 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
testAnnotationProcessor "org.mapstruct:mapstruct-processor:${mapstructVersion}"
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
test {
useJUnitPlatform()
}
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}