2023-08-27 04:47:07 +02:00
|
|
|
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension
|
|
|
|
|
2022-03-16 22:00:41 +01:00
|
|
|
plugins {
|
2023-08-27 04:47:07 +02:00
|
|
|
kotlin("jvm") version "1.9.0"
|
2023-08-29 03:47:01 +02:00
|
|
|
alias(libs.plugins.binary.compatibility.validator)
|
2023-08-27 04:47:07 +02:00
|
|
|
`maven-publish`
|
|
|
|
signing
|
|
|
|
java
|
2022-03-16 22:00:41 +01:00
|
|
|
}
|
2023-09-06 05:23:26 +02:00
|
|
|
|
2023-08-27 04:47:07 +02:00
|
|
|
val publicationVersion = project.version.toString()
|
|
|
|
|
|
|
|
subprojects {
|
2023-09-06 05:23:26 +02:00
|
|
|
apply(plugin = "maven-publish")
|
2023-08-27 04:47:07 +02:00
|
|
|
apply(plugin = "signing")
|
|
|
|
apply(plugin = "java")
|
|
|
|
apply(plugin ="kotlin")
|
2023-09-06 05:23:26 +02:00
|
|
|
|
2023-10-14 19:09:05 +02:00
|
|
|
version = pulicationVersion
|
2023-08-27 04:47:07 +02:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
mavenLocal()
|
|
|
|
maven { url = uri("https://jitpack.io") }
|
|
|
|
google()
|
|
|
|
}
|
|
|
|
|
|
|
|
java {
|
|
|
|
withJavadocJar()
|
|
|
|
withSourcesJar()
|
|
|
|
}
|
|
|
|
|
|
|
|
configure<KotlinJvmProjectExtension> {
|
|
|
|
kotlin { jvmToolchain(11) }
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks {
|
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
testLogging {
|
|
|
|
events("PASSED", "SKIPPED", "FAILED")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|