Skip to content

Do not merge - PR test run for fork PR - Migrate shadow plugin to gradleup#2950

Draft
jtduffy wants to merge 9 commits into
mainfrom
migrate-shadow-plugin-to-gradleup
Draft

Do not merge - PR test run for fork PR - Migrate shadow plugin to gradleup#2950
jtduffy wants to merge 9 commits into
mainfrom
migrate-shadow-plugin-to-gradleup

Conversation

@jtduffy

@jtduffy jtduffy commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

No description provided.

thejainamjain and others added 9 commits June 17, 2026 00:09
…issue #2862)

- Replace plugin id and dependency coord with com.gradleup.shadow:shadow-gradle-plugin:8.3.0
  in buildSrc/build.gradle, instrumentation-build, and newrelic-opentelemetry-agent-extension
- Add explicit org.apache.ant:ant:1.10.14 dependency to buildSrc; shadow 8.3.0 no longer
  bundles/shades Ant internally so ZipEntry/ZipOutputStream are not available transitively
- Fix zip imports in DependencyPatcher and Log4j2PluginFileMover from shaded
  shadow.org.apache.tools.zip.* to unshaded org.apache.tools.zip.*
- Add getName() override to both Transformer implementations; shadow 8.3.0 Transformer
  interface now extends org.gradle.api.Named requiring this method
- Upgrade Gradle wrapper 7.5.1 -> 8.3; com.gradleup.shadow requires Gradle 8.3 minimum
- Fix Gradle 8 API removals required by the wrapper upgrade:
  - cache_weave_attributes.gradle.kts: JavaExec.main -> mainClass
  - infinite-tracing/build.gradle.kts: jacoco.reportsDir removed, xml.isEnabled -> required,
    html.destination -> html.outputLocation
  - newrelic-weaver/build.gradle: replace undefined jdk8 property reference with
    javaToolchains.compilerFor API to resolve JDK 8 path dynamically

Pinned shadow at exactly 8.3.0 (not later) because 8.3.4+ broke Java 8 support per
upstream reports. Verified Transformer/TransformerContext interfaces unchanged at 8.3.0
so no interface-name migration needed.
…teVersionProperties

Gradle 8 strict validation catches implicit task dependencies that Gradle 7
allowed silently. compileJava11Java reads Agent.properties produced by
generateVersionProperties without declaring it as a dependency, causing
failures in parallel builds (./gradlew clean jar --parallel).
@codecov-commenter

codecov-commenter commented Jun 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.78%. Comparing base (57b05ef) to head (b38d17f).
⚠️ Report is 8 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2950      +/-   ##
============================================
+ Coverage     70.76%   70.78%   +0.01%     
- Complexity    10659    10660       +1     
============================================
  Files           879      877       -2     
  Lines         42971    42962       -9     
  Branches       6501     6501              
============================================
  Hits          30409    30409              
+ Misses         9627     9618       -9     
  Partials       2935     2935              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants