Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Add support for Gradle Apt Plugin

Đang mở
#134 4 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
35/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
java

Hướng nghiên cứu

Bắt đầu với giải pháp xử lý annotation Gradle đã được ghi trong tài liệu và so sánh giải pháp đó với cấu hình Gradle Apt Plugin được nêu trong issue. Ghi lại cách cấu hình việc tạo mã Vert.x bằng plugin và khả năng tương thích mã nguồn Java 8 để xử lý các cảnh báo processor đã được báo cáo; công việc được xem là hoàn tất khi tài liệu liên quan có một cấu hình tương đương hoạt động được.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

I already have another package that uses annotation processing (immutables), and it doesn't play nicely with the documented Gradle solution for adding annotation processing.

immutables plugs in directly to the Gradle Apt Plugin (https://github.com/tbroyer/gradle-apt-plugin)

It would be nice if the CodeGen worked similarly for vertx.. I have it working with Warnings only via:

dependencies {
  compileOnly "org.immutables:value:2.4.4:annotations"
  apt group: 'org.immutables', name: 'value', version: '2.4.4'

  compileOnly group: 'io.vertx', name: 'vertx-codegen', version: vertxVersion
  apt group: 'io.vertx', name: 'vertx-codegen', version: vertxVersion
  apt group: 'io.vertx', name: 'vertx-docgen', version: vertxVersion
  apt group: 'io.vertx', name:'vertx-service-proxy', version:vertxVersion, classifier: 'processor'
}

This generates both sets of classes but my gradle output is littered with warnings:

warning: No SupportedSourceVersion annotation found on io.vertx.serviceproxy.ServiceProxyProcessor, returning RELEASE_6.
warning: Supported source version 'RELEASE_6' from annotation processor 'io.vertx.serviceproxy.ServiceProxyProcessor' less than -source '1.8'

I have java code and source compatibility set to 1.8 but can't figure out how to feed this in to avoid the warning. Hopefully this is just a documentation issue, would be helpful to add this as an option to the documentation for anyone else using the apt plugin.

Ngôn ngữ chính
Java
Star
111
Fork
88
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của eclipse-vertx/vertx-codegen

Tất cả issue của eclipse-vertx/vertx-codegen

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.