import space.kscience.gradle.useApache2Licence import space.kscience.gradle.useSPCTeam plugins { alias(spclibs.plugins.kscience.project) alias(spclibs.plugins.kotlinx.kover) } val attributesVersion by extra("0.2.0") allprojects { repositories { maven("https://repo.kotlin.link") maven("https://oss.sonatype.org/content/repositories/snapshots") mavenCentral() } group = "space.kscience" version = "0.4.1-dev" } subprojects { if (name.startsWith("kmath")) apply() plugins.withId("org.jetbrains.dokka") { tasks.withType { dependsOn(tasks["assemble"]) dokkaSourceSets.all { 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( uri("https://github.com/SciProgCentre/kmath/tree/master/${this@subprojects.name}/$kotlinDirPath").toURL() ) } externalDocumentationLink("https://commons.apache.org/proper/commons-math/javadocs/api-3.6.1/") externalDocumentationLink("https://deeplearning4j.org/api/latest/") externalDocumentationLink("https://axelclk.bitbucket.io/symja/javadoc/") 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", ) } } } } readme.readmeTemplate = file("docs/templates/README-TEMPLATE.md") ksciencePublish { pom("https://github.com/SciProgCentre/kmath") { useApache2Licence() useSPCTeam() } repository("spc", "https://maven.sciprog.center/kscience") sonatype("https://oss.sonatype.org") } apiValidation.nonPublicMarkers.add("space.kscience.kmath.UnstableKMathAPI")