Define as Sponge plugin for ViaSponge (#892)

This commit is contained in:
EnZaXD 2024-10-02 10:43:15 +02:00 committed by GitHub
parent f4253641e1
commit 904c83f341
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 67 additions and 2 deletions

View File

@ -5,7 +5,7 @@ plugins {
tasks { tasks {
// Variable replacements // Variable replacements
processResources { processResources {
filesMatching(listOf("plugin.yml", "fabric.mod.json")) { filesMatching(listOf("plugin.yml", "META-INF/sponge_plugins.json", "fabric.mod.json")) {
expand("version" to project.version, "description" to project.description, "url" to "https://viaversion.com/backwards") expand("version" to project.version, "description" to project.description, "url" to "https://viaversion.com/backwards")
} }
} }
@ -22,4 +22,4 @@ tasks {
java { java {
javaTarget(17) javaTarget(17)
withSourcesJar() withSourcesJar()
} }

View File

@ -14,6 +14,7 @@ val main = setOf(
projects.viabackwardsCommon, projects.viabackwardsCommon,
projects.viabackwardsBukkit, projects.viabackwardsBukkit,
projects.viabackwardsVelocity, projects.viabackwardsVelocity,
projects.viabackwardsSponge,
projects.viabackwardsFabric projects.viabackwardsFabric
).map { it.dependencyProject } ).map { it.dependencyProject }

View File

@ -24,6 +24,7 @@ includeBuild("build-logic")
setupViaSubproject("common") setupViaSubproject("common")
setupViaSubproject("bukkit") setupViaSubproject("bukkit")
setupViaSubproject("velocity") setupViaSubproject("velocity")
setupViaSubproject("sponge")
setupViaSubproject("fabric") setupViaSubproject("fabric")
setupSubproject("viabackwards") { setupSubproject("viabackwards") {

View File

@ -0,0 +1,62 @@
{
"loader": {
"name": "java_plain",
"version": "1.0"
},
"license": "GNU GPLv3",
"global": {
"version": "${version}",
"links": {
"source": "https://github.com/ViaVersion/ViaBackwards",
"issues": "https://github.com/ViaVersion/ViaBackwards/issues"
},
"contributors": [
{
"name": "Matsv",
"description": "Maintainer"
},
{
"name": "kennytv",
"description": "Maintainer"
},
{
"name": "Gerrygames",
"description": "Contributor"
},
{
"name": "creeper123123321",
"description": "Contributor"
},
{
"name": "ForceUpdate1",
"description": "Contributor"
},
{
"name": "EnZaXD",
"description": "Maintainer"
}
],
"dependencies": [
{
"id": "spongeapi",
"version": "8.0.0"
},
{
"id": "viasponge",
"version": "1.1.0"
},
{
"id": "viaversion",
"version": "[5.0.4-SNAPSHOT,)"
}
]
},
"plugins": [
{
"id": "viabackwards",
"name": "ViaBackwards",
"entrypoint": "com.viaversion.sponge.util.DummyEntrypoint",
"description": "${description}"
}
]
}

View File

@ -8,6 +8,7 @@ dependencies {
api(projects.viabackwardsBukkit) api(projects.viabackwardsBukkit)
api(projects.viabackwardsVelocity) api(projects.viabackwardsVelocity)
api(projects.viabackwardsFabric) api(projects.viabackwardsFabric)
api(projects.viabackwardsSponge)
} }
tasks { tasks {