Files
dmg 12c0313947
Release / release (push) Has been cancelled
CI / build (push) Has been cancelled
feat: add Spigot event producer
2026-08-01 11:49:07 -04:00

55 lines
1.3 KiB
Kotlin

plugins {
java
}
group = "games.dmg"
version = providers.gradleProperty("releaseVersion")
.orElse("0.1.0-SNAPSHOT")
.get()
repositories {
mavenCentral()
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
tasks.withType<JavaCompile>().configureEach {
options.compilerArgs.add("-Xlint:deprecation")
}
dependencies {
compileOnly("org.spigotmc:spigot-api:26.2-R0.1-SNAPSHOT")
implementation("org.xerial:sqlite-jdbc:3.50.3.0")
testImplementation("org.spigotmc:spigot-api:26.2-R0.1-SNAPSHOT")
testImplementation(platform("org.junit:junit-bom:5.13.4"))
testImplementation("org.junit.jupiter:junit-jupiter")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
tasks.test {
useJUnitPlatform()
}
val pluginVersion = version
tasks.processResources {
filesMatching("plugin.yml") {
expand("version" to pluginVersion)
}
}
tasks.jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes["Multi-Release"] = "true"
}
from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) })
exclude("META-INF/*.SF", "META-INF/*.DSA", "META-INF/*.RSA")
}