Hello, how can I access top-level module from a su...
# gradle
a
Hello, how can I access top-level module from a submodule? My structure looks like this:
Copy code
Root project 'Rin'
\--- Project ':ksp' // access Rin from ksp
j
you shouldn’t
Or you mean getting it as dependency?
the path for the root module if you haven’t change it is
:
a
Sorry but how would I include it? Do I need to add the root module as a dependency?
j
Yes, it is like other module. IMO it is not usual to use root project to have code if you are working in a multimodule environment. I would move it if I was you.
v
IMO it is not usual to use root project to have code if you are working in a multimodule environment
I don't agree, I find it quite normal. But yeah, as Javier said, you would have
project(":")
as a dependency in `ksp`'s build script
c
If you use typesafe project accessors, it is generated after the
rootProject.name
configuration option
2
a
That works, thanks!