Is the Gradle Kotlin DSL any good? Find out with this side-by-side comparison between the Kotlin & Groovy DSL. You'll learn the main differences as we create a Gradle project in both languages at the same time.
🚀 FREE QUICK-START GRADLE GUIDE https://tomgregory.com/gradlequickstart
🔥 ULTIMATE GRADLE BUILD BIBLE https://tomgregory.com/gradlebuildbible
Quick access to differences in Kotlin DSL:
0:00 Introduction
0:21 Different build file name
0:40 Improved plugins syntax & autocomplete
1:25 Different syntax to set task properties
1:45 Different register task syntax
2:05 Use equals to set class variables
3:02 Configuring jar task
3:25 Double quoted strings
4:05 Always use brackets
4:42 No build script warnings in IDE
CORRECTION
In Groovy it's better to use "tasks.named('jar')" instead of "jar" when configuring the jar task. That way you will avoid potential unnecessary configuration.
📖 Check out the accompanying article "5 reasons to switch to the Gradle Kotlin DSL" https://tomgregory.com/gradle/5-reaso...
Watch video Gradle Kotlin vs. Groovy DSL (side-by-side comparison) online without registration, duration hours minute second in high quality. This video was added by user Tom Gregory Tech 25 July 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 8,169 once and liked it 200 people.