add more informational logging
All checks were successful
Publish to snapshot maven / build (push) Successful in 18s

This commit is contained in:
moehreag 2024-05-18 13:39:17 +02:00
parent 9309d666bf
commit 12d11d478c

View file

@ -29,6 +29,7 @@ fun Project.minecraft(
NonsenseGradlePlugin.remappedGameJarPath = remappedJar NonsenseGradlePlugin.remappedGameJarPath = remappedJar
println("Time to setup Minecraft!") println("Time to setup Minecraft!")
if (remappedJar.notExists()) { if (remappedJar.notExists()) {
println("Remapping the game...")
val mapper = Mapper(ProguardParser.read(MojmapProvider.get(version).orElseThrow()).reverse()) val mapper = Mapper(ProguardParser.read(MojmapProvider.get(version).orElseThrow()).reverse())
val paramMappings = ParchmentProvider.getParchment( val paramMappings = ParchmentProvider.getParchment(
version, parchmentVersion, version, parchmentVersion,
@ -37,16 +38,18 @@ fun Project.minecraft(
) )
NonsenseRemapper.remap(mapper, clientJar, remappedJar, true, paramMappings) NonsenseRemapper.remap(mapper, clientJar, remappedJar, true, paramMappings)
} }
println("Adding dependencies...")
VersionChecker.getDependencies(version) { VersionChecker.getDependencies(version) {
dependencies.add("implementation", it) dependencies.add("implementation", it)
} }
dependencies.add("implementation", "net.minecraft:client:$version:remapped") dependencies.add("implementation", "net.minecraft:client:$version:remapped")
println("Generating run configurations...")
RunConfigGenerator.generate(this) RunConfigGenerator.generate(this)
println("Done!")
} else { } else {
println("Invalid version! $version") println("Invalid version! $version")
error("Invalid minecraft version provided: $version") error("Invalid minecraft version provided: $version")
} }
println("Minecraft!")
return this return this
} }