Files

50 lines
1.0 KiB
Groovy
Raw Permalink Normal View History

2026-06-01 18:05:05 +02:00
plugins {
2026-06-05 14:08:07 +02:00
id 'java'
id 'maven-publish'
2026-06-01 18:05:05 +02:00
}
2026-06-05 14:08:07 +02:00
group = 'de.winniepat'
version = '0.1.1'
2026-06-01 18:05:05 +02:00
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
2026-06-05 14:08:07 +02:00
withSourcesJar()
withJavadocJar()
}
repositories {
mavenCentral()
maven {url = "https://repo.papermc.io/repository/maven-public/" }
}
dependencies {
implementation 'io.papermc.paper:paper-api:1.21.11-R0.1-SNAPSHOT'
implementation 'com.google.code.gson:gson:2.13.1'
2026-06-01 18:05:05 +02:00
}
tasks.named('test') {
useJUnitPlatform()
}
2026-06-05 14:08:07 +02:00
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
repositories {
maven {
url = uri("https://maven.winniepat.de/repository/maven-releases/")
credentials {
username = project.property("publish.username")
password = project.property("publish.password")
// the credentials from before are not valid anymore (I am not that dumb)
}
}
}
}