2022-09-04 20:59:30 +03:00
|
|
|
import space.kscience.gradle.useApache2Licence
|
|
|
|
import space.kscience.gradle.useSPCTeam
|
|
|
|
|
2019-07-17 14:21:37 +03:00
|
|
|
plugins {
|
2022-07-29 15:58:02 +03:00
|
|
|
id("space.kscience.gradle.project")
|
2024-02-18 15:05:56 +03:00
|
|
|
id("org.jetbrains.kotlinx.kover") version "0.7.6"
|
2019-07-17 14:21:37 +03:00
|
|
|
}
|
|
|
|
|
2024-04-15 17:57:00 +03:00
|
|
|
val attributesVersion by extra("0.2.0")
|
2024-03-27 07:44:53 +03:00
|
|
|
|
2019-02-22 13:52:35 +03:00
|
|
|
allprojects {
|
2019-01-04 18:12:28 +03:00
|
|
|
repositories {
|
2022-03-08 23:15:48 +03:00
|
|
|
maven("https://repo.kotlin.link")
|
2021-06-19 16:52:26 +03:00
|
|
|
maven("https://oss.sonatype.org/content/repositories/snapshots")
|
2020-10-29 21:09:11 +03:00
|
|
|
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"
|
2024-07-07 11:02:49 +03:00
|
|
|
version = "0.4.1-dev"
|
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 {
|
2021-04-10 15:20:09 +03:00
|
|
|
if (name.startsWith("kmath")) apply<MavenPublishPlugin>()
|
2021-03-22 14:32:08 +03:00
|
|
|
|
2022-06-14 16:27:32 +03:00
|
|
|
plugins.withId("org.jetbrains.dokka") {
|
2021-04-28 14:03:28 +03:00
|
|
|
tasks.withType<org.jetbrains.dokka.gradle.DokkaTaskPartial> {
|
2021-07-16 21:12:14 +03:00
|
|
|
dependsOn(tasks["assemble"])
|
2021-04-28 14:03:28 +03:00
|
|
|
|
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(
|
2024-02-18 15:05:56 +03:00
|
|
|
uri("https://github.com/SciProgCentre/kmath/tree/master/${this@subprojects.name}/$kotlinDirPath").toURL()
|
2021-07-16 21:12:14 +03:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2021-04-28 14:03:28 +03:00
|
|
|
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",
|
|
|
|
)
|
2021-07-03 13:11:47 +03:00
|
|
|
|
|
|
|
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 {
|
2022-09-04 20:59:30 +03:00
|
|
|
pom("https://github.com/SciProgCentre/kmath") {
|
|
|
|
useApache2Licence()
|
|
|
|
useSPCTeam()
|
|
|
|
}
|
2024-03-27 09:11:12 +03:00
|
|
|
repository("spc", "https://maven.sciprog.center/kscience")
|
2023-05-26 11:38:50 +03:00
|
|
|
sonatype("https://oss.sonatype.org")
|
2021-02-21 16:13:40 +03:00
|
|
|
}
|
|
|
|
|
2023-05-12 20:57:55 +03:00
|
|
|
apiValidation.nonPublicMarkers.add("space.kscience.kmath.UnstableKMathAPI")
|
2022-08-04 09:54:59 +03:00
|
|
|
|
2024-03-08 10:18:32 +03:00
|
|
|
val multikVersion by extra("0.2.3")
|