-
Notifications
You must be signed in to change notification settings - Fork 19
/
build.gradle.kts
81 lines (67 loc) · 2.44 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
project.version = "2.3.2"
plugins {
id("org.jetbrains.kotlin.jvm") version "1.4.0"
application
id("com.github.johnrengelman.shadow") version("5.1.0")
id("com.google.cloud.tools.jib") version "2.8.0"
`maven-publish`
}
repositories {
jcenter()
}
dependencies {
implementation(platform("org.jetbrains.kotlin:kotlin-bom"))
testImplementation("org.junit.jupiter:junit-jupiter-api:5.3.1")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.3.1")
testImplementation("org.junit.jupiter:junit-jupiter-params:5.3.1")
implementation("dev.misfitlabs.kotlinguice4:kotlin-guice:1.4.1")
implementation(kotlin("stdlib"))
implementation("org.jetbrains.kotlin:kotlin-reflect:1.4.10")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9")
implementation( "net.dean.jraw:JRAW:1.1.0")
implementation( "org.postgresql:postgresql:42.2.8")
implementation( "com.google.code.gson:gson:2.8.5")
implementation(group= "org.slf4j", name= "slf4j-api", version= "1.7.28")
implementation(group= "org.slf4j", name= "slf4j-jdk14", version= "1.7.28")
implementation(group="com.google.inject", name= "guice", version = "4.2.3")
implementation(group="com.google.inject.extensions", name= "guice-assistedinject", version = "4.2.3")
testImplementation("com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0")
testImplementation( "org.mockito:mockito-inline:2.13.0")
implementation("io.github.microutils:kotlin-logging:1.5.9")
implementation("com.uchuhimo:konf-core:0.20.0")
implementation("com.uchuhimo:konf-yaml:0.20.0")
implementation("org.yaml:snakeyaml:1.25")
}
application {
mainClassName = "de.rtrx.a.MainKt"
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks.test {
useJUnitPlatform()
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class.java).all {
kotlinOptions {
jvmTarget = "1.8"
}
}
jib {
to {
image = "docker.pkg.github.com/artraxon/unexbot/full-image:${project.version}"
auth {
username = System.getenv("GITHUB_USER")
password = System.getenv("GITHUB_TOKEN")
}
}
}
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions {
jvmTarget = "1.8"
}
val compileTestKotlin: KotlinCompile by tasks
compileTestKotlin.kotlinOptions {
jvmTarget = "1.8"
}