Move intermediary jars to extra directory
This commit is contained in:
parent
370e8bdd07
commit
cc5c1a8d1c
2 changed files with 10 additions and 3 deletions
|
@ -18,7 +18,8 @@ Project SDK to the Java 1.8 JDK. Then click on the sync button in IntelliJ, and
|
||||||
called `Minecraft Client`. If it doesn't then try relaunching your IntelliJ. **Warning for Mac users**: You might have to remove the `-XStartOnFirstThread` vm argument from your run configuration. In the future, that should be handled by the plugin, but for now you'll probably have to do that manually.
|
called `Minecraft Client`. If it doesn't then try relaunching your IntelliJ. **Warning for Mac users**: You might have to remove the `-XStartOnFirstThread` vm argument from your run configuration. In the future, that should be handled by the plugin, but for now you'll probably have to do that manually.
|
||||||
|
|
||||||
To export your project, run the `gradle build` task, and give other people the
|
To export your project, run the `gradle build` task, and give other people the
|
||||||
file `build/libs/<modid>-<version>-all.jar`
|
file `build/libs/<modid>-<version>.jar`. Ignore the jars in the `build/badjars` folder. Those are intermediary jars that
|
||||||
|
are used by the build system but *do not work* in a normal forge installation.
|
||||||
|
|
||||||
### For those who have not an attention span
|
### For those who have not an attention span
|
||||||
|
|
||||||
|
|
|
@ -90,17 +90,23 @@ tasks.withType(Jar::class) {
|
||||||
|
|
||||||
|
|
||||||
val remapJar by tasks.named<net.fabricmc.loom.task.RemapJarTask>("remapJar") {
|
val remapJar by tasks.named<net.fabricmc.loom.task.RemapJarTask>("remapJar") {
|
||||||
archiveClassifier.set("all")
|
archiveClassifier.set("")
|
||||||
from(tasks.shadowJar)
|
from(tasks.shadowJar)
|
||||||
input.set(tasks.shadowJar.get().archiveFile)
|
input.set(tasks.shadowJar.get().archiveFile)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.jar {
|
||||||
|
archiveClassifier.set("without-deps")
|
||||||
|
destinationDirectory.set(layout.buildDirectory.dir("badjars"))
|
||||||
|
}
|
||||||
|
|
||||||
tasks.shadowJar {
|
tasks.shadowJar {
|
||||||
|
destinationDirectory.set(layout.buildDirectory.dir("badjars"))
|
||||||
archiveClassifier.set("all-dev")
|
archiveClassifier.set("all-dev")
|
||||||
configurations = listOf(shadowImpl)
|
configurations = listOf(shadowImpl)
|
||||||
doLast {
|
doLast {
|
||||||
configurations.forEach {
|
configurations.forEach {
|
||||||
println("Config: ${it.files}")
|
println("Copying jars into mod: ${it.files}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue