lukflug / PanelStudio

An extensible and customizable GUI API/library to create ClickGUIs, HUDEditors and TabGUIs designed for use in Minecraft utility mods.
https://lukflug.github.io/panelstudio.html
MIT License
309 stars 23 forks source link

gradle bad pls help (could not find method shadowJar()) #19

Closed ghost closed 3 years ago

ghost commented 3 years ago
C:\Users\*****\OneDrive\Documents\KeolForge\KeolForge>gradlew genEclipseRuns
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/4.9/userguide/gradle_daemon.html.
Daemon will be stopped at the end of the build stopping after processing

> Configure project :
New Dep: net.minecraftforge:forge:1.12.2-14.23.5.2855_mapped_snapshot_20171003-1.12

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\*****\OneDrive\Documents\KeolForge\KeolForge\build.gradle' line: 130

* What went wrong:
A problem occurred evaluating root project 'KeolForge'.
> Could not find method shadowJar() for arguments [build_3ys6d1w3s9rwa11pm193i5zbz$_run_closure7@63cc372c] on root project 'KeolForge' of type org.gradle.api.Project.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.9/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 24s

Help pls

ChompChompDead commented 3 years ago

6

lukflug commented 3 years ago

You have to import the shadow plugin in build.gradle! Add this to your dependencies block inside your buildscript block:

classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'

Add this below your buildscript block:

apply plugin: 'com.github.johnrengelman.shadow'