diff --git a/build-logic/src/main/kotlin/vb.base-conventions.gradle.kts b/build-logic/src/main/kotlin/vb.base-conventions.gradle.kts index 377b40a1..0d4094c9 100644 --- a/build-logic/src/main/kotlin/vb.base-conventions.gradle.kts +++ b/build-logic/src/main/kotlin/vb.base-conventions.gradle.kts @@ -5,7 +5,7 @@ plugins { tasks { // Variable replacements 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") } } @@ -22,4 +22,4 @@ tasks { java { javaTarget(17) withSourcesJar() -} \ No newline at end of file +} diff --git a/build.gradle.kts b/build.gradle.kts index f32152e1..f5f6243f 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -14,6 +14,7 @@ val main = setOf( projects.viabackwardsCommon, projects.viabackwardsBukkit, projects.viabackwardsVelocity, + projects.viabackwardsSponge, projects.viabackwardsFabric ).map { it.dependencyProject } diff --git a/settings.gradle.kts b/settings.gradle.kts index c6d9406c..312d288c 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -24,6 +24,7 @@ includeBuild("build-logic") setupViaSubproject("common") setupViaSubproject("bukkit") setupViaSubproject("velocity") +setupViaSubproject("sponge") setupViaSubproject("fabric") setupSubproject("viabackwards") { diff --git a/sponge/src/main/resources/META-INF/sponge_plugins.json b/sponge/src/main/resources/META-INF/sponge_plugins.json new file mode 100644 index 00000000..3490a648 --- /dev/null +++ b/sponge/src/main/resources/META-INF/sponge_plugins.json @@ -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}" + } + ] +} diff --git a/universal/build.gradle.kts b/universal/build.gradle.kts index b33b8178..3dbd030c 100644 --- a/universal/build.gradle.kts +++ b/universal/build.gradle.kts @@ -8,6 +8,7 @@ dependencies { api(projects.viabackwardsBukkit) api(projects.viabackwardsVelocity) api(projects.viabackwardsFabric) + api(projects.viabackwardsSponge) } tasks {