NeoGradle
NeoGradle copied to clipboard
`./gradlew clean build` always fails due to nonexistent file
As the title states, cleaning in the same execution as building always fails due to an expected file getting cleaned away:
luke@luke-kubuntu:/tmp/MDK$ ./gradlew clean build
To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/8.1.1/userguide/gradle_daemon.html#sec:disabling_the_daemon.
Daemon will be stopped at the end of the build
Path for java installation '/usr/lib/jvm/openjdk-17' (Common Linux Locations) does not contain a java executable
> Task :neoFormForgesAccessTransformerProvider_script_neoforge.cfg FAILED
FAILURE: Build failed with an exception.
* What went wrong:
A problem was found with the configuration of task ':neoFormForgesAccessTransformerProvider_script_neoforge.cfg' (type 'ArtifactProvider').
- Type 'net.neoforged.gradle.dsl.common.tasks.ArtifactProvider' property 'input' specifies file '/tmp/MDK/build/neoForge/neoForgeJoined20.2.3-beta/unpacked/ats/_script_neoforge.cfg' which doesn't exist.
Reason: An input file was expected to be present but it doesn't exist.
Possible solutions:
1. Make sure the file exists before the task is called.
2. Make sure that the task which produces the file is declared as an input.
Please refer to https://docs.gradle.org/8.1.1/userguide/validation_problems.html#input_file_does_not_exist for more details about this problem.
* 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
BUILD FAILED in 7s
8 actionable tasks: 2 executed, 6 up-to-date
I am unsure if this is related to #18
I had this issue when it could not find my accesstransformer.cfg. I need to change the path. Do note, I am using MultiLoader-Template from: "/src/main/resources/META-INF/accesstransformer.cfg" to: "/neoforge/src/main/resources/META-INF/accesstransformer.cfg"
This occurs on the stock MDK and does not require an access transformer