-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
67 lines (52 loc) · 1.67 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
67
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
application
id("com.google.cloud.tools.jib") version "3.3.1"
kotlin("jvm") version "1.7.21"
kotlin("plugin.serialization") version "1.7.21"
}
group = "org.romancha"
version = "1.2"
val ktor_version: String by project
val lets_plot_kotlin_version: String by project
repositories {
mavenCentral()
}
dependencies {
implementation("dev.inmo:tgbotapi:4.2.4")
implementation("io.github.microutils:kotlin-logging-jvm:3.0.4")
implementation("org.slf4j:slf4j-simple:2.0.5")
implementation("io.ktor:ktor-client-core:$ktor_version")
implementation("io.ktor:ktor-client-content-negotiation:$ktor_version")
implementation("io.ktor:ktor-serialization-kotlinx-json:$ktor_version")
implementation("io.ktor:ktor-client-okhttp:$ktor_version")
implementation("io.ktor:ktor-client-logging:$ktor_version")
implementation("com.jayway.jsonpath:json-path:2.7.0")
implementation("org.jetbrains.lets-plot:lets-plot-kotlin-jvm:$lets_plot_kotlin_version")
implementation("org.jetbrains.lets-plot:lets-plot-image-export:2.5.1")
implementation("org.mapdb:mapdb:3.0.4")
testImplementation(kotlin("test"))
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "17"
}
application {
mainClass.set("org.romancha.autofon.MainKt")
}
jib {
container {
entrypoint = listOf("bash", "-c", "/entrypoint.sh")
}
extraDirectories {
paths {
path {
setFrom(file("src/main/jib"))
into = "/"
}
}
permissions.set(mapOf("/entrypoint.sh" to "755"))
}
}