-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
54 lines (46 loc) · 1.34 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "2.0.0"
id("maven-publish")
}
group = "io.github.xibalbam"
version = "1.1"
repositories {
mavenCentral()
maven ("https://jitpack.io")
}
dependencies {
implementation("io.ktor:ktor-client-cio-jvm:2.3.11")
implementation("io.ktor:ktor-client-logging-jvm:2.3.11")
testImplementation(kotlin("test"))
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.3")
implementation("io.ktor:ktor-client-core:2.3.11")
implementation("io.ktor:ktor-client-cio:2.3.11")
implementation("io.ktor:ktor-client-content-negotiation:2.3.11")
implementation("io.ktor:ktor-serialization-gson:2.3.11")
implementation("io.ktor:ktor-client-logging:2.3.11")
implementation("com.google.code.gson:gson:2.10.1")
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(21)
}
tasks.withType<KotlinCompile>().configureEach {
compilerOptions {
freeCompilerArgs.add("-opt-in=kotlin.ExperimentalStdlibApi")
}
}
afterEvaluate {
publishing {
publications {
create<MavenPublication>("jitpack") {
from(components["java"])
groupId = "fr.xibalba"
artifactId = "pronotekt"
version = project.version.toString()
}
}
}
}