Skip to content

test: add failing test for transitive runtime capability. #1456

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

autonomousapps
Copy link
Owner

No description provided.

Comment on lines +63 to +66
// TODO(tsr): cleanup
// val isMainVisibleForDownstreamCompile = Bucket.isVisibleToTestCompileClasspath(mainUsages, mainDeclarations)
// val isMainVisibleForDownstreamRuntime = Bucket.isVisibleToTestRuntimeClasspath(mainUsages, mainDeclarations)
val visibility = Bucket.determineVisibility(mainUsages, mainDeclarations)
Copy link
Owner Author

Choose a reason for hiding this comment

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

Cleanup.

fun isDowngrade(): Boolean = (isRemove() || isCompileOnly() || isRuntimeOnly())
fun isDowngrade(): Boolean = isRemove() || (!isAnyAdd() && (isCompileOnly() || isRuntimeOnly()))
Copy link
Owner Author

Choose a reason for hiding this comment

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

This was a bug.

Comment on lines +42 to +43
@PendingFeature
def "transitive dependencies with runtime capabilities are added directly (#gradleVersion)"() {
Copy link
Owner Author

@autonomousapps autonomousapps May 20, 2025

Choose a reason for hiding this comment

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

Getting this test to pass will be harder than originally expected. I've made a lot of assumptions about not providing "runtimeOnly" advice in the past.

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