Skip to content

Replace deprecated Project.task() #45009

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
Closed

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

@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
@philwebb philwebb self-assigned this Apr 14, 2025
@philwebb philwebb modified the milestones: 3.3.x, 3.5.0-RC1 Apr 14, 2025
philwebb pushed a commit that referenced this pull request Apr 14, 2025
@philwebb philwebb closed this in 8118b81 Apr 14, 2025
@philwebb philwebb modified the milestones: 3.5.0-RC1, 3.3.11 Apr 14, 2025
@philwebb
Copy link
Member

Thanks @izeye. I've opened #45191 for the javadoc one.

@izeye izeye deleted the task branch April 14, 2025 23:23
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.

4 participants