2021-05-14 22:23:28 +03:00
|
|
|
plugins {
|
2024-04-30 19:41:34 +03:00
|
|
|
kotlin("jvm") version "1.9.23"
|
2021-05-14 22:23:28 +03:00
|
|
|
`kotlin-dsl`
|
2022-01-04 13:15:50 +03:00
|
|
|
`version-catalog`
|
2021-05-14 22:23:28 +03:00
|
|
|
}
|
|
|
|
|
2021-06-15 09:18:40 +03:00
|
|
|
repositories {
|
2022-03-08 23:15:48 +03:00
|
|
|
mavenLocal()
|
2021-06-19 16:52:26 +03:00
|
|
|
maven("https://repo.kotlin.link")
|
2021-06-15 09:18:40 +03:00
|
|
|
mavenCentral()
|
2021-06-19 16:52:26 +03:00
|
|
|
gradlePluginPortal()
|
2021-06-15 09:18:40 +03:00
|
|
|
}
|
|
|
|
|
2022-12-31 15:02:52 +03:00
|
|
|
val toolsVersion = spclibs.versions.tools.get()
|
|
|
|
val kotlinVersion = spclibs.versions.kotlin.asProvider().get()
|
|
|
|
val benchmarksVersion = spclibs.versions.kotlinx.benchmark.get()
|
2022-01-04 13:15:50 +03:00
|
|
|
|
2021-06-15 09:18:40 +03:00
|
|
|
dependencies {
|
2022-07-29 15:58:02 +03:00
|
|
|
api("space.kscience:gradle-tools:$toolsVersion")
|
2022-01-04 13:15:50 +03:00
|
|
|
//plugins form benchmarks
|
2024-02-18 12:27:46 +03:00
|
|
|
api("org.jetbrains.kotlinx:kotlinx-benchmark-plugin:$benchmarksVersion")
|
2022-12-31 15:02:52 +03:00
|
|
|
//api("org.jetbrains.kotlin:kotlin-allopen:$kotlinVersion")
|
2022-01-04 13:15:50 +03:00
|
|
|
//to be used inside build-script only
|
2022-12-31 15:02:52 +03:00
|
|
|
//implementation(spclibs.kotlinx.serialization.json)
|
|
|
|
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.14.+")
|
2021-06-15 09:18:40 +03:00
|
|
|
}
|
|
|
|
|
2024-03-27 09:11:12 +03:00
|
|
|
kotlin {
|
|
|
|
jvmToolchain {
|
2023-05-12 20:57:55 +03:00
|
|
|
languageVersion.set(JavaLanguageVersion.of(11))
|
|
|
|
}
|
|
|
|
sourceSets.all {
|
|
|
|
languageSettings.optIn("kotlin.OptIn")
|
|
|
|
}
|
2021-06-15 09:18:40 +03:00
|
|
|
}
|