-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
49 lines (41 loc) · 1.51 KB
/
build.gradle.kts
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
plugins {
id("org.springframework.boot") version "2.7.16"
id("io.spring.dependency-management") version "1.1.3"
id("com.github.johnrengelman.shadow") version "8.1.1"
id("com.avast.gradle.docker-compose") version "0.17.5"
id("com.ryandens.javaagent-application") version "0.5.0"
id("java")
id("application")
}
group = "spp.example"
version = "1.0-SNAPSHOT"
application {
mainClass.set("spp.example.operate.WebappOperator")
applicationName = "example-jvm"
}
repositories {
mavenCentral()
maven(url = "https://pkg.sourceplus.plus/sourceplusplus/probe-jvm")
}
dependencies {
javaagent("plus.sourceplus.probe:probe-jvm:0.7.9")
implementation("org.springframework.boot:spring-boot-starter-thymeleaf")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.apache.commons:commons-pool2:2.11.1")
implementation("com.h2database:h2:1.4.200")
implementation("com.github.javafaker:javafaker:1.0.2") {
exclude("org.yaml", "snakeyaml")
}
compileOnly("org.projectlombok:lombok:1.18.30")
annotationProcessor("org.projectlombok:lombok:1.18.30")
implementation("org.apache.skywalking:apm-toolkit-trace:9.0.0")
implementation("org.apache.skywalking:apm-toolkit-logback-1.x:9.0.0")
}
tasks.getByName("composeUp") {
dependsOn("installDist")
mustRunAfter("installDist")
}
tasks.register("assembleUp") {
dependsOn("assemble", "composeUp")
}