https://kotlinlang.org logo
Title
s

Sujit

10/24/2019, 5:42 PM
I'm a bit confused with gradle here. Why does
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:
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

octylFractal

10/24/2019, 5:47 PM
not sure why it would be wrong, but perhaps the value is relative or something. I would prefer using
file("build").toUri()
or similar