diffplug / diffplug/spotless

Missing required bundle and Missing required capability

Open
#2,445 5 comments 2 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
5.6k
Forks
559
Avg merge
1d 13h
Merged PRs (30d)
34

Description

Hi,

I'm working on an upgrade of the spotless plugin gradle from 5.16.0 to the latest (7.0.2).

I have this error when running the `spotlessGroovyGradle` task:

```bash
Missing required bundle org.eclipse.jdt.debug needed by [org.eclipse.jdt.launching, org.eclipse.jdt.launching.macosx]
Missing required capability osgi.extender:osgi.extender=osgi.serviceloader.processor needed by org.apache.commons.commons-logging
Missing required capability osgi.serviceloader:osgi.serviceloader=org.apache.commons.logging.LogFactory needed by org.apache.commons.commons-logging
Missing required capability osgi.serviceloader:osgi.serviceloader=org.apache.juli.logging.Log needed by org.mortbay.jasper.apache-jsp
Missing required capability osgi.extender:osgi.extender=osgi.serviceloader.processor needed by org.mortbay.jasper.apache-jsp
Recommend setting osgi.configuration.area to a directory, getDataFile will return null
```

I have made a sample project from a fresh spring boot project, [the source code can be found here](https://github.com/nicolasb29/spotlestest) and the [error in this output](https://github.com/nicolasb29/spotlestest/actions/runs/13759762141/job/38473222042#step:5:32). I also made test on Ubuntu and MacOS and the problem is the same.

I have check there issues but it didn't work:

- #2089
- #1860

i.e.: the format.gradle file is on a separate file because in my case it's hosted on a central repository.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.