spotless
spotless copied to clipboard
Missing required bundle org.eclipse.jdt.debug needed by [org.eclipse.jdt.launching] - spotless version 6.25.0
If you are submitting a bug, please include the following:
- [ ] summary of problem unable to execute spotless groovy apply task, receiving missing required bundle for eclipse integration
- [ ] Gradle or Maven version 8.5
- [ ] spotless version 6.25.0
- [ ] operating system and version - mac book pro
- [ ] copy-paste your full Spotless configuration block(s), and a link to a public git repo that reproduces the problem if possible
- [ ] copy-paste the full content of any console errors emitted by
gradlew spotless[Apply/Check] --stacktrace
If you're just submitting a feature request or question, no need for the above.
Please hep in resolving the below error.
Task :spotlessGroovy Missing required bundle org.eclipse.jdt.debug needed by [org.eclipse.jdt.launching] Recommend setting osgi.configuration.area to a directory, getDataFile will return null Starting Groovy-Eclipse compiler resolver. Specified compiler level: unspecified 124 org.codehaus.groovy_5.0.0.v202309291934-e2309 RESOLVED Task :spotlessGroovyCheck FAILED FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':spotlessGroovyCheck'.
The following files had format violations:
Below is the build.gradle settings
groovy { greclipse()
importOrder()
excludeJava()
licenseHeaderFile rootProject.file("license")
indentWithSpaces(2)
} groovyGradle { target '*.gradle' greclipse() indentWithSpaces(2) }
getting same issue with spotlessGroovyGradle
plugins { id("com.diffplug.spotless") version "6.25.0" }
spotless { yaml { target 'src/ansible/**/.yml' jackson() prettier() indentWithSpaces() } groovyGradle { target '.gradle','src/gradle/*.gradle' greclipse() indentWithSpaces() } }
Task :spotlessGroovyGradle Missing required bundle org.eclipse.jdt.debug needed by [org.eclipse.jdt.launching] Recommend setting osgi.configuration.area to a directory, getDataFile will return null Starting Groovy-Eclipse compiler resolver. Specified compiler level: unspecified 124 org.codehaus.groovy_5.0.0.v202309291934-e2309 RESOLVED
think i might've resolved it i cleared the gradle cache i changed the repo settings to
repositories { mavenCentral() gradlePluginPortal() }
and the message stopped
I am having this issue when an action is running on GitHub. Is there anything specific I need to add to the GitHub workflow yml or build? Gradle?