-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle.kts
60 lines (46 loc) · 1.17 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
`maven-publish`
kotlin("jvm") version "1.9.0"
}
group = "com.moshbit.katerbase"
version = "0.1.3"
repositories {
mavenCentral()
}
dependencies {
implementation(kotlin("stdlib"))
implementation("org.mongodb:mongodb-driver-sync:4.9.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
implementation("com.fasterxml.jackson.core:jackson-core:2.14.2")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.14.2")
implementation("ch.qos.logback:logback-classic:1.2.11")
implementation("commons-codec:commons-codec:1.15")
testImplementation("org.junit.jupiter:junit-jupiter:5.9.2")
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "17"
}
tasks.test {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}
kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of("17")) // Auto-download JDK for developers
}
}
publishing {
publications {
create<MavenPublication>("default") {
from(components["java"])
}
}
repositories {
maven {
url = uri("$buildDir/repository")
}
}
}