i want to aquire the project root from a kotlin module
n
Nikky
04/20/2019, 4:00 PM
as mentioned before you can know the projectRoot at build time and then use a gradle task to somehow pass it to the program
i have done that by writing it into
META-INF/MANFIFEST.MF
or using kotlin-poet to generate a constants object
Nikky
04/20/2019, 4:01 PM
i hope this is what you are trying to achive.. because then the compiled code will contain info fom the buildsystem, it will probably break when executed on other devices