Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

./gradlew clean build always fails due to nonexistent file #25

Open
lukebemish opened this issue Nov 1, 2023 · 2 comments
Open

./gradlew clean build always fails due to nonexistent file #25

lukebemish opened this issue Nov 1, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@lukebemish
Copy link
Contributor

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

@mysticdrew
Copy link

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"

@lukebemish
Copy link
Contributor Author

This occurs on the stock MDK and does not require an access transformer

@sciwhiz12 sciwhiz12 added the bug Something isn't working label Nov 10, 2023
Gegy added a commit to Gegy/whats-that-slot that referenced this issue Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants