Skip to content

Configure the bootBuildInfo task lazily #23435

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

Closed
wants to merge 1 commit into from

Conversation

celcius112
Copy link
Contributor

@celcius112 celcius112 commented Sep 21, 2020

This is a follow up to #18881

Prior to this commit, the bootBuildInfo was configured eagerly.
Configuring it lazily prevent this task from being configured when not explicitly needed.
Also, the classes and bootJar tasks are now lazily configured, as the bootBuildInfo task
required them eagerly.

There are still some improvement possible for the AutoConfigurationPlugin, but it requires a bit more work.

@pivotal-issuemaster
Copy link

@celcius112 Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-issuemaster
Copy link

@celcius112 Thank you for signing the Contributor License Agreement!

Prior to this commit, the bootBuildInfo was configured eagerly.
Configuring it lazily prevent this task from being configured when not explicitly needed.
Also, the 'classes' and 'bootJar' tasks are now lazily configured, as the bootBuildInfo task
required them eagerly.
@wilkinsona wilkinsona added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Sep 22, 2020
@wilkinsona wilkinsona added this to the 2.4.x milestone Sep 22, 2020
@wilkinsona wilkinsona self-assigned this Sep 28, 2020
@wilkinsona
Copy link
Member

@celcius112 Thanks very much for making your first contribution to Spring Boot.

@wilkinsona wilkinsona modified the milestones: 2.4.x, 2.4.0-RC1 Sep 28, 2020
wilkinsona pushed a commit that referenced this pull request Sep 28, 2020
Prior to this commit, the bootBuildInfo was configured eagerly.
Configuring it lazily prevent this task from being configured when not
explicitly needed. Also, the 'classes' and 'bootJar' tasks are now
lazily configured, as the bootBuildInfo task was causing them to be
configured eagerly.

See gh-23435
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants