forked from kscience/kmath
31 lines
791 B
Plaintext
31 lines
791 B
Plaintext
plugins {
|
|
`kotlin-dsl`
|
|
`version-catalog`
|
|
alias(npmlibs.plugins.kotlin.plugin.serialization)
|
|
}
|
|
|
|
java.targetCompatibility = JavaVersion.VERSION_11
|
|
|
|
repositories {
|
|
maven("https://repo.kotlin.link")
|
|
mavenCentral()
|
|
gradlePluginPortal()
|
|
}
|
|
|
|
val toolsVersion: String by extra
|
|
val kotlinVersion = npmlibs.versions.kotlin.asProvider().get()
|
|
val benchmarksVersion = "0.4.2"
|
|
|
|
dependencies {
|
|
api("ru.mipt.npm:gradle-tools:$toolsVersion")
|
|
//plugins form benchmarks
|
|
api("org.jetbrains.kotlinx:kotlinx-benchmark-plugin:$benchmarksVersion")
|
|
api("org.jetbrains.kotlin:kotlin-allopen:$kotlinVersion")
|
|
//to be used inside build-script only
|
|
implementation(npmlibs.kotlinx.serialization.json)
|
|
}
|
|
|
|
kotlin.sourceSets.all {
|
|
languageSettings.optIn("kotlin.OptIn")
|
|
}
|