Skip to content

Missing required bundle org.eclipse.jdt.debug needed by [org.eclipse.jdt.launching] - spotless version 6.25.0 #2089

Closed

Description

@subhashiniv

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)
}

Activity

  1. tim-oe commented on Jun 21, 2024

    @tim-oe

    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

  2. tim-oe commented on Jun 21, 2024

    @tim-oe

    think i might've resolved it
    i cleared the gradle cache
    i changed the repo settings to

    repositories {
    mavenCentral()
    gradlePluginPortal()
    }

    and the message stopped

  3. JosephTLockwood commented on Oct 5, 2024

    @JosephTLockwood

    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?

  4. nicolasb29 commented on Mar 13, 2025

    @nicolasb29

    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?

    Hi,

    Did you find a way to solve this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions