Compare commits
No commits in common. "048783f9b34e1cc8ad65f525fd277e8950251304" and "d52b2632805afd98212ebbb1b495c3854032be24" have entirely different histories.
048783f9b3
...
d52b263280
|
@ -15,6 +15,6 @@ jobs:
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
chmod +x ./gradlew
|
chmod +x ./gradlew
|
||||||
./gradlew publishAllPublicationsToEsnesnonSnapshotsMavenRepository \
|
./gradlew publishPluginMavenPublicationToEsnesnonSnapshotsMavenRepository \
|
||||||
-PEsnesnonSnapshotsMavenUsername=${{ secrets.MAVEN_PUSH_USER }} \
|
-PEsnesnonSnapshotsMavenUsername=${{ secrets.MAVEN_PUSH_USER }} \
|
||||||
-PEsnesnonSnapshotsMavenPassword=${{ secrets.MAVEN_PUSH_TOKEN }}
|
-PEsnesnonSnapshotsMavenPassword=${{ secrets.MAVEN_PUSH_TOKEN }}
|
||||||
|
|
|
@ -29,7 +29,6 @@ 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,
|
||||||
|
@ -38,18 +37,16 @@ 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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue