Skip to content

Gradle Extension for Java SDK #66328

Closed

Description

@jason810496

Since we "hack" some build-time details, for example:

  1. Pack dagIds, taskIds as an airflow-metadata.yaml in jar
  2. Pack raw user's java file in the jar for BaseCoordinator.write_dag_code to get the raw code

Which means the normal ./gradle command could not pack those kind of Airflow Java SDK specific metadata, so it would be better to provide a gradle extension for users to compile the "fullly-Airflow compatible" jars.


We should wait until the AIP for "Defining Dag in Foreign-Lang" pass.

Activity

  1. self-assigned this
    on May 4, 2026
  2. added
    priority:high
    on May 4, 2026
  3. moved this from Backlog to In progress in Java-SDKon May 7, 2026
  4. uranusjr commented on May 22, 2026

    @uranusjr
    Member

    We don’t need this for now since it’s only useful for Java DAGs. Stub tasks are routed by the coordinator.

  5. moved this from In progress to Backlog in Java-SDKon May 22, 2026
  6. added
    priority:low
    and removed
    priority:high
    on May 22, 2026
  7. uranusjr commented on May 25, 2026

    @uranusjr
    Member

    Oh actually we will need this for Airflow-SDK-Supervisor-Schema-Version.

  8. moved this from Backlog to Ready in Java-SDKon May 25, 2026
  9. added this to the Airflow 3.3.0 milestone on May 25, 2026
  10. uranusjr commented on May 27, 2026

    @uranusjr
    Member

    I have an idea, we can simply set Airflow-SDK-Supervisor-Schema-Version in the SDK’s JAR, so the user does not need to include it in their (dag bundle) JAR. This means we don’t need any special handling in the user JAR except Main-Class (can be either on the user JAR or the coordinators config). This means we don’t need a plugin, at least for now.

  11. moved this from Ready to Backlog in Java-SDKon May 27, 2026
  12. removed this from the Airflow 3.3.0 milestone on Jun 5, 2026
  13. added this to the Airflow 3.4.0 milestone on Jun 9, 2026
  14. moved this from Backlog to In progress in Java-SDKon Jun 11, 2026
  15. moved this from In progress to Done in Java-SDKon Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:java-sdkpriority:low

Type

No type

Projects

  • Status
    Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions