Missing required bundle and Missing required capability

Open
#2,445 5 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
groovy, java, spring-boot
Domain
build-system

Research direction

Start with the sample project and its separate format.gradle file, then run the spotlessGroovyGradle task using the Spotless upgrade from 5.16.0 to 7.0.2. Compare the GitHub Actions output on Ubuntu and macOS and review issues #2089 and #1860. Done means the task runs without the missing bundle, capability, or configuration errors.

Written by the indexing model from the issue text.

Description

bug

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:

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 and the error in this output. 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.

Dominant language
Java
Stars
5.7k
Forks
560
Avg merge
1d 13h
Merged PRs (30d)
43

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from diffplug/spotless

All issues in diffplug/spotless

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.