Update Gradle to Latest Version! #Shorts

preview_player
Показать описание
Follow these 5 simple steps to update your Gradle version and benefit from the latest features.

1. Check current version
3. Run build task & fix issues
4. Update Gradle wrapper version
5. Build again & commit changes

Рекомендации по теме
Комментарии
Автор

I will gladly chop my left foot off to automatically update my 12 subproject build scripts from 4.8 to 8.4

peanuts
Автор

thank you so muchhhh only this works for me

malaikasaeed
Автор

Man this really saved me in more ways than one. Was relying on the GUI too heavily for testing and failing to see why my tests weren't running. Inspecting the notes on ./gradlew build solved all my issues. Subbed!

alchemi.
Автор

Tom, thanks for you content really helpful! I'm working with java 8 and gradle 6.6.1 trying to upgrade to 7.0. I get the following warning:

> Configure project :
The AbstractArchiveTask.baseName property has been deprecated. This is scheduled to be removed in Gradle 7.0. Please use the archiveBaseName property instead.

However I can't see where this baseName is used. Any chance you can enlighten me?

mayoca
Автор

the command gradlew build give me this:
FAILURE: Build failed with an exception.

* What went wrong:
Could not open settings generic class cache for settings file
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 63

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at ....
BUILD FAILED in 8s

Also i get the same error when i write the command :gradlew wrapper --gradle-version 7.6.1
Note: i have Gradle 7.5 and jdk 19

AhlamAlhasany-sv
Автор

git commit -am "Bump Gradle to 7.6" is not working

but all other steps are ok.

it's necessary??

AudioTamilan