2020-09-20 12:36:48 +03:00
|
|
|
import org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension
|
|
|
|
import scientifik.ScientifikPublishPlugin
|
|
|
|
|
2019-07-17 14:21:37 +03:00
|
|
|
plugins {
|
2020-05-06 10:50:08 +03:00
|
|
|
id("scientifik.publish") apply false
|
2020-09-14 22:48:02 +03:00
|
|
|
id("org.jetbrains.changelog") version "0.4.0"
|
2019-07-17 14:21:37 +03:00
|
|
|
}
|
|
|
|
|
2020-09-14 22:34:45 +03:00
|
|
|
val kmathVersion by extra("0.1.4")
|
2019-07-17 14:21:37 +03:00
|
|
|
val bintrayRepo by extra("scientifik")
|
|
|
|
val githubProject by extra("kmath")
|
2018-11-20 22:09:07 +03:00
|
|
|
|
2019-02-22 13:52:35 +03:00
|
|
|
allprojects {
|
2019-01-04 18:12:28 +03:00
|
|
|
repositories {
|
2018-12-24 15:19:35 +03:00
|
|
|
jcenter()
|
2019-07-17 14:21:37 +03:00
|
|
|
maven("https://dl.bintray.com/kotlin/kotlinx")
|
2020-06-11 10:10:39 +03:00
|
|
|
mavenCentral()
|
2020-07-26 07:17:47 +03:00
|
|
|
maven("https://dl.bintray.com/hotkeytlt/maven")
|
2018-12-24 15:19:35 +03:00
|
|
|
}
|
2019-06-08 16:25:51 +03:00
|
|
|
|
2020-09-12 14:59:12 +03:00
|
|
|
group = "kscience.kmath"
|
2019-04-07 09:18:06 +03:00
|
|
|
version = kmathVersion
|
2020-09-12 14:59:12 +03:00
|
|
|
|
|
|
|
afterEvaluate {
|
2020-09-20 12:36:48 +03:00
|
|
|
extensions.findByType<KotlinProjectExtension>()?.run {
|
|
|
|
sourceSets.all {
|
|
|
|
languageSettings.useExperimentalAnnotation("kotlin.contracts.ExperimentalContracts")
|
2020-09-12 14:59:12 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-04-07 09:18:06 +03:00
|
|
|
}
|
2019-01-31 18:19:02 +03:00
|
|
|
|
2019-04-07 09:18:06 +03:00
|
|
|
subprojects {
|
2020-09-20 12:36:48 +03:00
|
|
|
if (name.startsWith("kmath"))
|
|
|
|
apply<ScientifikPublishPlugin>()
|
2019-07-17 14:21:37 +03:00
|
|
|
}
|