-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
74 lines (64 loc) · 2 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
plugins {
kotlin("jvm") version "1.9.20"
kotlin("plugin.serialization") version "1.9.20"
`maven-publish`
}
repositories {
mavenCentral()
maven {
url = uri("https://jitpack.io")
}
maven {
url = uri("https://jcenter.bintray.com")
}
}
java {
sourceCompatibility = JavaVersion.VERSION_19
targetCompatibility = JavaVersion.VERSION_19
withSourcesJar()
withJavadocJar()
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
// Do not use, no effect; will be overridden by kotlinDslPluginOptions.jvmTarget, see KotlinDslCompilerPlugins.
kotlinOptions.jvmTarget = JavaVersion.VERSION_19.toString()
}
dependencies {
implementation(kotlin("stdlib"))
implementation(kotlin("reflect"))
implementation("org.slf4j:slf4j-api:2.0.5")
implementation("ch.qos.logback:logback-classic:1.4.5")
implementation("ch.qos.logback:logback-core:1.4.5")
implementation("io.github.microutils:kotlin-logging-jvm:3.0.4")
implementation("org.reflections:reflections:0.10.2")
implementation("com.github.ajalt.mordant:mordant:2.2.0")
implementation("com.squareup.okhttp3:okhttp:4.11.0")
implementation("org.yaml:snakeyaml:2.2")
implementation("org.apache.commons:commons-text:1.10.0")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.2")
testImplementation(kotlin("test"))
testImplementation("com.squareup.okhttp3:mockwebserver:4.11.0")
}
publishing {
repositories {
maven {
name = "Kotlin-Utils"
url = uri("https://maven.pkg.github.com/Emre-One/kotlin-utils")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
publications {
register<MavenPublication>("gpr") {
groupId = "tr.emreone"
artifactId = "kotlin-utils"
from(components["java"])
}
}
}
tasks {
test {
useJUnitPlatform()
}
}