Skip to content
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

sourceSets.create() uses deperecated/superfluous API #29215

Closed
pauliesnug opened this issue May 19, 2024 · 1 comment
Closed

sourceSets.create() uses deperecated/superfluous API #29215

pauliesnug opened this issue May 19, 2024 · 1 comment
Labels
a:chore Minor issue without significant impact closed:not-fixed Indicates the issue was not fixed and is not planned to be in:java-plugins java-library, java, java-base, java-platform, java-test-fixtures

Comments

@pauliesnug
Copy link

pauliesnug commented May 19, 2024

Issue type

Deprecation

Problem description

When using Gradle 8.7 with the Kotlin version it ships with (outdated 1.9.22), the sourceSets.create or sourceSets.creating functions call uses the deprecated setCanBeResolved api, resulting in a deprecation warning:

The resolvable usage is already allowed on configuration ':testARuntimeClasspath. This behavior has been deprecated. This behavior is scheduled to be removed in Gradle 9.0. Remove the call to setCanBeResolved(true), it has no effect.

Here is a GitHub Actions reproduction for context: https://github.com/pauliesnug/gradle-plugin-publish-issue-1/actions/runs/9149209703/job/25152603811#step:4:250

Context (optional)

No response

@pauliesnug pauliesnug added a:chore Minor issue without significant impact to-triage labels May 19, 2024
@ljacomet ljacomet added in:java-plugins java-library, java, java-base, java-platform, java-test-fixtures 👋 team-triage Issues that need to be triaged by a specific team closed:not-fixed Indicates the issue was not fixed and is not planned to be and removed to-triage 👋 team-triage Issues that need to be triaged by a specific team labels May 21, 2024
@ljacomet
Copy link
Member

This is, unfortunately, a known issue that needs to be fixed through collaboration between Gradle and JetBrains. Until it gets resolved, you will see the deprecation warning.

Related YouTrack issue:

@ljacomet ljacomet closed this as not planned Won't fix, can't repro, duplicate, stale May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:chore Minor issue without significant impact closed:not-fixed Indicates the issue was not fixed and is not planned to be in:java-plugins java-library, java, java-base, java-platform, java-test-fixtures
Projects
None yet
Development

No branches or pull requests

2 participants