2019-01-13 10:42:53 +03:00
|
|
|
plugins {
|
|
|
|
kotlin("jvm")
|
2019-02-22 13:52:35 +03:00
|
|
|
`maven-publish`
|
2019-01-13 10:42:53 +03:00
|
|
|
}
|
|
|
|
|
2019-01-21 10:22:37 +03:00
|
|
|
description = "Commons math binding for kmath"
|
|
|
|
|
2019-01-13 10:42:53 +03:00
|
|
|
dependencies {
|
|
|
|
api(project(":kmath-core"))
|
2019-04-26 21:36:28 +03:00
|
|
|
api(project(":kmath-coroutines"))
|
2019-01-13 10:42:53 +03:00
|
|
|
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-23 22:31:05 +03:00
|
|
|
classifier = "sources"
|
2019-02-22 13:52:35 +03:00
|
|
|
from(sourceSets.main.get().allSource)
|
|
|
|
}
|
|
|
|
|
|
|
|
publishing {
|
|
|
|
publications {
|
2019-04-23 22:31:05 +03:00
|
|
|
register("jvm", MavenPublication::class) {
|
2019-02-22 13:52:35 +03:00
|
|
|
from(components["java"])
|
|
|
|
artifact(sourcesJar.get())
|
|
|
|
}
|
|
|
|
}
|
2019-04-23 22:31:05 +03:00
|
|
|
}
|