49 lines
884 B
Groovy
49 lines
884 B
Groovy
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
|
|
plugins {
|
|
id 'org.jetbrains.kotlin.jvm' version '2.3.0'
|
|
id 'maven-publish'
|
|
id 'java'
|
|
}
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
mavenCentral()
|
|
}
|
|
|
|
group = 'dshackle'
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_21
|
|
targetCompatibility = JavaVersion.VERSION_21
|
|
}
|
|
|
|
compileKotlin {
|
|
compilerOptions.jvmTarget.set(JvmTarget.JVM_21)
|
|
}
|
|
compileTestKotlin {
|
|
compilerOptions.jvmTarget.set(JvmTarget.JVM_21)
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'org.yaml:snakeyaml:1.24'
|
|
testImplementation 'org.junit.jupiter:junit-jupiter:6.0.1'
|
|
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
version '1.0.0'
|
|
|
|
publishing {
|
|
publications {
|
|
mavenJava(MavenPublication) {
|
|
from components.java
|
|
}
|
|
}
|
|
repositories {
|
|
mavenLocal()
|
|
}
|
|
}
|