-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
113 lines (101 loc) · 4.51 KB
/
build.gradle.kts
File metadata and controls
113 lines (101 loc) · 4.51 KB
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
108
109
110
111
112
113
import com.google.protobuf.gradle.id
plugins {
java
id("org.springframework.boot") version "4.0.5"
id("io.spring.dependency-management") version "1.1.7"
jacoco
id("com.google.protobuf") version "0.9.5"
}
group = "com.jiandong"
version = "0.0.1-SNAPSHOT"
description = "spring-unknown"
java {
toolchain {
languageVersion = JavaLanguageVersion.of(25)
}
}
repositories {
mavenCentral()
}
dependencies {
implementation("org.springframework:spring-aspects")
implementation("org.springframework.boot:spring-boot-starter-webmvc")
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("org.springframework.boot:spring-boot-starter-jdbc")
implementation("org.springframework.boot:spring-boot-starter-batch")
implementation("org.springframework.boot:spring-boot-starter-security")
implementation("org.springframework.boot:spring-boot-starter-oauth2-resource-server")
implementation("org.springframework.security:spring-security-oauth2-jose") // for decoding/verifying JWT
implementation("org.bouncycastle:bcprov-jdk18on:1.84") // cert pem
implementation("org.springframework.boot:spring-boot-starter-integration")
implementation("org.springframework.integration:spring-integration-jms")
implementation("org.springframework.integration:spring-integration-jdbc")
implementation("org.springframework.boot:spring-boot-starter-activemq")
implementation("org.apache.activemq:activemq-kahadb-store")
implementation("org.springframework.boot:spring-boot-starter-kafka")
implementation("org.springframework.boot:spring-boot-starter-websocket")
implementation("io.micrometer:micrometer-tracing-bridge-brave")
implementation("org.springframework.modulith:spring-modulith-events-jdbc") // event-publication table
implementation("org.springframework.modulith:spring-modulith-starter-jdbc")
implementation("org.springframework.modulith:spring-modulith-core") // application modules check
implementation("net.javacrumbs.shedlock:shedlock-spring")
implementation("net.javacrumbs.shedlock:shedlock-provider-jdbc-template")
implementation("org.postgresql:postgresql")
developmentOnly("org.springframework.boot:spring-boot-docker-compose")
implementation("io.grpc:grpc-services")
implementation("org.springframework.grpc:spring-grpc-spring-boot-starter")
testImplementation("org.testcontainers:testcontainers-postgresql")
testImplementation("org.testcontainers:testcontainers-activemq")
testImplementation("org.testcontainers:testcontainers-junit-jupiter")
testImplementation("org.springframework.boot:spring-boot-starter-webmvc-test")
testImplementation("org.springframework.boot:spring-boot-starter-actuator-test")
testImplementation("org.springframework.boot:spring-boot-starter-data-jdbc-test")
testImplementation("org.springframework.boot:spring-boot-starter-batch-test")
testImplementation("org.springframework.boot:spring-boot-starter-security-test")
testImplementation("org.springframework.integration:spring-integration-test")
testImplementation("org.springframework.boot:spring-boot-starter-activemq-test")
testImplementation("org.springframework.boot:spring-boot-starter-kafka-test")
testImplementation("org.springframework.boot:spring-boot-starter-websocket-test")
testImplementation("org.springframework.modulith:spring-modulith-starter-test")
testImplementation("com.squareup.okhttp3:mockwebserver3:5.3.2")
testImplementation("org.springframework.grpc:spring-grpc-test")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
dependencyManagement {
imports {
mavenBom("org.springframework.modulith:spring-modulith-bom:2.0.5")
mavenBom("net.javacrumbs.shedlock:shedlock-bom:7.7.0")
mavenBom("org.springframework.grpc:spring-grpc-dependencies:1.0.2")
}
}
tasks.withType<Test> {
testLogging.showStandardStreams = true
useJUnitPlatform()
finalizedBy(tasks.jacocoTestReport, tasks.jacocoTestCoverageVerification)
}
tasks.jacocoTestReport {
reports {
xml.required = false
csv.required = true
html.required = false
}
}
protobuf {
protoc {
artifact = "com.google.protobuf:protoc"
}
plugins {
id("grpc") {
artifact = "io.grpc:protoc-gen-grpc-java"
}
}
generateProtoTasks {
all().forEach {
it.plugins {
id("grpc") {
option("@generated=omit")
}
}
}
}
}