plugins { kotlin("jvm") } val linearAlgebraVersion: String by project val specifyKotlinAsDependency: String by project version = linearAlgebraVersion repositories { mavenCentral() } dependencies { testImplementation("org.jetbrains.kotlin:kotlin-test") implementation(project(":collect")) implementation(project(":math")) implementation(project(":core")) } publishing { publications { create("mavenJava") { from(components["java"]) artifact(tasks["sourceJar"]) pom { dependencies { if (specifyKotlinAsDependency.toBoolean()) implementation(kotlin("stdlib")) implementation(project(":collect")) implementation(project(":math")) implementation(project(":core")) } } } } }