32 lines
659 B
Plaintext
32 lines
659 B
Plaintext
plugins {
|
|
kotlin("jvm")
|
|
`maven-publish`
|
|
}
|
|
|
|
val specifyKotlinAsDependency: String by project
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation("org.jetbrains.kotlin:kotlin-test")
|
|
implementation(project(":core"))
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
create<MavenPublication>("mavenJava") {
|
|
from(components["java"])
|
|
artifact(tasks["sourceJar"])
|
|
|
|
pom {
|
|
dependencies {
|
|
if (specifyKotlinAsDependency.toBoolean()) implementation(kotlin("stdlib"))
|
|
implementation(project(":core"))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|