I'm junior currently learning gradle and groovy. this is what the book I'm reading says during wrtten build.gradle
apply plugin: 'java'
apply plugin: 'application'
However, the build.gradle in the project created by the spring-initalizer use the following syntax:
plugins {
id 'org.springframework.boot' version '2.4.2'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
}
I know they're both working normally, but I wonder exactly what the difference is. And which grammar do you recommend in general?
Thank you very much for watching my poor question through, and I hope you have a good day.