remove helper method for calamus/feather gen1 since loader falls back on gen2 without support for gen1
All checks were successful
Publish to snapshot maven / build (push) Successful in 26s

This commit is contained in:
moehreag 2024-08-28 17:36:07 +02:00
parent d72218f62e
commit 005dc3f185
2 changed files with 1 additions and 18 deletions

View file

@ -7,7 +7,7 @@ plugins {
} }
group = "dev.frogmc" group = "dev.frogmc"
version = "0.0.1-alpha.22" version = "0.0.1-alpha.23"
repositories { repositories {
maven { maven {

View file

@ -136,23 +136,6 @@ abstract class MinecraftConfiguration @Inject constructor(
mappingsName = "feather(${conf.version.get()})" mappingsName = "feather(${conf.version.get()})"
targetNamespace = "feather" targetNamespace = "feather"
intermediaryNamespace.set("intermediary") intermediaryNamespace.set("intermediary")
return@provider twoStepMappings(
"net.ornithemc:calamus-intermediary:${version.get()}:v2",
"net.ornithemc:feather:${conf.version.get()}:v2"
).flatten(true).renameDstNamespace(targetNamespace)
}
}
fun featherGen2(action: Action<VersionConfiguration>): Provider<MappingBundle> {
return project.provider {
val conf = objects.newInstance(VersionConfiguration::class.java)
action.execute(conf)
if (!conf.version.isPresent) {
error("No version provided for feather-gen2!")
}
mappingsName = "feather(${conf.version.get()})"
targetNamespace = "feather-gen2"
intermediaryNamespace.set("intermediary")
ProjectStorage.get(project).jarManifestProperties["Calamus-Generation"] = "2" ProjectStorage.get(project).jarManifestProperties["Calamus-Generation"] = "2"
return@provider twoStepMappings( return@provider twoStepMappings(
"net.ornithemc:calamus-intermediary-gen2:${version.get()}:v2", "net.ornithemc:calamus-intermediary-gen2:${version.get()}:v2",