Error compiling plugin with paperweight userdev (reobfJar)
xNoobyyy opened this issue · comments
Leander Riefel commented
Error:
Execution failed for task ':reobfJar'.
> io.papermc.paperweight.PaperweightException: Execution of 'net.fabricmc.tinyremapper.Main' failed with exit code 1. Log file: D:\Coding\Utils\BuildSystem\.gradle\caches\paperweight\taskCache\reobfJar.log Classpath: C:\Users\<User>\.gradle\caches\modules-2\files-2.1\net.fabricmc\tiny-remapper\0.8.1\aee5f3aa66200b1b22b9a023029a08a0b5ac82b9\tiny-remapper-0.8.1-fat.jar
build.gradle.kts:
import net.minecrell.pluginyml.bukkit.BukkitPluginDescription
plugins {
kotlin("jvm") version "1.6.20-M1"
`java-library`
id("io.papermc.paperweight.userdev") version "1.3.5"
id("com.github.johnrengelman.shadow") version "7.1.2"
id("xyz.jpenilla.run-paper") version "1.0.6"
id("net.minecrell.plugin-yml.bukkit") version "0.5.1"
}
group = "net.playseinna.buildsystem"
version = "1.0-SNAPSHOT"
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}
repositories {
mavenCentral()
mavenLocal()
maven("https://oss.sonatype.org/content/repositories/snapshots/")
}
dependencies {
testImplementation(kotlin("test"))
implementation("fr.minuskube.inv:smart-invs:1.2.7")
paperDevBundle("1.18.1-R0.1-SNAPSHOT")
}
tasks {
assemble {
dependsOn(reobfJar)
}
compileJava {
options.encoding = Charsets.UTF_8.name()
options.release.set(17)
}
javadoc {
options.encoding = Charsets.UTF_8.name()
}
processResources {
filteringCharset = Charsets.UTF_8.name()
}
reobfJar {
outputJar.set(layout.buildDirectory.file("libs/BuildSystem-${project.version}.jar"))
}
}
bukkit {
load = BukkitPluginDescription.PluginLoadOrder.STARTUP
main = "net.playseinna.buildsystem.Main"
apiVersion = "1.18"
author = "Nooby"
}
Task-Log:
reobfJar.log
idk what I'm doing wrong. Maybe I'm just stupid but plz help me
masmc05 commented
also have this issue, idk how to fix it
Shane Freeder commented
The thing blew up reading the input jar seemingly, unlikely a paperweight issue, and not enough info here
masmc05 commented
yeah, made some random changes and it fixed itself somehow