Sollace / Psychedelicraft

Drug experience mod for Minecraft
MIT License
16 stars 5 forks source link

gradlew: can't build project #15

Closed etil2jz closed 1 year ago

etil2jz commented 1 year ago

The Gradle configuration file as it is doesn't allow users to build the project. No toolchain seems to be defined and missing minecraft dependencies are mentionned.

Steps to reproduce: git clone https://github.com/Sollace/Psychedelicraft.git ./gradlew build

Sollace commented 1 year ago

Not sure what you mean. Project builds fine.

Sollace commented 1 year ago
[sollace@Bismuth Documents]$ git clone https://github.com/Sollace/Psychedelicraft.git
Cloning into 'Psychedelicraft'...
remote: Enumerating objects: 16456, done.
remote: Counting objects: 100% (5020/5020), done.
remote: Compressing objects: 100% (1506/1506), done.
remote: Total 16456 (delta 2754), reused 4952 (delta 2697), pack-reused 11436
Receiving objects: 100% (16456/16456), 6.06 MiB | 18.16 MiB/s, done.
Resolving deltas: 100% (9954/9954), done.
[sollace@Bismuth Documents]$ cd Psychedelicraft
[sollace@Bismuth Psychedelicraft]$ git branch
* 1.20
[sollace@Bismuth Psychedelicraft]$ gradlew build
bash: gradlew: command not found
[sollace@Bismuth Psychedelicraft]$ ./gradlew build
To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.3/userguide/gradle_daemon.html#sec:disabling_the_daemon.
Daemon will be stopped at the end of the build 

> Configure project :
Fabric Loom: 0.12.56
Reckoned version: 1.7.0-beta.0.21+3d1b949
Processing file: minecraft-project-@-merged-named.jar
Processing file: minecraft-project-@-merged-named.jar
Processing file: minecraft-project-@-merged-named.jar
:remapping 45 mods (TinyRemapper, intermediary -> named)
:remapping 11 mods (TinyRemapper, intermediary -> named)
:remapping 7 mods (TinyRemapper, intermediary -> named)
:remapping sources

> Task :compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

BUILD SUCCESSFUL in 1m 3s
8 actionable tasks: 8 executed
etil2jz commented 1 year ago

My bad, it was an issue with my environment variables. Setting it to JDK 17 instead of 20 fixed it. But using gradlew should download the JDK 17 toolchain for the user in order to compile it.

Sollace commented 1 year ago

I don't really have any say on what the gradle toolchain can and cannot do unfortunately. It's up to the user to make sure they have the correct java version to run it against.