in android settings.gradle.kts in dependencyresol...
# community-support
c
in android settings.gradle.kts in dependencyresolutionManagement block whats the difference between repositoriesMode.set(FAIL_ON_PROJECT_REPOS) and repositoriesMode = FAIL_ON_PROJECT_REPOS same thing?
👀 1
v
Yes
It uses the assignment Kotlin compiler plugin so that you can use
=
when there is actually a
Property
you set
If you use
repositoriesMode.assign
and navigate to the source of it, you see what it will do.
=
translates in the compilation to
assign
and
assign
then handles it, like calling
set
for a
Property
or
setFrom
for a
ConfigurableFileCollection
j
... and
.set()
is usually seen in older code, published before that plugin appeared.
v
Or in build-logic code that is not using that compiler plugin like plugins written in Java or Groovy or Scala, or also in Kotlin without that plugin
c
I think .set() comes by default in android new project wizard. i can submit a bug report for them to update it to = if that's the newer rec. Thanks all!
👌 1