Skip to content

Make local Maven publishing compatible with configuration caching - #13713

Open
bric3 wants to merge 4 commits into
masterfrom
bdu/configuration-cache-maven-publishing
Open

bric3 wants to merge 4 commits into
masterfrom
bdu/configuration-cache-maven-publishing

Conversation

@bric3

@bric3 bric3 commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

What Does This Do

Makes unsigned local Maven publishing compatible with the Gradle configuration cache.

Motivation

Javadoc, POM generation and signing eligibility currently read the Gradle project during task execution. Javadoc reads apiLinks through a provider and declares the links as a task input.

Additional Notes

Unsigned trace API publication to a temporary Maven repository passed with cache store and reuse. The agent, OpenTracing and trace API POMs match the base revision byte for byte. #13708 addresses the settings blocker for repository-level cache runs.

The trace API Javadoc task generated both external hyperlinks on cache store and reuse with apiLinks assigned after task realisation.

A Sonatype dry run with dummy credentials confirmed that Gradle cannot cache the upload task while the Nexus plugin configures explicit repository credentials.

Contributor Checklist

@bric3 bric3 added type: bug fix Bug fix tag: no release notes Changes to exclude from release notes comp: tooling Build & Tooling tag: ai generated Largely based on code generated by an AI or LLM labels Nov 26, 2026
@datadog-datadog-prod-us1-2

datadog-datadog-prod-us1-2 Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

🎯 Code Coverage (details)
• Patch Coverage: 100.00%
• Overall Coverage: 61.24% (-0.03%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 74cefcc | Docs | Give us feedback!

@dd-octo-sts

dd-octo-sts Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

🟢 Java Benchmark SLOs — All performance SLOs passed

Suite Status
Startup 🟢 pass

SLO thresholds are defined here based on automatically generated metrics. A warning is raised when results are within 5% of the threshold.

PR vs. master results
Scenario Candidate master Δ (95% CI of mean)
startup:insecure-bank:iast:Agent 14.81 s 14.70 s [-0.1%; +1.6%] (no difference)
startup:insecure-bank:tracing:Agent 13.64 s 13.64 s [-0.8%; +0.8%] (no difference)
startup:petclinic:appsec:Agent 17.17 s 17.13 s [-0.5%; +1.1%] (no difference)
startup:petclinic:iast:Agent 16.97 s 17.10 s [-1.5%; -0.0%] (maybe better)
startup:petclinic:profiling:Agent 16.57 s 16.72 s [-1.9%; +0.1%] (no difference)
startup:petclinic:sca:Agent 17.13 s 17.12 s [-0.9%; +1.0%] (no difference)
startup:petclinic:tracing:Agent 16.21 s 16.35 s [-1.6%; +0.0%] (no difference)

Commit: 74cefcc1 · CI Pipeline · Benchmarking Platform UI


Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion.

Comment on lines +217 to +224
def apiLinks = providers.provider {
project.ext.has('apiLinks') ? project.ext.get('apiLinks').collect { it.toString() } : []
}
inputs.property('apiLinks', apiLinks)
doFirst { Javadoc task ->
def links = apiLinks.get()
if (!links.isEmpty()) {
task.options.links(*links)

@bric3 bric3 Nov 26, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

question: Do we use the javadoc api links ?

@bric3
bric3 marked this pull request as ready for review November 26, 2026 18:15
@bric3
bric3 requested review from a team as code owners November 26, 2026 18:15
@bric3
bric3 requested review from amarziali and removed request for a team November 26, 2026 18:15
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T18:17:45.034257Z 74cefcc Draft marked ready
🔒 Security Review ✅ Completed 2026-11-26T18:18:40.090673Z 74cefcc Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@datadog-datadog-prod-us1-2 datadog-datadog-prod-us1-2 Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Bits Code Review: PASS

More details

Configuration-cache reuse and publication output equivalence remain unverified by execution; this assessment rests on static analysis. Sonatype upload caching is outside the PR’s stated scope.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit 74cefcc

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

comp: tooling Build & Tooling tag: ai generated Largely based on code generated by an AI or LLM tag: no release notes Changes to exclude from release notes type: bug fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant