Replaces methods that will be deprecated by gradle

Reference - gradle 8.5 official documentation - Upgrading version 8.x to latest

Comment From: pivotal-cla

@bohub12 Please sign the Contributor License Agreement!

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

See the FAQ for frequently asked questions.

Comment From: pivotal-cla

@bohub12 Thank you for signing the Contributor License Agreement!