baritone icon indicating copy to clipboard operation
baritone copied to clipboard

Task 'setupDecompWorkspace' not found in root project 'baritone'.

Open realhackcraft opened this issue 3 years ago • 10 comments

Some information

Operating system: MacOsX 10.15.6 Java version: 17 Bariton branch: 1.19.1

How to reproduce

Download baritone 1.19.1 cd Downloads/baritone-1.19.1 Run ./gradlew setupDecompWorkspace Get console output:

FAILURE: Build failed with an exception.

* What went wrong:
Task 'setupDecompWorkspace' not found in root project 'baritone'.

How to reproduce(IntelliJ IDEA)

Download baritone 1.19.1 Click File > open Select build.gradle Click Open as Project Click elephant(gradle tab opens) (Cannot see setupDecompWorkspace)

Project settings

Java SDK: 17 Project language level: SDK default (17 Sealed types, always-strict floating-point semantics) Build, Execution, Deployment > Build Tools > Gradle > Gradle JVM: Project SDK 17

Screen Shot

Final checklist

  • [x] I have brain cells.
  • [x] I know how to properly use check boxes
  • [x] I have included the version of Minecraft I'm running, baritone's version and forge mods (if used).
  • [x] I have included logs, exceptions and / or steps to reproduce the issue.
  • [x] I have not used any OwO's or UwU's in this issue.
  • [x] I am very cool(if applicable).

realhackcraft avatar Aug 09 '22 19:08 realhackcraft

might have to uncheck I have brain cells., if you just skip that step it all works

wagyourtail avatar Aug 09 '22 22:08 wagyourtail

might have to uncheck I have brain cells., if you just skip that step it all works

If you meant using java 8, I tried but it says

> Failed to apply plugin 'dev.architectury.loom'.
   > You are using an outdated version of Java (8). Java 17 or higher is required.

and

> Failed to notify project evaluation listener.
   > net/fabricmc/loom/util/service/SharedServiceManager has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0

realhackcraft avatar Aug 09 '22 22:08 realhackcraft

if you just skip that step it all works

Which step are you referring to?

realhackcraft avatar Aug 09 '22 22:08 realhackcraft

You are using an outdated version of Java (8). Java 17 or higher is required.

wagyourtail avatar Aug 09 '22 22:08 wagyourtail

I used both java 17 and java 8.

realhackcraft avatar Aug 09 '22 22:08 realhackcraft

well, your gradle is set to use java 8, change it...

wagyourtail avatar Aug 09 '22 22:08 wagyourtail

❯ export JAVA_HOME=$(/usr/libexec/java_home -v 17) ❯ ./gradlew setupDecompWorkspace

gets error

FAILURE: Build failed with an exception.

* What went wrong:
Task 'setupDecompWorkspace' not found in root project 'baritone'.

realhackcraft avatar Aug 09 '22 22:08 realhackcraft

as I said with that, skip the setupDecompWorkspace step, if you just want to build it, you know there's github actions autobuilding, right?

wagyourtail avatar Aug 09 '22 22:08 wagyourtail

oh...

realhackcraft avatar Aug 09 '22 22:08 realhackcraft

@wagyourtail I now get this error in IntelliJ:

> Task :fabric:proguard FAILED
Running Determinizer
 Input path: /Users/Hackcraft_/Downloads/baritone-1.19.1/fabric/build/libs/baritone-fabric-1.9.0-local.jar
 Output path: /Users/Hackcraft_/Downloads/baritone-1.19.1/fabric/build/libs/baritone-fabric-unoptimized-1.9.0-local.jar

Execution failed for task ':fabric:proguard'.
> Proguard exited with code 1

* 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.

realhackcraft avatar Aug 09 '22 22:08 realhackcraft