2022-02-27 23:38:55 +01:00
|
|
|
plugins {
|
|
|
|
`java-library`
|
2023-03-06 03:33:24 +01:00
|
|
|
`eclipse`
|
2023-02-25 03:05:15 +01:00
|
|
|
id("net.kyori.indra")
|
2022-02-27 23:38:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2022-09-26 17:43:17 +02:00
|
|
|
compileOnly("org.checkerframework", "checker-qual", "3.19.0")
|
2022-02-27 23:38:55 +01:00
|
|
|
}
|
|
|
|
|
2023-02-25 03:05:15 +01:00
|
|
|
indra {
|
|
|
|
github("GeyserMC", "Geyser") {
|
|
|
|
ci(true)
|
|
|
|
issues(true)
|
|
|
|
scm(true)
|
|
|
|
}
|
|
|
|
mitLicense()
|
|
|
|
|
|
|
|
javaVersions {
|
|
|
|
target(16)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-27 23:38:55 +01:00
|
|
|
tasks {
|
|
|
|
processResources {
|
2022-10-17 02:21:29 +02:00
|
|
|
// Spigot, BungeeCord, Velocity, Sponge, Fabric
|
|
|
|
filesMatching(listOf("plugin.yml", "bungee.yml", "velocity-plugin.json", "META-INF/sponge_plugins.json", "fabric.mod.json")) {
|
2022-02-27 23:38:55 +01:00
|
|
|
expand(
|
2022-10-03 00:25:49 +02:00
|
|
|
"id" to "geyser",
|
2022-02-27 23:38:55 +01:00
|
|
|
"name" to "Geyser",
|
|
|
|
"version" to project.version,
|
|
|
|
"description" to project.description,
|
|
|
|
"url" to "https://geysermc.org",
|
|
|
|
"author" to "GeyserMC"
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
2022-10-03 00:25:49 +02:00
|
|
|
}
|
2023-03-06 03:33:24 +01:00
|
|
|
|
|
|
|
eclipse {
|
|
|
|
classpath.file.whenMerged {
|
|
|
|
(this as org.gradle.plugins.ide.eclipse.model.Classpath).entries.forEach { entry ->
|
|
|
|
if (entry is org.gradle.plugins.ide.eclipse.model.Library) {
|
|
|
|
entry.entryAttributes["module"] = false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|