Cleanup buildscript, add github actions

This commit is contained in:
Konicai 2022-10-16 20:21:29 -04:00
parent 5a805bc688
commit 7bf9b92cbb
No known key found for this signature in database
GPG key ID: 710D09287708C823
4 changed files with 13 additions and 25 deletions

View file

@ -19,6 +19,13 @@ jobs:
uses: snickerbockers/submodules-init@v4
- name: Build with Gradle
run: ./gradlew build
- name: Archive artifacts (Geyser Fabric)
uses: actions/upload-artifact@v2
if: success()
with:
name: Geyser Fabric
path: bootstrap/fabric/build/libs/Geyser-Fabric.jar
- name: Archive artifacts (Geyser Standalone)
uses: actions/upload-artifact@v2
if: success()

View file

@ -51,21 +51,6 @@ repositories {
}
tasks {
processResources {
// inputs.property "version", project.version
//
// filesMatching("fabric.mod.json") {
// expand "version": project.version
// }
}
// ensure that the encoding is set to UTF-8, no matter what the system default is
// this fixes some edge cases with special characters not displaying correctly
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
compileJava {
options.encoding = "UTF-8"
}
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this task, sources will not be generated.
@ -79,11 +64,6 @@ tasks {
relocate("org.yaml", "org.geysermc.relocate.yaml") // https://github.com/CardboardPowered/cardboard/issues/139
relocate("com.fasterxml.jackson", "org.geysermc.relocate.jackson")
relocate("net.kyori", "org.geysermc.relocate.kyori")
archiveClassifier.set("unshaded") // We don't want it included in the archived artifacts
}
jar {
from("LICENSE")
}
remapJar {

View file

@ -1,14 +1,14 @@
{
"schemaVersion": 1,
"id": "geyser-fabric",
"id": "${id}-fabric",
"version": "${version}",
"name": "Geyser-Fabric",
"name": "${name}-Fabric",
"description": "A bridge/proxy allowing you to connect to Minecraft: Java Edition servers with Minecraft: Bedrock Edition. ",
"authors": [
"GeyserMC"
"${author}"
],
"contact": {
"website": "https://geysermc.org",
"website": "${url}",
"repo": "https://github.com/GeyserMC/Geyser-Fabric"
},
"license": "MIT",

View file

@ -9,7 +9,8 @@ dependencies {
tasks {
processResources {
filesMatching(listOf("plugin.yml", "bungee.yml", "velocity-plugin.json", "META-INF/sponge_plugins.json")) {
// Spigot, BungeeCord, Velocity, Sponge, Fabric
filesMatching(listOf("plugin.yml", "bungee.yml", "velocity-plugin.json", "META-INF/sponge_plugins.json", "fabric.mod.json")) {
expand(
"id" to "geyser",
"name" to "Geyser",