I'm a bit confused with gradle here. Why does ``` ...
# gradle
s
I'm a bit confused with gradle here. Why does
Copy code
repositories {
        maven {
            name "Local"
            url uri("/Users/sujit.poudel/dev/android/TestProj1/build/")
        }
}
can resolve all the artifacts in the build as maven artifacts, but not:
Copy code
repositories {
        maven {
            name "Local"
            url uri("$projectDir/build/")
        }
}
does not in android project? I checked the value of
$projectDir
, and it is:
/Users/sujit.poudel/dev/android/TestProj1
. Any pointer here please?
o
not sure why it would be wrong, but perhaps the value is relative or something. I would prefer using
file("build").toUri()
or similar