Skip to content

Commit

Permalink
Publish gradle metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Su5eD committed Jul 4, 2024
1 parent b0c74b4 commit aad5ed2
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 12 deletions.
33 changes: 23 additions & 10 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,19 @@ sourceSets {
}
}

configurations.implementation {
extendsFrom(shade)
configurations {
implementation {
extendsFrom(shade)
}

runtimeElements {
setExtendsFrom(setOf())

outgoing {
artifacts.clear()
artifact(tasks.shadowJar)
}
}
}

repositories {
Expand Down Expand Up @@ -176,10 +187,6 @@ tasks {
archiveClassifier.set("full")
}

withType<GenerateModuleMetadata> {
isEnabled = false
}

assemble {
dependsOn(shadowJar)
}
Expand Down Expand Up @@ -222,9 +229,11 @@ open class GenerateMergedMappingsTask : DefaultTask() {
fun execute() {
// OFFICIAL -> MOJANG -> INTERMEDIARY
val yarnTree = MemoryMappingTree()
val renamer = MappingNsRenamer(yarnTree, mapOf(
MappingsNamespace.NAMED.toString() to MappingsNamespace.MOJANG.toString()
))
val renamer = MappingNsRenamer(
yarnTree, mapOf(
MappingsNamespace.NAMED.toString() to MappingsNamespace.MOJANG.toString()
)
)
MappingReader.read(inputMojangMappings.get().asFile.toPath(), renamer)
FileSystems.newFileSystem(inputYarnMappings.asFile.get().toPath()).use {
val mappings = it.getPath("mappings", "mappings.tiny")
Expand All @@ -240,7 +249,11 @@ open class GenerateMergedMappingsTask : DefaultTask() {

// OFFICIAL -> INTERMEDIARY -> MOJANG
val completed = MemoryMappingTree()
val reorder = MappingDstNsReorder(completed, MappingsNamespace.INTERMEDIARY.toString(), MappingsNamespace.MOJANG.toString())
val reorder = MappingDstNsReorder(
completed,
MappingsNamespace.INTERMEDIARY.toString(),
MappingsNamespace.MOJANG.toString()
)
val completer = MappingNsCompleter(
reorder,
mapOf(MappingsNamespace.INTERMEDIARY.toString() to MappingsNamespace.OFFICIAL.toString())
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ org.gradle.jvmargs=-Xmx3G
loom.platform=neoforge

versionMc=1.21
versionForge=21.0.4-beta
versionForge=21.0.55-beta
versionLoaderUpstream=0.15.10
versionYarn=1.21-rc1+build.1
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ pluginManagement {
}
}

rootProject.name = "fabric-loader"
rootProject.name = "forgified-fabric-loader"

0 comments on commit aad5ed2

Please sign in to comment.