-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
89 lines (70 loc) · 2.55 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
plugins {
application
id("com.google.cloud.tools.jib") version "2.8.0"
kotlin("jvm") version "1.4.32"
kotlin("kapt") version "1.4.32"
kotlin("plugin.serialization") version "1.4.32"
}
group = "to.rxs"
version = "1.0-SNAPSHOT"
repositories {
maven("https://schlaubi.jfrog.io/artifactory/kord/") // TODO: migrate to fixed official artifacts
mavenCentral()
jcenter() // TODO: migrate to central
maven("https://oss.sonatype.org/content/repositories/snapshots")
maven("https://dl.bintray.com/pdvrieze/maven")
maven("https://jitpack.io")
}
dependencies {
runtimeOnly(kotlin("scripting-jsr223"))
implementation("org.jetbrains.kotlinx", "kotlinx-coroutines-jdk8", "1.4.3")
implementation("org.jetbrains.kotlinx", "kotlinx-serialization-core", "1.1.0")
implementation("net.devrieze", "xmlutil-jvm", "0.81.1")
implementation("net.devrieze", "xmlutil-serialization-jvm", "0.81.1")
implementation("ch.qos.logback", "logback-classic", "1.2.6")
implementation("org.jetbrains.exposed", "exposed-core", "0.30.1")
implementation("org.jetbrains.exposed", "exposed-dao", "0.30.1")
implementation("org.jetbrains.exposed", "exposed-jdbc", "0.30.1")
implementation("org.postgresql", "postgresql", "42.2.19")
implementation("com.zaxxer", "HikariCP", "4.0.3")
implementation("org.xerial", "sqlite-jdbc", "3.34.0")
implementation("io.ktor", "ktor-server-netty", "1.5.2")
implementation("io.ktor", "ktor-serialization", "1.5.2")
implementation("dev.kord", "kord-core", "0.7.1-SNAPSHOT")
implementation("dev.kord.x", "commands-runtime-kord", "0.4.0-SNAPSHOT")
implementation("dev.kord.x", "emoji", "0.5.0-SNAPSHOT")
kapt("dev.kord.x", "commands-processor", "0.4.0-SNAPSHOT")
implementation("org.jetbrains.kotlinx", "kotlinx-datetime", "0.1.1")
implementation(kotlin("reflect"))
testCompileOnly("junit", "junit", "4.13.2")
}
application {
mainClass.value("to.rxs.kommunity.LauncherKt")
}
tasks {
compileKotlin {
kotlinOptions {
jvmTarget = "15"
freeCompilerArgs = freeCompilerArgs + "-Xopt-in=kotlin.RequiresOptIn"
useIR = true
}
}
}
jib {
from {
image = "openjdk:15"
}
to {
image = "gcr.io/rxs-to/" + project.name
tags = setOf(System.getenv("SEMAPHORE_GIT_SHA"))
}
container {
mainClass = "to.rxs.kommunity.LauncherKt"
jvmFlags = listOf(
"-Xmx1G",
"-Xms500M",
"-XX:+UseG1GC",
"-XX:+UseStringDeduplication"
)
}
}