kmath/build.gradle.kts

73 lines
2.3 KiB
Plaintext
Raw Permalink Normal View History

2021-07-16 21:12:14 +03:00
import java.net.URL
plugins {
2021-02-21 16:13:40 +03:00
id("ru.mipt.npm.gradle.project")
2021-11-05 16:58:13 +03:00
id("org.jetbrains.kotlinx.kover") version "0.4.1"
2021-03-31 15:39:34 +03:00
kotlin("jupyter.api") apply false
}
2019-02-22 13:52:35 +03:00
allprojects {
2019-01-04 18:12:28 +03:00
repositories {
maven("https://clojars.org/repo")
maven("https://jitpack.io")
2021-07-16 21:12:14 +03:00
maven("http://logicrunch.research.it.uu.se/maven") {
isAllowInsecureProtocol = true
}
2021-07-16 21:12:14 +03:00
2021-06-19 16:52:26 +03:00
maven("https://oss.sonatype.org/content/repositories/snapshots")
mavenCentral()
2018-12-24 15:19:35 +03:00
}
2019-06-08 16:25:51 +03:00
2021-02-18 11:17:28 +03:00
group = "space.kscience"
2021-10-18 13:18:10 +03:00
version = "0.3.0-dev-17"
2019-04-07 09:18:06 +03:00
}
2019-01-31 18:19:02 +03:00
2020-09-21 15:47:47 +03:00
subprojects {
if (name.startsWith("kmath")) apply<MavenPublishPlugin>()
2021-03-22 14:32:08 +03:00
afterEvaluate {
tasks.withType<org.jetbrains.dokka.gradle.DokkaTaskPartial> {
2021-07-16 21:12:14 +03:00
dependsOn(tasks["assemble"])
2021-03-22 14:32:08 +03:00
dokkaSourceSets.all {
2021-07-16 21:12:14 +03:00
val readmeFile = this@subprojects.projectDir.resolve("README.md")
if (readmeFile.exists()) includes.from(readmeFile)
val kotlinDirPath = "src/$name/kotlin"
val kotlinDir = file(kotlinDirPath)
if (kotlinDir.exists()) sourceLink {
localDirectory.set(kotlinDir)
remoteUrl.set(
URL("https://github.com/mipt-npm/${rootProject.name}/tree/master/${this@subprojects.name}/$kotlinDirPath")
)
}
externalDocumentationLink("https://commons.apache.org/proper/commons-math/javadocs/api-3.6.1/")
externalDocumentationLink("https://deeplearning4j.org/api/latest/")
2021-05-29 11:50:16 +03:00
externalDocumentationLink("https://axelclk.bitbucket.io/symja/javadoc/")
2021-07-16 21:12:14 +03:00
externalDocumentationLink(
"https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/",
"https://kotlin.github.io/kotlinx.coroutines/package-list",
)
externalDocumentationLink(
"https://breandan.net/kotlingrad/kotlingrad/",
"https://breandan.net/kotlingrad/kotlingrad/kotlingrad/package-list",
)
2021-03-22 14:32:08 +03:00
}
}
}
2020-09-21 15:47:47 +03:00
}
2021-07-16 21:12:14 +03:00
readme.readmeTemplate = file("docs/templates/README-TEMPLATE.md")
2020-10-19 22:51:33 +03:00
2020-12-22 18:15:24 +03:00
ksciencePublish {
2021-07-16 21:12:14 +03:00
vcs("https://github.com/mipt-npm/kmath")
space(publish = true)
sonatype(publish = true)
2021-02-21 16:13:40 +03:00
}
2021-11-05 16:58:13 +03:00
apiValidation.nonPublicMarkers.add("space.kscience.kmath.misc.UnstableKMathAPI")