Skip to content

Commit 904c83f

Browse files
authoredOct 2, 2024··
Define as Sponge plugin for ViaSponge (#892)
1 parent f425364 commit 904c83f

File tree

5 files changed

+67
-2
lines changed

5 files changed

+67
-2
lines changed
 

‎build-logic/src/main/kotlin/vb.base-conventions.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
tasks {
66
// Variable replacements
77
processResources {
8-
filesMatching(listOf("plugin.yml", "fabric.mod.json")) {
8+
filesMatching(listOf("plugin.yml", "META-INF/sponge_plugins.json", "fabric.mod.json")) {
99
expand("version" to project.version, "description" to project.description, "url" to "https://viaversion.com/backwards")
1010
}
1111
}
@@ -22,4 +22,4 @@ tasks {
2222
java {
2323
javaTarget(17)
2424
withSourcesJar()
25-
}
25+
}

‎build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ val main = setOf(
1414
projects.viabackwardsCommon,
1515
projects.viabackwardsBukkit,
1616
projects.viabackwardsVelocity,
17+
projects.viabackwardsSponge,
1718
projects.viabackwardsFabric
1819
).map { it.dependencyProject }
1920

‎settings.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ includeBuild("build-logic")
2424
setupViaSubproject("common")
2525
setupViaSubproject("bukkit")
2626
setupViaSubproject("velocity")
27+
setupViaSubproject("sponge")
2728
setupViaSubproject("fabric")
2829

2930
setupSubproject("viabackwards") {
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"loader": {
3+
"name": "java_plain",
4+
"version": "1.0"
5+
},
6+
"license": "GNU GPLv3",
7+
"global": {
8+
"version": "${version}",
9+
"links": {
10+
"source": "https://github.com/ViaVersion/ViaBackwards",
11+
"issues": "https://github.com/ViaVersion/ViaBackwards/issues"
12+
},
13+
"contributors": [
14+
{
15+
"name": "Matsv",
16+
"description": "Maintainer"
17+
},
18+
{
19+
"name": "kennytv",
20+
"description": "Maintainer"
21+
},
22+
{
23+
"name": "Gerrygames",
24+
"description": "Contributor"
25+
},
26+
{
27+
"name": "creeper123123321",
28+
"description": "Contributor"
29+
},
30+
{
31+
"name": "ForceUpdate1",
32+
"description": "Contributor"
33+
},
34+
{
35+
"name": "EnZaXD",
36+
"description": "Maintainer"
37+
}
38+
],
39+
"dependencies": [
40+
{
41+
"id": "spongeapi",
42+
"version": "8.0.0"
43+
},
44+
{
45+
"id": "viasponge",
46+
"version": "1.1.0"
47+
},
48+
{
49+
"id": "viaversion",
50+
"version": "[5.0.4-SNAPSHOT,)"
51+
}
52+
]
53+
},
54+
"plugins": [
55+
{
56+
"id": "viabackwards",
57+
"name": "ViaBackwards",
58+
"entrypoint": "com.viaversion.sponge.util.DummyEntrypoint",
59+
"description": "${description}"
60+
}
61+
]
62+
}

‎universal/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ dependencies {
88
api(projects.viabackwardsBukkit)
99
api(projects.viabackwardsVelocity)
1010
api(projects.viabackwardsFabric)
11+
api(projects.viabackwardsSponge)
1112
}
1213

1314
tasks {

0 commit comments

Comments
 (0)
Please sign in to comment.