Repository navigation
Java gradle plugin and project split - #68380
Merged
Merged
Conversation
uranusjr
commented
Jun 11, 2026
uranusjr
force-pushed
the
java-gradle-plugin
branch
from
June 11, 2026 19:12
bb3534f to
0b2ba50
Compare
uranusjr
requested review from
amoghrajesh,
ashb,
bugraoz93,
choo121600,
ephraimbuddy,
gopidesupavan,
jedcunningham,
jscheffl,
potiuk and
vatsrahul1001
as code owners
June 11, 2026 19:12
uranusjr
force-pushed
the
java-gradle-plugin
branch
2 times, most recently
from
June 11, 2026 21:42
7c7a8a7 to
5026687
Compare
uranusjr
force-pushed
the
java-gradle-plugin
branch
2 times, most recently
from
June 12, 2026 00:34
46f7fb7 to
de06eaa
Compare
jason810496
approved these changes
Jun 12, 2026
uranusjr
force-pushed
the
java-gradle-plugin
branch
2 times, most recently
from
June 12, 2026 06:47
5aefa97 to
6be0aa6
Compare
The annotation processor has been split into a separate (sub)project since it is a build-time only dependency and does not need to be with the main SDK code, which contains mostly runtime code. A new "Airflow SDK plugin" is also added to wrap logic in the user's build file so the user can simply add the plugin, fill out required fields in the 'airflowBundle' block, and that's it. This should make building a Java task bundle a lot easier.
This allows the example to be as close to a real world use as possible. The downside is the user must do mavenPublishLocal first on the main projects to make the example build, but I feel this is reasonable.
A new subproject 'bom' was added to publish the BOM containing the Supervisor Schema version associated with an SDK version for Maven to consume. Since the BOM release is not a Java library, some refactoring is needed to not apply incorrect configuration on that subproject. This is fortunately pretty simply handled by the new buildSrc mechanism.
uranusjr
force-pushed
the
java-gradle-plugin
branch
from
June 12, 2026 08:10
6be0aa6 to
2eeee29
Compare
imrichardwu
pushed a commit
to imrichardwu/airflow
that referenced
this pull request
Jun 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The annotation processor has been split into a separate (sub)project since it is a build-time only dependency and does not need to be with the main SDK code, which contains mostly runtime code.
A new "Airflow SDK plugin" is also added to wrap logic in the user's build file so the user can simply add the plugin, fill out required fields in the 'airflowBundle' block, and that's it. This should make building a Java task bundle a lot easier.
Due to Gradle constraints, the example has been split into a stadnalone project (instead of a subproject of
java-sdk) so it can make use of the plugin. This makes building the example a bit more difficult—it now requires you tomavenPublishToLocalfirst so the plugins and dependencies can correctly resolve. I think it’s acceptable.The documentation and SDK README have been modified to reflect the changes.
Close #66328