mirror of
https://github.com/GeyserMC/Geyser.git
synced 2026-01-04 15:31:36 +00:00
Preparations for using gametest framework
This commit is contained in:
@@ -2,9 +2,9 @@ plugins {
|
||||
id("geyser.modded-conventions")
|
||||
}
|
||||
|
||||
architectury {
|
||||
common("neoforge", "fabric")
|
||||
}
|
||||
//architectury {
|
||||
// common("neoforge", "fabric")
|
||||
//}
|
||||
|
||||
loom {
|
||||
mixin.defaultRefmapName.set("geyser-refmap.json")
|
||||
|
||||
@@ -3,9 +3,28 @@ plugins {
|
||||
id("geyser.modrinth-uploading-conventions")
|
||||
}
|
||||
|
||||
architectury {
|
||||
platformSetupLoomIde()
|
||||
fabric()
|
||||
//architectury {
|
||||
// platformSetupLoomIde()
|
||||
// fabric()
|
||||
//}
|
||||
|
||||
loom {
|
||||
mods {
|
||||
create("geyser-fabric") {
|
||||
sourceSet(sourceSets.main.get())
|
||||
sourceSet("main", projects.mod)
|
||||
sourceSet("main", projects.core)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fabricApi {
|
||||
configureTests {
|
||||
createSourceSet = true
|
||||
modId = "geyser-gametest"
|
||||
enableClientGameTests = false
|
||||
eula = true
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@@ -13,7 +32,7 @@ dependencies {
|
||||
modApi(libs.fabric.api)
|
||||
|
||||
api(project(":mod", configuration = "namedElements"))
|
||||
shadowBundle(project(path = ":mod", configuration = "transformProductionFabric"))
|
||||
//shadowBundle(project(path = ":mod", configuration = "transformProductionFabric"))
|
||||
shadowBundle(projects.core)
|
||||
includeTransitive(projects.core)
|
||||
|
||||
@@ -37,14 +56,14 @@ dependencies {
|
||||
include(libs.fabric.permissions.api)
|
||||
}
|
||||
|
||||
tasks.withType<Jar> {
|
||||
manifest.attributes["Main-Class"] = "org.geysermc.geyser.platform.fabric.GeyserFabricMain"
|
||||
}
|
||||
|
||||
relocate("org.cloudburstmc.netty")
|
||||
relocate("org.cloudburstmc.protocol")
|
||||
|
||||
tasks {
|
||||
jar {
|
||||
manifest.attributes["Main-Class"] = "org.geysermc.geyser.platform.fabric.GeyserFabricMain"
|
||||
}
|
||||
|
||||
remapJar {
|
||||
archiveBaseName.set("Geyser-Fabric")
|
||||
}
|
||||
@@ -52,6 +71,19 @@ tasks {
|
||||
remapModrinthJar {
|
||||
archiveBaseName.set("geyser-fabric")
|
||||
}
|
||||
|
||||
getByName("processGametestResources", ProcessResources::class) {
|
||||
filesMatching("fabric.mod.json") {
|
||||
expand(
|
||||
"id" to "geyser",
|
||||
"name" to "Geyser",
|
||||
"version" to project.version,
|
||||
"description" to project.description,
|
||||
"url" to "https://geysermc.org",
|
||||
"author" to "GeyserMC"
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
modrinth {
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
loom.platform=fabric
|
||||
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright (c) 2025 GeyserMC. http://geysermc.org
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*
|
||||
* @author GeyserMC
|
||||
* @link https://github.com/GeyserMC/Geyser
|
||||
*/
|
||||
|
||||
package org.geysermc.geyser.gametest;
|
||||
|
||||
public class GeyserGameTest {
|
||||
// TODO actually add gametests
|
||||
}
|
||||
13
bootstrap/mod/fabric/src/gametest/resources/fabric.mod.json
Normal file
13
bootstrap/mod/fabric/src/gametest/resources/fabric.mod.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"id": "geyser-gametest",
|
||||
"version": "1.0.0",
|
||||
"name": "Geyser-GameTest",
|
||||
"icon": "assets/geyser/icon.png",
|
||||
"environment": "*",
|
||||
"entrypoints": {
|
||||
"fabric-gametest": [
|
||||
"org.geysermc.geyser.gametest.GeyserGameTest"
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user