Skip to content

DEMRUM-3301: Include Gradle plugins - #1325

Draft
TomasChladekSL wants to merge 1 commit into
mainfrom
feature/plugins
Draft

DEMRUM-3301: Include Gradle plugins#1325
TomasChladekSL wants to merge 1 commit into
mainfrom
feature/plugins

Conversation

@TomasChladekSL

Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Tomas Chladek <tchladek@splunk.com>
@TomasChladekSL
TomasChladekSL requested a review from a team as a code owner July 2, 2025 12:18
@SenNeonoveNoci

Copy link
Copy Markdown
Contributor

@TomasChladekSL Please fix build and ktlint. Thanks.

@SenNeonoveNoci
SenNeonoveNoci marked this pull request as draft July 2, 2025 15:31
@SenNeonoveNoci SenNeonoveNoci changed the title NO-TICKET: Include Gradle plugins DEMRUM-3301: Include Gradle plugins Sep 3, 2025
@SenNeonoveNoci

Copy link
Copy Markdown
Contributor

@codex review

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

ℹ️ 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 on lines 39 to 41
}

gradlePlugin {
plugins {
create("androidInstrumentationPlugin") {
id = "$defaultGroupId.${artifactPrefix}httpurlconnection-auto-plugin"
implementationClass = "com.splunk.rum.httpurlconnection.auto.plugin.HttpURLInstrumentationPlugin"
displayName = "Splunk Android HttpURLConnection Auto-Instrumentation Plugin"
}
}
}

dependencies {

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 Plugin id no longer registered (HttpURLConnection)

The httpurlconnection-auto module still applies java-gradle-plugin but no longer declares a gradlePlugin { plugins { … } } entry (it used to sit between tasks.jar and dependencies). The published artifact added under instrumentation/buildtime/httpurlconnection-auto/plugin/repo now contains no META-INF/gradle-plugins/* marker (checked with jar tf … | grep gradle-plugins), so plugins { id("com.splunk.android.rum-httpurlconnection-auto-plugin") } or apply(plugin = …) will fail with “plugin not found” even though the repository and classpath dependencies were added. Restore the plugin definition so the plugin id resolves.

Useful? React with 👍 / 👎.

Comment on lines 39 to 41
}

gradlePlugin {
plugins {
create("androidInstrumentationPlugin") {
id = "$defaultGroupId.${artifactPrefix}okhttp3-auto-plugin"
implementationClass = "com.splunk.rum.okhttp3.auto.plugin.OkHttp3InstrumentationPlugin"
displayName = "Splunk Android OkHttp3 Auto-Instrumentation Plugin"
}
}
}

dependencies {

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 Plugin id no longer registered (OkHttp3)

Similarly, the OkHttp3 auto-instrumentation module keeps java-gradle-plugin applied but has dropped the gradlePlugin block that registers the plugin id; the area between tasks.jar and dependencies is now empty. The bundled artifact in instrumentation/buildtime/okhttp3-auto/plugin/repo has no META-INF/gradle-plugins/* entries, so attempting to apply com.splunk.android.rum-okhttp3-auto-plugin from the newly added repository will fail because Gradle cannot map the id to an implementation class. Reintroduce the plugin definition so consumers can apply the plugin by id.

Useful? React with 👍 / 👎.

@SenNeonoveNoci SenNeonoveNoci self-assigned this Apr 2, 2026
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.

2 participants