GitlabRepoStats/build.gradle.kts

47 lines
1.1 KiB
Plaintext
Raw Normal View History

2022-06-15 16:33:27 +02:00
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.7.0-RC"
kotlin("plugin.serialization") version "1.7.0-RC"
}
val ktorVersion = "2.0.2"
group = "nl.kallestruik"
version = "1.0"
repositories {
mavenCentral()
}
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.3")
implementation("org.jetbrains.kotlinx:kotlinx-cli:0.3.5")
2022-06-15 16:33:27 +02:00
implementation("io.ktor:ktor-client-core:$ktorVersion")
implementation("io.ktor:ktor-client-cio:$ktorVersion")
implementation("io.ktor:ktor-client-content-negotiation:$ktorVersion")
implementation("io.ktor:ktor-serialization-kotlinx-json:$ktorVersion")
testImplementation(kotlin("test"))
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
tasks.withType<Jar>() {
manifest {
attributes(
"Main-Class" to "nl.kallestruik.gitlabrepostats.MainKt"
)
}
duplicatesStrategy = DuplicatesStrategy.INCLUDE
configurations["compileClasspath"].forEach { file: File ->
from(zipTree(file.absoluteFile))
}
}