54 lines
1.1 KiB
Groovy
54 lines
1.1 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'maven-publish'
|
|
}
|
|
|
|
group = 'de.winniepat'
|
|
version = '0.0.8'
|
|
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(21)
|
|
}
|
|
withSourcesJar()
|
|
withJavadocJar()
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven {url = "https://repo.papermc.io/repository/maven-public/" }
|
|
}
|
|
|
|
dependencies {
|
|
implementation("tools.jackson.core:jackson-databind:3.1.4")
|
|
implementation("tools.jackson.dataformat:jackson-dataformat-yaml:3.1.4")
|
|
|
|
testImplementation platform('org.junit:junit-bom:5.11.4')
|
|
testImplementation 'org.junit.jupiter:junit-jupiter'
|
|
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
|
implementation 'com.google.code.gson:gson:2.13.1'
|
|
}
|
|
|
|
tasks.named('test') {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
mavenJava(MavenPublication) {
|
|
from components.java
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
maven {
|
|
url = uri("https://maven.winniepat.de/repository/maven-releases/")
|
|
|
|
credentials {
|
|
username = "admin"
|
|
password = "oXIAxHoSvdm7EJhvV0BQB9Zjd0OOaunf4VUVj7zq"
|
|
}
|
|
}
|
|
}
|
|
} |