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"
|
|
|
|
}
|
|
|
|
|
2023-01-03 16:59:33 +01:00
|
|
|
val ktorVersion = "2.2.2"
|
2022-06-15 16:33:27 +02:00
|
|
|
|
|
|
|
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.4")
|
|
|
|
|
|
|
|
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))
|
|
|
|
}
|
|
|
|
}
|