Skip to content

Conversation

@jack-berg
Copy link
Member

@jack-berg jack-berg commented Feb 27, 2025

Related to #7119.

An alternative to #7137 that allows us to specify that certain compileOnly dependencies should be added to pom.xml with scope=runtime, optional=true, without the complexity of gradle feature variants.

cc @trask


compileOnly(project(":api:incubator"))
optionalCompileOnly(project(":api:incubator"))
compileOnly(project(":sdk:trace-shaded-deps"))
Copy link
Member Author

Choose a reason for hiding this comment

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

If we go in this direction, we'll need to decide when its appropriate for a dependency to be compileOnly vs. optionalCompileOnly.

Originally, I just updated gradle maven publishing to include all compileOnly dependencies as optional dependencies in pom.xml, but that resulted in these standard compileOnly annotation dependencies being included in every pom.xml, which doesn't seem right.

@codecov
Copy link

codecov bot commented Feb 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.85%. Comparing base (cd1f617) to head (3071f5c).

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #7157   +/-   ##
=========================================
  Coverage     89.85%   89.85%           
  Complexity     6622     6622           
=========================================
  Files           740      740           
  Lines         20007    20007           
  Branches       1968     1968           
=========================================
  Hits          17978    17978           
  Misses         1439     1439           
  Partials        590      590           

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

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.

1 participant