/
build.gradle
94 lines (81 loc) · 2.64 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
plugins {
id 'java'
id 'idea'
id 'org.springframework.boot' version '3.2.5'
id 'io.spring.dependency-management' version '1.1.4'
id "jacoco"
}
java {
sourceCompatibility = 21
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
group = 'wonderland'
ext.buildNumber = {
def buildNumber = System.getenv('VERSION')
if (buildNumber == null || buildNumber.allWhitespace) {
buildNumber = 'beta'
}
return buildNumber
}
project.version = buildNumber()
repositories {
mavenLocal()
mavenCentral()
maven { url 'https://repo.spring.io/milestone' }
// flatDir {
// dirs 'libs'
// }
}
ext {
set('springCloudVersion', "2023.0.1")
}
dependencies {
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
implementation 'org.springframework.cloud:spring-cloud-starter'
implementation 'org.springframework.boot:spring-boot-starter'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'io.micrometer:micrometer-registry-prometheus'
implementation "org.springframework.cloud:spring-cloud-loadbalancer"
implementation "org.springframework.cloud:spring-cloud-starter-consul-config"
implementation "org.springframework.cloud:spring-cloud-starter-consul-discovery"
implementation 'org.springframework.boot:spring-boot-starter-webflux'
implementation 'org.springframework.kafka:spring-kafka'
implementation 'org.springframework.boot:spring-boot-starter-amqp'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
testImplementation 'org.springframework.kafka:spring-kafka-test'
testImplementation 'org.mockito:mockito-junit-jupiter'
testImplementation 'org.junit.jupiter:junit-jupiter-api'
testImplementation 'io.projectreactor:reactor-test'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
testImplementation 'org.springframework.amqp:spring-rabbit-test'
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
test {
useJUnitPlatform {}
}
jacocoTestReport {
reports {
xml.required = false
html.required = true
}
}
tasks.named('wrapper') {
distributionType = Wrapper.DistributionType.ALL
}
bootBuildImage {
// imageName = "bmd007/${project.name}:${project.version}"
imageName = "bmd007/${project.name}"
environment = ["BP_JVM_VERSION": "20"]
}