Skip to content

Add Java generation for native Nexus APIs - #245

Draft
tconley1428 wants to merge 25 commits into
mainfrom
java-signal-with-start
Draft

tconley1428 wants to merge 25 commits into
mainfrom
java-signal-with-start

Conversation

@tconley1428

@tconley1428 tconley1428 commented Oct 19, 2026 •

Copy link
Copy Markdown
Collaborator

Add Java generation for native WIT models, protobuf transfer conversion, workflow APIs, resources, and System Nexus interceptor hooks. Typed method overloads retain argument/result checks; mandatory options contain non-callable fields. Workflow defaults and sources resolve at invocation, including the calling workflow’s task queue for signal-with-start.

Reconciled with main and its compiler-test standards. Generation behavior is exercised through native Java samples, while compiler rejections use file-backed fixtures.

The Java samples now track SDK main through Gradle Git source dependencies, using the prerequisites merged in temporalio/sdk-java#3213. They no longer depend on the temporary prerequisite branch or require a separately built SDK checkout, submodule, or published snapshot. The workflow-side signal-with-start SDK integration remains in temporalio/sdk-java#3154.

@tconley1428
tconley1428 force-pushed the java-signal-with-start branch from 84f3d95 to 24428c3 Compare October 20, 2026 16:02
@tconley1428
tconley1428 changed the base branch from main to java-output-format October 20, 2026 16:02
@tconley1428
tconley1428 added this pull request to stack #247 October 20, 2026 16:02
@tconley1428
tconley1428 force-pushed the java-signal-with-start branch from c955956 to 0fb0f6a Compare October 22, 2026 17:11
Base automatically changed from java-output-format to main October 22, 2026 17:30
@tconley1428
tconley1428 force-pushed the java-signal-with-start branch from 0fb0f6a to 3b7e603 Compare October 22, 2026 17:30
@tconley1428
tconley1428 force-pushed the java-signal-with-start branch from 3b7e603 to 00090da Compare October 26, 2026 19:50
Adapt Java generation to explicit targets and target-specific field policies. Resolve workflow defaults and sources at invocation, including the signal-with-start task queue.

Replace generated-source assertions with native Java coverage and file-backed compiler rejection fixtures. Preserve main's formatter integration and regenerate Java samples.
Use Gradle Git source dependencies with a temporary tag of SDK commit 52758b5cab1ec3860ccb30812bbcc39f4538abc4 instead of an SDK directory override. Align the sample Gradle wrapper with the SDK build and exercise its standalone converter context through generated models.
Prepare the raw Maven protoc artifact before invoking it so fixture generation works with a cold Gradle cache, independently of the SDK's protobuf plugin.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant