diffplug / diffplug/spotless

Missing required bundle and Missing required capability

Offen
#2,445 5 Kommentare 2 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
Java
Sterne
5.6k
Forks
559
Ø Merge
1 T. 14 Std.
Gemergte PRs (30 T.)
43

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne mit dem Beispielprojekt und seiner separaten format.gradle-Datei, und führe dann die Aufgabe spotlessGroovyGradle mit dem Spotless-Upgrade von 5.16.0 auf 7.0.2 aus. Vergleiche die GitHub Actions-Ausgabe unter Ubuntu und macOS und prüfe die Issues #2089 und #1860. Erledigt ist die Aufgabe, wenn sie ohne Fehler wegen fehlender Bundles, Capabilities oder Konfiguration ausgeführt wird.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
groovy, java, spring-boot
Bereich
build-system
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.