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

New plugin BaselineFixGradleJava #1254

Merged
merged 3 commits into from
Feb 24, 2020
Merged

New plugin BaselineFixGradleJava #1254

merged 3 commits into from
Feb 24, 2020

Conversation

dansanduleac
Copy link
Contributor

Before this PR

Users can resolve configurations like compile, runtime and compileOnly, which are meant to be buckets of dependencies (you can only add dependencies to them), never actually resolved or depended on.

Also, resolving these can trigger a Gradle bug - gradle/gradle#11844 (comment) - when running code that attempts to resolve all resolvable configurations. This bug seems to be encountered less often when these configurations are not being resolved.

After this PR

==COMMIT_MSG==
A new com.palantir.baseline-fix-gradle-java plugin fixes up the deprecated configurations of java source sets so they cannot be resolved or depended on.
==COMMIT_MSG==

Possible downsides?

This can break external plugins. I think this is a good opportunity to discover these problems though, as later the same break will be introduced in Gradle 7. And as mentioned in Before this PR, the fact that these are resolvable is already causing some problems.

@changelog-app
Copy link

changelog-app bot commented Feb 24, 2020

Generate changelog in changelog/@unreleased

Type

  • Feature
  • Improvement
  • Fix
  • Break
  • Deprecation
  • Manual task
  • Migration

Description

A new com.palantir.baseline-fix-gradle-java plugin fixes up the deprecated configurations of java source sets so they cannot be resolved or depended on.

Check the box to generate changelog(s)

  • Generate changelog entry

@policy-bot policy-bot bot requested a review from fawind February 24, 2020 15:38
Copy link
Contributor

@fawind fawind left a comment

Choose a reason for hiding this comment

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

Looks good to me!

I'm missing a bit of context to evaluate how this will affect existing repos. If you are worried about this, feel free to tag another reviewer. Otherwise, merge away!

@bulldozer-bot bulldozer-bot bot merged commit e63eed6 into develop Feb 24, 2020
@bulldozer-bot bulldozer-bot bot deleted the ds/fix-gradle-java branch February 24, 2020 17:05
@svc-autorelease
Copy link
Collaborator

Released 3.5.0

This was referenced Feb 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants