Compare commits

..

3 commits

Author SHA1 Message Date
owlsys 048783f9b3 Merge branch 'mistress' into TheKodeToad/run-config-adapter
All checks were successful
Publish to snapshot maven / build (push) Successful in 16s
2024-05-18 10:48:09 -04:00
moehreag 12d11d478c add more informational logging
All checks were successful
Publish to snapshot maven / build (push) Successful in 18s
2024-05-18 13:39:17 +02:00
moehreag 9309d666bf fix plugin publishing
All checks were successful
Publish to snapshot maven / build (push) Successful in 17s
2024-05-18 13:29:35 +02:00
2 changed files with 5 additions and 2 deletions

View file

@ -15,6 +15,6 @@ jobs:
- name: Build
run: |
chmod +x ./gradlew
./gradlew publishPluginMavenPublicationToEsnesnonSnapshotsMavenRepository \
./gradlew publishAllPublicationsToEsnesnonSnapshotsMavenRepository \
-PEsnesnonSnapshotsMavenUsername=${{ secrets.MAVEN_PUSH_USER }} \
-PEsnesnonSnapshotsMavenPassword=${{ secrets.MAVEN_PUSH_TOKEN }}

View file

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