-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
62 lines (52 loc) · 2.07 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
plugins {
id 'application'
id "io.github.lognet.grpc-spring-boot" version '5.1.5'
id 'io.spring.dependency-management' version '1.1.6'
id 'org.springframework.boot' version '3.3.5'
}
group = 'net.accelbyte.challenge.assignment'
version = '0.0.1'
sourceCompatibility = '17'
project.buildDir = 'target'
mainClassName = 'net.accelbyte.challenge.assignment.App'
repositories {
mavenCentral()
}
dependencies {
implementation 'com.fasterxml.jackson.core:jackson-core:2.16.0'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.16.0'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.16.0'
implementation 'org.hibernate.validator:hibernate-validator:8.0.0.Final'
implementation 'org.projectlombok:lombok:1.18.30'
implementation 'io.micrometer:micrometer-registry-prometheus:1.12.0'
implementation 'org.springframework.boot:spring-boot-starter:3.3.5'
implementation 'org.springframework.boot:spring-boot-starter-web:3.3.5'
implementation 'org.springframework.boot:spring-boot-starter-actuator:3.3.5'
implementation 'net.accelbyte.sdk:sdk:0.57.0'
implementation 'net.logstash.logback:logstash-logback-encoder:7.4'
implementation 'com.squareup.okhttp3:okhttp:4.9.1'
annotationProcessor 'org.projectlombok:lombok:1.18.30'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.30'
// version matched with grpc-spring-boot https://github.com/LogNet/grpc-spring-boot-starter/blob/master/ReleaseNotes.md
testImplementation 'io.grpc:grpc-testing:1.58.0'
testImplementation 'org.springframework.boot:spring-boot-starter-test:3.3.5'
}
bootJar {
destinationDirectory = file(project.buildDir)
}
bootRun {
if ( project.hasProperty('jvmArgs') ) {
jvmArgs = (project.jvmArgs.split("\\s+") as List)
} else {
jvmArgs = ['-javaagent:jars/aws-opentelemetry-agent.jar',
'-Dotel.service.name=CustomChallengeAssignmentPluginServerJavaServerDocker',
'-Dotel.propagators=b3multi',
'-Dotel.metrics.exporter=none',
'-Dotel.traces.exporter=zipkin',
'-Dspring.profiles.active=local'
]
}
}
tasks.named('test') {
useJUnitPlatform()
}