-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
58 lines (52 loc) · 1.47 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
buildscript {
ext {
spring = "2.7.2"
springCloudVersion = "2021.0.3"
appVersion = "1.0.9"
boot = "org.springframework.boot"
lombok = "org.projectlombok:lombok"
cloud = "org.springframework.cloud"
profile = project.hasProperty("profile") ? project.property("profile").toString() : "local"
}
repositories {
mavenCentral()
}
dependencies {
classpath("$boot:spring-boot-gradle-plugin:${spring}")
}
}
plugins {
id "org.springframework.boot" version "${spring}" apply false
id "io.spring.dependency-management" version "1.0.12.RELEASE" apply false
}
allprojects {
apply plugin: "java"
apply plugin: "org.springframework.boot"
apply plugin: "io.spring.dependency-management"
group = "com.chaeking.api"
version = appVersion
sourceCompatibility = 17
}
subprojects {
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
developmentOnly "$boot:spring-boot-devtools"
annotationProcessor "$boot:spring-boot-configuration-processor"
testImplementation "$boot:spring-boot-starter-test"
testImplementation "org.mockito:mockito-inline"
compileOnly lombok
annotationProcessor lombok
testImplementation lombok
testAnnotationProcessor lombok
}
tasks.named("test") {
useJUnitPlatform()
}
}