2022-11-01 18:55:17 +01:00
|
|
|
plugins {
|
|
|
|
`java-library`
|
|
|
|
`maven-publish`
|
|
|
|
}
|
|
|
|
|
|
|
|
version = rootProject.version
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2022-11-03 15:23:59 +01:00
|
|
|
maven("https://maven.frohnmeyer-wds.de/artifacts/")
|
2022-11-01 18:55:17 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compileOnly("org.jetbrains:annotations:23.0.0")
|
|
|
|
|
|
|
|
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.0")
|
|
|
|
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.0")
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.named<Test>("test") {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|
|
|
|
|
|
|
|
java {
|
|
|
|
withSourcesJar()
|
|
|
|
}
|
|
|
|
|
|
|
|
publishing {
|
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
|
|
|
|
|
|
|
if (project.hasProperty("maven")) {
|
|
|
|
maven {
|
|
|
|
url = uri(project.property("maven").toString())
|
|
|
|
name = "dynamic"
|
|
|
|
|
|
|
|
credentials(PasswordCredentials::class) {
|
|
|
|
username = System.getenv()["MAVEN_NAME"]
|
|
|
|
password = System.getenv()["MAVEN_TOKEN"]
|
|
|
|
}
|
|
|
|
authentication {
|
|
|
|
create<BasicAuthentication>("basic")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|