-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
50 lines (39 loc) · 1.18 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.6.20"
kotlin("plugin.serialization") version "1.6.10"
application
}
group = "me.gilles"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation("org.slf4j:slf4j-simple:1.7.36")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.2")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.1")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.6.1")
implementation("org.apache.pulsar:pulsar-client:2.10.0")
testImplementation(kotlin("test"))
testImplementation("io.kotest:kotest-runner-junit5-jvm:5.3.0")
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
application {
mainClass.set("MainKt")
}
task("checker", JavaExec::class) {
group = "loan"
mainClass.set("me.gilles.checker.LoanCheckerServiceKt")
classpath = sourceSets["main"].runtimeClasspath
}
task("notifier", JavaExec::class) {
group = "loan"
mainClass.set("me.gilles.checker.LoanNotifierServiceKt")
classpath = sourceSets["main"].runtimeClasspath
}