#Can't seem to build the project with gradle

1 messages · Page 1 of 1 (latest)

late lotusBOT
#

<@&987246924425994290> please have a look, thanks.

kind vortex
#

Hi,
I've been trying to build TJ-Bot with gradle, following the "Setup-Project-locally" guide. And it always fail to build the project:

FAILURE: Build failed with an exception.

What went wrong:
class name.remal.gradleplugins.sonarlint.SonarLintPlugin tried to access private field org.gradle.api.plugins.quality.internal.AbstractCodeQualityPlugin.extension (name.remal.gradleplugins.sonarlint.SonarLintPlugin is in unnamed module of loader org.gradle.internal.classloader.VisitableURLClassLoaderInstrumentingVisitableURLClassLoader @649da633; org.gradle.api.plugins.quality.internal.AbstractCodeQualityPlugin is in unnamed module of loader org.gradle.initialization.MixInLegacyTypesClassLoader @9cb8225)

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 568ms
7 actionable tasks: 7 up-to-date

I have tried both "gradle build" and "./gradlew build". gradlew build always gives me:
Task :application:spotlessJavaCheck FAILED

I am unsure what to do, I have updated my java and my gradle to the latest version.

#

@olive geode
Hello, I unquarantined you, sorry for the inconvenience

late lotusBOT
#

@olive geode

Your question has been closed due to inactivity.

If it was not resolved yet, feel free to just post a message below
to reopen it, or create a new thread.

Note that usually the reason for nobody calling back is that your
question may have been not well asked and hence no one felt confident
enough answering.

When you reopen the thread, try to use your time to improve the quality
of the question by elaborating, providing details, context, all relevant code
snippets, any errors you are getting, concrete examples and perhaps also some
screenshots. Share your attempt, explain the expected results and compare
them to the current results.

Also try to make the information easily accessible by sharing code
or assignment descriptions directly on Discord, not behind a link or
PDF-file; provide some guidance for long code snippets and ensure
the code is well formatted and has syntax highlighting. Kindly read through
https://stackoverflow.com/help/how-to-ask for more.

With enough info, someone knows the answer for sure 👍

olive geode
#

.