kmath/buildSrc/build.gradle.kts

31 lines
791 B
Plaintext
Raw Permalink Normal View History

2021-05-14 22:23:28 +03:00
plugins {
`kotlin-dsl`
`version-catalog`
alias(npmlibs.plugins.kotlin.plugin.serialization)
2021-05-14 22:23:28 +03:00
}
java.targetCompatibility = JavaVersion.VERSION_11
2021-06-15 09:18:40 +03:00
repositories {
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
}
val toolsVersion: String by extra
val kotlinVersion = npmlibs.versions.kotlin.asProvider().get()
2022-01-25 19:02:35 +03:00
val benchmarksVersion = "0.4.2"
2021-06-15 09:18:40 +03:00
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)
2021-06-15 09:18:40 +03:00
}
kotlin.sourceSets.all {
languageSettings.optIn("kotlin.OptIn")
2021-06-15 09:18:40 +03:00
}