diff --git a/build-logic/src/main/kotlin/via.base-conventions.gradle.kts b/build-logic/src/main/kotlin/via.base-conventions.gradle.kts index c67bf7a5a..d094aff73 100644 --- a/build-logic/src/main/kotlin/via.base-conventions.gradle.kts +++ b/build-logic/src/main/kotlin/via.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") } } diff --git a/settings.gradle.kts b/settings.gradle.kts index 5f805ebcc..3f79ddd61 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -29,6 +29,7 @@ setupViaSubproject("common") setupViaSubproject("bukkit") setupViaSubproject("bukkit-legacy") setupViaSubproject("velocity") +setupViaSubproject("sponge") setupViaSubproject("fabric") setupSubproject("viaversion") { 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 000000000..748394f77 --- /dev/null +++ b/sponge/src/main/resources/META-INF/sponge_plugins.json @@ -0,0 +1,66 @@ +{ + "loader": { + "name": "java_plain", + "version": "1.0" + }, + "license": "GNU GPLv3", + "global": { + "version": "${version}", + "links": { + "homepage": "https://viaversion.com/", + "source": "https://github.com/ViaVersion/ViaVersion", + "issues": "https://github.com/ViaVersion/ViaVersion/issues" + }, + "contributors": [ + { + "name": "_MylesC", + "description": "Maintainer" + }, + { + "name": "creeper123123321", + "description": "Contributor" + }, + { + "name": "Gerrygames", + "description": "Contributor" + }, + { + "name": "kennytv", + "description": "Maintainer" + }, + { + "name": "Matsv", + "description": "Contributor" + }, + { + "name": "EnZaXD", + "description": "Maintainer" + }, + { + "name": "RK_01", + "description": "Contributor" + } + ], + "dependencies": [ + { + "id": "spongeapi", + "version": "8.0.0" + }, + { + "id": "viasponge", + "version": "1.1.0" + } + ], + "branding": { + "logo": "assets/viaversion/textures/logo.png" + } + }, + "plugins": [ + { + "id": "viaversion", + "name": "ViaVersion", + "entrypoint": "com.viaversion.sponge.util.DummyEntrypoint", + "description": "${description}" + } + ] +} diff --git a/sponge/src/main/resources/assets/viaversion/textures/logo.png b/sponge/src/main/resources/assets/viaversion/textures/logo.png new file mode 100644 index 000000000..7b6cbc87e Binary files /dev/null and b/sponge/src/main/resources/assets/viaversion/textures/logo.png differ diff --git a/universal/build.gradle.kts b/universal/build.gradle.kts index 3aec57adb..223746574 100644 --- a/universal/build.gradle.kts +++ b/universal/build.gradle.kts @@ -7,6 +7,7 @@ dependencies { api(projects.viaversionCommon) api(projects.viaversionBukkit) api(projects.viaversionVelocity) + api(projects.viaversionSponge) api(projects.viaversionFabric) }