kmath/kmath-commons/build.gradle.kts

30 lines
664 B
Plaintext
Raw Normal View History

plugins {
kotlin("jvm")
2019-02-22 13:52:35 +03:00
`maven-publish`
}
description = "Commons math binding for kmath"
dependencies {
api(project(":kmath-core"))
api(project(":kmath-sequential"))
api("org.apache.commons:commons-math3:3.6.1")
testImplementation("org.jetbrains.kotlin:kotlin-test")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit")
}
2019-02-22 13:52:35 +03:00
val sourcesJar by tasks.registering(Jar::class) {
2019-04-17 12:24:06 +03:00
archiveClassifier.set("sources")
2019-02-22 13:52:35 +03:00
from(sourceSets.main.get().allSource)
}
publishing {
publications {
2019-04-17 12:24:06 +03:00
register<MavenPublication>("jvm") {
2019-02-22 13:52:35 +03:00
from(components["java"])
artifact(sourcesJar.get())
}
}
2019-04-17 12:24:06 +03:00
}