-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
98 lines (81 loc) · 3.15 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
buildscript {
ext.springBootVersion = 'latest.release'
ext.springCloudVersion = 'latest.release'
configurations.classpath {
resolutionStrategy.activateDependencyLocking()
}
repositories {
gradlePluginPortal()
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion"
classpath 'com.gorylenko.gradle-git-properties:gradle-git-properties:latest.release'
classpath 'org.ajoberstar.grgit:grgit-gradle:latest.release'
}
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
apply plugin: 'com.gorylenko.gradle-git-properties'
apply plugin: 'org.ajoberstar.grgit'
apply from: 'gradle/dependency-locking.gradle'
apply from: 'gradle/runtime.gradle'
apply from: 'gradle/docker.gradle'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(22)
}
}
repositories {
mavenCentral()
}
dependencies {
['annotationProcessor', 'compileOnly', 'implementation', 'runtimeOnly', 'testImplementation'].each { conf ->
dependencies.add(conf, platform("org.springframework.boot:spring-boot-dependencies:$springBootVersion"))
dependencies.add(conf, platform("org.springframework.cloud:spring-cloud-dependencies:$springCloudVersion"))
}
implementation platform('io.projectreactor:reactor-bom:latest.release')
testImplementation platform('org.junit:junit-bom:latest.release')
annotationProcessor 'org.projectlombok:lombok'
compileOnly 'org.projectlombok:lombok'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-aop'
implementation 'org.springframework.boot:spring-boot-starter-hateoas'
implementation 'org.springframework.data:spring-data-commons'
implementation 'org.springframework.cloud:spring-cloud-starter-openfeign'
implementation 'io.github.openfeign:feign-okhttp'
implementation 'io.github.openfeign:feign-micrometer'
implementation 'io.projectreactor:reactor-core'
implementation 'org.ow2.asm:asm:latest.release'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.+'
implementation 'io.micrometer:micrometer-tracing-bridge-brave'
runtimeOnly 'io.micrometer:micrometer-registry-prometheus'
testImplementation 'org.junit.jupiter:junit-jupiter-api'
testImplementation 'org.mockito:mockito-junit-jupiter'
testImplementation 'org.assertj:assertj-core'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
}
processResources {
filesMatching('build.properties') { it.expand(project.properties) }
}
jar {
enabled = false
}
test {
useJUnitPlatform()
}
springBoot {
buildInfo()
}
task cleanAll {
dependsOn clean, cleanIdea, cleanIdeaWorkspace
doLast {
delete 'out', '.idea', 'logs'
}
}
wrapper {
distributionType = Wrapper.DistributionType.BIN
// gradleVersion = new groovy.json.JsonSlurper().parseText('https://services.gradle.org/versions/current'.toURL().text).version
}