-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
60 lines (51 loc) · 1.84 KB
/
build.gradle
File metadata and controls
60 lines (51 loc) · 1.84 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
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.78.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'
implementation 'com.google.protobuf:protobuf-java-util:3.19.2'
}
bootJar {
destinationDirectory = file(project.buildDir)
}
bootRun {
if ( project.hasProperty('jvmArgs') ) {
jvmArgs = (project.jvmArgs.split("\\s+") as List)
} else {
def envName = System.getenv('OTEL_SERVICE_NAME')
def serviceName = envName
? "extend-app-mm-${envName.trim().toLowerCase()}"
: 'extend-app-matchmaking-func'
jvmArgs = ['-javaagent:jars/aws-opentelemetry-agent.jar',
"-Dotel.service.name=${serviceName}",
'-Dotel.propagators=b3multi',
'-Dotel.metrics.exporter=none',
'-Dotel.traces.exporter=zipkin',
'-Dspring.profiles.active=local'
]
}
}
tasks.named('test') {
useJUnitPlatform()
}