trickster-is-weak / Surviving-Maps

Apache License 2.0
2 stars 6 forks source link

Could not find method enabled() for arguments [true] on Report xml #6

Open Jedi-Coder1 opened 1 year ago

Jedi-Coder1 commented 1 year ago

when I try to run 'gradle run' I get an error

Could not find method enabled() for arguments [true] on Report xml

aml06 commented 1 year ago

It ran for me after commenting out lines 93-97 in the build.gradle file. I suspect the JacocoTestReport is not particularly important and maybe the conflict is a result of recent version updates but I await the wisdom of someone more informed than myself.

akyag commented 1 year ago

failed for me even after that saying it's incompatible with gradle 9. FAILURE: Build failed with an exception.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/8.0.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 26s 1 actionable task: 1 `executed

trickster-is-weak commented 1 year ago

Apologies for the slow reply. Gradle 8/Jacoco have changed a few things, if you change line 95 to "xml.required = true" it will work fine.

akyag commented 1 year ago

I tried that and got this - https://pastebin.com/EkxkPkgs and no apologies necessary, grateful for your work on this! Just trying to get back into the game again haha...

trickster-is-weak commented 1 year ago

That looks like you might have an older version of Java installed. “Java —version” in the command line should tell you. I believe the current Long Term Release is 17.

XxUnkn0wnxX commented 9 months ago

I just set my env $JAVA_HOME to jdk17 & $PATH to point to gradle7

I run my own custom script since I lazy.. mars-maps.sh - dump in the root dir

be sure to set the correct path in the script. this for macOS/Linux only.. I don't do windows..