This repository was archived by the owner on Feb 25, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
47 lines (40 loc) · 1.27 KB
/
build.gradle.kts
File metadata and controls
47 lines (40 loc) · 1.27 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
plugins {
kotlin("jvm") version "2.3.10"
id("com.google.cloud.tools.jib") version "3.5.3"
}
group = "me.centralhardware"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven("https://jitpack.io")
}
val ktgbotapiVersion = "30.0.2"
dependencies {
// Telegram Bot API
implementation("dev.inmo:tgbotapi:${ktgbotapiVersion}")
implementation("com.github.centralhardware:ktgbotapi-commons:${ktgbotapiVersion}")
implementation("com.github.centralhardware.ktgbotapi-middlewars:ktgbotapi-restrict-access-middleware:${ktgbotapiVersion}")
}
jib {
from {
image = System.getenv("JIB_FROM_IMAGE") ?: "eclipse-temurin:24-jre"
}
to {
}
container {
mainClass = "MainKt"
jvmFlags = listOf("-XX:+UseContainerSupport", "-XX:MaxRAMPercentage=75.0")
creationTime = "USE_CURRENT_TIMESTAMP"
labels = mapOf(
"org.opencontainers.image.source" to (System.getenv("GITHUB_SERVER_URL")?.let { server ->
val repo = System.getenv("GITHUB_REPOSITORY")
if (repo != null) "$server/$repo" else ""
} ?: ""),
"org.opencontainers.image.revision" to (System.getenv("GITHUB_SHA") ?: "")
)
user = "10001"
}
}
tasks.test {
useJUnitPlatform()
}