eclipse-vertx / eclipse-vertx/vertx-codegen
Vert.x Code Generator breaks Java compilation with Gradle v4.7 annotationProcessor
- Vorherrschende Sprache
- Java
- Sterne
- 111
- Forks
- 89
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
I have reason to believe that the Vert.x Code Generator APT processor completely breaks Java compilation in Gradle when using with Gradle v4.7 and the `annotationProcessor`.
Found in https://github.com/vorburger/minecraft-storeys-maker/issues/53, but now reproduced in https://github.com/vorburger/vertx-gradle-errorprone-bug-reproducer. That very simple project fails when using `annotationProcessor` (but works when using `compile`). But an APT processor on `compile` instead of `annotationProcessor` breaks Error Prone. It's also "not right", and AFAIK doesn't play nice with Gradle's incremental build.
In an ideal world, Vert.x's Code Generator should "just work" (out of the box) with Gradle v4.7 annotationProcessor.
* https://docs.gradle.org/4.7/release-notes.html
* https://docs.gradle.org/4.6/release-notes.html#convenient-declaration-of-annotation-processor-dependencies
Beitragsleitfaden
Rechercherichtung
Beginne damit, den Fehler im verlinkten Projekt vertx-gradle-errorprone-bug-reproducer mit Gradle 4.7 und der Abhängigkeitskonfiguration annotationProcessor zu reproduzieren. Vergleiche dies mit der funktionierenden compile-Konfiguration und überprüfe das Ergebnis im Hinblick auf Error Prone und Bedenken beim inkrementellen Build. Erledigt ist die Aufgabe, wenn der Vert.x Code Generator mit annotationProcessor funktioniert, ohne die Java-Kompilierung zu beeinträchtigen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java
- Bereich
- build-system
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 30/100