FeederOldUI/jsonfeed-parser/build.gradle.kts

44 lines
1.3 KiB
Text
Raw Normal View History

2024-05-12 20:31:16 +02:00
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm")
`java-library`
}
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions.jvmTarget = "1.8"
configurations.all {
resolutionStrategy {
failOnVersionConflict()
val kotlin_version: String by project
val okio_version: String by project
force("com.squareup.okio:okio:$okio_version")
force("org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version")
force("org.jetbrains.kotlin:kotlin-stdlib-common:$kotlin_version")
force("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version")
force("org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version")
force("org.jetbrains.kotlin:kotlin-reflect:$kotlin_version")
}
}
dependencies {
val kotlin_version: String by project
val okhttp_version: String by project
val moshi_version: String by project
implementation("org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version")
api(platform("com.squareup.okhttp3:okhttp-bom:$okhttp_version"))
api("com.squareup.okhttp3:okhttp")
api("com.squareup.moshi:moshi:$moshi_version")
// tests
testImplementation("org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version")
testImplementation("junit:junit:4.12")
}