Skip to content

RUM-18186: Migrate from buildSrc to convention plugin - #3751

Open
0xnm wants to merge 1 commit into
developfrom
nogorodnikov/rum-18186/migrate-from-buildSrc-to-convention-plugin
Open

RUM-18186: Migrate from buildSrc to convention plugin#3751
0xnm wants to merge 1 commit into
developfrom
nogorodnikov/rum-18186/migrate-from-buildSrc-to-convention-plugin

Conversation

@0xnm

@0xnm 0xnm commented Aug 21, 2026

Copy link
Copy Markdown
Member

What does this PR do?

This PR moves from buildSrc to Gradle convention plugin to host buildscript logic. As a benefit of this change, we have a better buildscript classpath isolation for different dependencies.

Migration is similar to what was done before in DataDog/dd-sdk-android-gradle-plugin#556.

I also spotted JUnit 4 usage for some unit tests and replaced it with JUnit 5.

NOTE: There are some Kotlin buildscript (.kts) files which were in buildSrc and left unchanged as a part of this migration. Ideally they need to be converted to the plugin logic as well, but this can be done later, in another PRs.

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

@0xnm
0xnm marked this pull request as ready for review August 21, 2026 12:03
@0xnm
0xnm requested review from a team as code owners August 21, 2026 12:03
@0xnm
0xnm requested review from greghuels and typotter and removed request for a team August 21, 2026 12:03
@datadog-datadog-prod-us1-2

datadog-datadog-prod-us1-2 Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Tests

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

🔄 Datadog auto-retried 1 job - 1 passed on retry View in Datadog

🎯 Code Coverage (details)
Patch Coverage: 0.00%
Overall Coverage: 70.71% (-1.08%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 3182a7c | Docs | View more details | Give us feedback!

@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: a6a1863518

ℹ️ 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".

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

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread ci/pipelines/default-pipeline.yml Outdated
Comment thread sample/benchmark/build.gradle.kts
Comment thread instrumented/integration/build.gradle.kts
ambushwork
ambushwork previously approved these changes Aug 21, 2026
Comment thread gradle/libs.versions.toml Outdated
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@0xnm
0xnm force-pushed the nogorodnikov/rum-18186/migrate-from-buildSrc-to-convention-plugin branch from a6a1863 to 3182a7c Compare August 21, 2026 12:38
@0xnm
0xnm requested a review from ambushwork August 21, 2026 12:38

@typotter typotter 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.

LGTM for Flags, thanks!

Comment on lines +74 to +77
register("datadogBuildConfig") {
id = "datadogBuildConfig" // the alias
implementationClass = "com.datadog.gradle.plugin.config.DatadogBuildConfigPlugin"
}

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.

id is not needed anymore, it takes it from the register call

https://docs.gradle.org/9.4.0/release-notes.html#default-plugin-ids

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Nice! I didn't know about this new thing. We can address it later, remove it for other custom plugins as well.

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.

👍 , was just an FYI comment, not a blocker

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.

5 participants