Skip to content

Commit b3b6bb3

Browse files
Proper include of project description
1 parent a0eb8ae commit b3b6bb3

File tree

5 files changed

+31
-21
lines changed

5 files changed

+31
-21
lines changed

buildSrc/src/main/groovy/com.viaversion.java-conventions.gradle

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,29 @@ dependencies {
4040
compileOnly "com.google.guava:guava:${project.guava_version}"
4141
}
4242

43-
archivesBaseName = project.maven_name
44-
group = project.maven_group
45-
version = project.maven_version
43+
base {
44+
archivesName = project.maven_name
45+
group = project.maven_group
46+
version = project.maven_version
47+
description = "ViaVersion addon to allow 1.8.x and 1.7.x clients on newer server versions."
48+
}
4649

4750
java.sourceCompatibility = JavaVersion.VERSION_1_8
4851

4952
tasks {
5053
// Variable replacements
5154
processResources {
52-
inputs.property "version", project.version
55+
inputs.properties(
56+
"version": project.version,
57+
"description": project.description
58+
)
5359

5460
for (final def file in ["plugin.yml", "bungee.yml", "META-INF/sponge_plugins.json", "fabric.mod.json"]) {
5561
filesMatching(file) {
56-
expand "version": version
62+
expand(
63+
"version": version,
64+
"description": description
65+
)
5766
}
5867
}
5968
}
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
name: ViaRewind
2-
version: ${version}
32
main: com.viaversion.viarewind.BukkitPlugin
4-
api-version: 1.13
5-
folia-supported: true
6-
73
authors: [Gerrygames, FlorianMichael/EnZaXD, creeper123321123]
4+
version: ${version}
5+
description: ${description}
86
website: https://viaversion.com/rewind
9-
7+
api-version: 1.13
8+
folia-supported: true
109
load: STARTUP
1110
depend: [ViaVersion]
1211
softdepend: [ViaBackwards]

fabric/src/main/resources/fabric.mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"id": "viarewind",
44
"name": "ViaRewind",
55
"version": "${version}",
6-
"description": "ViaVersion addon to allow 1.8.x and 1.7.x clients on newer server versions.",
6+
"description": "${description}",
77
"license": "GPL-3.0",
88
"contact": {
99
"homepage": "https://viaversion.com/rewind",

sponge/src/main/resources/META-INF/sponge_plugins.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
{
4141
"id": "viarewind",
4242
"name": "ViaRewind",
43-
"entrypoint": "com.viaversion.viarewind.SpongePlugin"
43+
"entrypoint": "com.viaversion.viarewind.SpongePlugin",
44+
"description": "${description}"
4445
}
4546
]
4647
}

velocity/src/main/java/com/viaversion/viarewind/VelocityPlugin.java

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,18 @@
3535
import java.util.logging.Logger;
3636

3737
@Plugin(id = "viarewind",
38-
name = "ViaRewind",
39-
version = ViaRewindPlatform.VERSION,
40-
authors = {"Gerrygames", "FlorianMichael/EnZaXD", "creeper123123321"},
41-
dependencies = {
42-
@Dependency(id = "viaversion"),
43-
@Dependency(id = "viabackwards", optional = true)
44-
},
45-
url = "https://viaversion.com/rewind"
38+
name = "ViaRewind",
39+
version = ViaRewindPlatform.VERSION,
40+
authors = {"Gerrygames", "FlorianMichael/EnZaXD", "creeper123123321"},
41+
description = "ViaVersion addon to allow 1.8.x and 1.7.x clients on newer server versions.",
42+
dependencies = {
43+
@Dependency(id = "viaversion"),
44+
@Dependency(id = "viabackwards", optional = true)
45+
},
46+
url = "https://viaversion.com/rewind"
4647
)
4748
public class VelocityPlugin implements ViaRewindPlatform {
48-
private Logger logger;
49+
private Logger logger;
4950

5051
@Inject
5152
private org.slf4j.Logger loggerSlf4j;

0 commit comments

Comments
 (0)