-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
66 lines (54 loc) · 1.62 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
java
application
kotlin("jvm") version "1.4.10"
kotlin("plugin.serialization") version "1.4.10"
//https://plugins.gradle.org/plugin/com.github.johnrengelman.shadow
id("com.github.johnrengelman.shadow") version "6.1.0"
}
group = "com.slackdriver"
version = "0.0.2"
application {
mainClassName = "MainKt"
}
dependencies {
implementation("khttp:khttp:1.0.0")
implementation("com.google.cloud:google-cloud-errorreporting:0.120.5-beta")
implementation("com.google.cloud:google-cloud-logging:1.102.0")
implementation(kotlin("stdlib-jdk8"))
implementation(kotlin("reflect"))
implementation("org.jetbrains.kotlinx:kotlinx-serialization-runtime:1.0-M1-1.4.0-rc")
testImplementation("org.assertj:assertj-core:3.18.1")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.7.0")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.7.0")
}
tasks.test {
useJUnitPlatform()
}
repositories {
jcenter()
mavenCentral()
}
configurations {
"implementation" {
resolutionStrategy.failOnVersionConflict()
}
}
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions {
jvmTarget = "1.8"
}
val compileTestKotlin: KotlinCompile by tasks
compileTestKotlin.kotlinOptions {
jvmTarget = "1.8"
}
// GRPC seems to need a proper shadowed jar
// https://github.com/grpc/grpc-java/issues/5493#issuecomment-478500418
tasks.shadowJar {
mergeServiceFiles()
}