is there a way to get the path notation of a gradl...
# gradle
d
is there a way to get the path notation of a gradle submodule? for example
:mainModule:submodule1:submodule2
? now i'm using this code snippet
Copy code
val libParents = mutableListOf(name)
var tempParent = parent
while (tempParent != null) {
  libParents.add(tempParent!!.name)
  tempParent = tempParent!!.parent
}
then i use it with
joinToString()
. if not, is it possible to optimize that code, removing the
temp
,
var
or even the
while
loop? maybe using a kotlin fold function or something like that
😶 1
e
are you looking for
project.path
?
d
yes thanks. i though it would return the path on disk