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

Error out if JDKs are not configured #99

Merged
merged 3 commits into from
Aug 24, 2022

Conversation

CRogers
Copy link
Contributor

@CRogers CRogers commented Aug 24, 2022

Before this PR

If you do not configure a JDK distribution/version for a particular java major version, the default behaviour of baseline-java-versions comes into effect, which is to fall back to the Gradle toolchain auto-provisioning. baseline-java-versions needs to do this, because it's previous behaviour was to use the Gradle auto-provisioning. However, with this new plugin we explicitly want to avoid using the Gradle's auto-provisioning - a project accidentally not configuring JDKs is a bug.

After this PR

==COMMIT_MSG==
If a JDK for a particular Java major version is not configured, error out instead of falling back to the Gradle auto-provisioning behaviour.
==COMMIT_MSG==

Possible downsides?

If builds are incorrectly configured, they may start to error. IMO this is actually a good thing as we want to find these cases and stop them.

@CRogers CRogers requested a review from carterkozak August 24, 2022 14:50
@changelog-app
Copy link

changelog-app bot commented Aug 24, 2022

Generate changelog in changelog/@unreleased

Type

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

Description

If a JDK for a particular Java major version is not configured, error out instead of falling back to the Gradle auto-provisioning behaviour.

Check the box to generate changelog(s)

  • Generate changelog entry

@bulldozer-bot bulldozer-bot bot merged commit e71ac16 into develop Aug 24, 2022
@bulldozer-bot bulldozer-bot bot deleted the callumr/error-if-cant-find-jdk branch August 24, 2022 20:59
@svc-autorelease
Copy link
Collaborator

Released 0.27.0

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.

4 participants