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

Replace deprecated Project.task() #45009

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

izeye
Copy link
Contributor

@izeye izeye commented Apr 5, 2025

This PR replaces deprecated Project.task() with tasks.register().

I just left the aggregatedJavadoc task as-is as the simple replacement didn't work with the following failure:

task aggregatedJavadoc(type: Javadoc) {

* What went wrong:
A problem occurred evaluating project ':spring-boot-project:spring-boot-docs'.
> Could not create task ':spring-boot-project:spring-boot-docs:aggregatedJavadoc'.
   > Gradle#projectsEvaluated(Closure) on build 'spring-boot-build' cannot be executed in the current context.

See https://docs.gradle.org/current/userguide/upgrading_version_8.html#source_level_deprecation_of_project_task_methods

Signed-off-by: Johnny Lim <izeye@naver.com>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Apr 5, 2025
@mhalbritter mhalbritter added type: task A general task and removed status: waiting-for-triage An issue we've not yet triaged labels Apr 7, 2025
@mhalbritter mhalbritter added this to the 3.3.x milestone Apr 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: task A general task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants