-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
55 lines (46 loc) · 1.63 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
plugins {
id 'application'
id "io.github.lognet.grpc-spring-boot" version '4.8.1'
id 'io.spring.dependency-management' version '1.0.14.RELEASE'
id 'org.springframework.boot' version '2.7.4'
}
group = 'net.accelbyte.matchmaking.function.grpc.server'
version = '0.0.1'
sourceCompatibility = '11'
project.buildDir = 'target'
mainClassName = 'net.accelbyte.matchmaking.function.grpc.server.App'
repositories {
mavenCentral()
}
dependencies {
annotationProcessor 'org.projectlombok:lombok:1.18.24'
implementation 'org.projectlombok:lombok:1.18.24'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.24'
testImplementation 'org.springframework.boot:spring-boot-starter-test:2.7.5'
implementation 'com.google.code.gson:gson:2.9.1'
implementation 'io.micrometer:micrometer-registry-prometheus:1.9.5'
implementation 'net.accelbyte.sdk:sdk:0.57.0'
implementation 'net.logstash.logback:logstash-logback-encoder:7.2'
implementation 'org.springframework.boot:spring-boot-starter:2.7.5'
implementation 'org.springframework.boot:spring-boot-starter-web:2.7.5'
implementation 'org.springframework.boot:spring-boot-starter-actuator:2.7.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=CustomMatchMakingFunctionJava',
'-Dotel.propagators=b3multi',
'-Dotel.metrics.exporter=none',
'-Dotel.traces.exporter=zipkin',
'-Dspring.profiles.active=local'
]
}
}
tasks.named('test') {
useJUnitPlatform()
}