-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
44 lines (34 loc) · 948 Bytes
/
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.7.20"
id("com.google.cloud.tools.jib") version "3.3.0"
}
group = "net.perfectdreams.directdiscordcdn"
version = "1.0.0"
repositories {
mavenCentral()
}
dependencies {
implementation("io.ktor:ktor-server-netty:2.1.2")
implementation("io.ktor:ktor-client-cio:2.1.2")
implementation("ch.qos.logback:logback-classic:1.4.4")
testImplementation(kotlin("test"))
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
jib {
to {
image = "ghcr.io/lorittabot/directdiscordcdn"
auth {
username = System.getProperty("DOCKER_USERNAME") ?: System.getenv("DOCKER_USERNAME")
password = System.getProperty("DOCKER_PASSWORD") ?: System.getenv("DOCKER_PASSWORD")
}
}
from {
image = "eclipse-temurin:18-focal"
}
}