Skip to content

Fix Eclipse source attachment for the core JAR - #963

Open
arkzoe wants to merge 1 commit into
openai:mainfrom
arkzoe:contrib/issue-447-eclipse-sources
Open

Fix Eclipse source attachment for the core JAR#963
arkzoe wants to merge 1 commit into
openai:mainfrom
arkzoe:contrib/issue-447-eclipse-sources

Conversation

@arkzoe

@arkzoe arkzoe commented Sep 2, 2026

Copy link
Copy Markdown

What

Fix the core sources JAR layout so Kotlin sources are stored at their package paths instead of under a main/ prefix. Update the corresponding artifact verification task to expect the corrected layout.

Why

Eclipse cannot automatically attach the published sources because the current JAR layout places sources under main/com/... rather than com/....

Fixes #447

Tests

  • git diff --check
  • Gradle task discovery was attempted, but the Gradle 8.12 wrapper initialization produced no output in the available environment.

@arkzoe
arkzoe requested a review from a team as a code owner September 2, 2026 10:04

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ef8e4654ab

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

) {
into("main")
}
from(fileTree("src/main/kotlin").matching { include(CoreCompilationClaimedSourceIncludeSpec()) })

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Remove the prefix from all core sources

When :openai-java-core:kotlinSourcesJar runs, the task's preconfigured source-set copy still emits the unclaimed client/helper sources under main/com/...; this added from only relocates the shard-owned sources that were manually restored after the source-set exclusion. The resulting JAR therefore has a split layout, and the updated verifyCoreCompilationArtifact—which check depends on—reports the remaining main/... entries as unexpected and their root-level counterparts as missing. Reconfigure the task's existing copy spec, or rebuild its contents from the complete source tree, so every source is relocated together.

Useful? React with 👍 / 👎.

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.

Eclipse doesn't automatically attach sources due to JAR layout

1 participant