Closed NilabhB closed 1 year ago
Even if the section is missing it can be added, can't it?
Hi,
I tried all possibilities, without implementing it on settings.gradle
the gradle building is not successful. Currently in newer projects gradle.build
contains only the plugins{}
. Even if we manually drop the block of codes there, it will through some error. I overcome it by replacing it on settings.gradle
.
Either way allprojects{}
seems to be obsolete now, so I thought of updating it.
What Gradle version obsoletes it? We should have both and mention which Gradle version requires the new syntax, since not everyone will be running the new version day one.
Yes, you are right. I am not sure from which gradle version allprojects{}
is removed but I can say that gradle version 7.4 doesn't have the allprojects{}
. Previous versions of gradle (eg. 6.7.1) use to have allprojects{}
. Now in gradle version 7.4 build.gradle
consists of only the plugins{}
by default (checked by creating a new project).
As you have said, not everyone will start from day one, if they find the allprojects{}
in the build.gradle
they will follow the old process only, in case they can't find it then they will implement it in settings.gradle
, this is what I requested for merging. I haven't removed the old conventional process from the handbook, just added the alternatives for newer versions.
When
allprojects{}
is missing inbuild.gradle
, set the maven repository insettings.gradle
.