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
Javier
05/13/2024, 10:44 AM
you shouldn’t
Javier
05/13/2024, 10:45 AM
Or you mean getting it as dependency?
Javier
05/13/2024, 10:46 AM
the path for the root module if you haven’t change it is
:
a
axeon
05/13/2024, 10:54 AM
Sorry but how would I include it? Do I need to add the root module as a dependency?
j
Javier
05/13/2024, 11:02 AM
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
Vampire
05/13/2024, 11:21 AM
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
CLOVIS
05/13/2024, 12:00 PM
If you use typesafe project accessors, it is generated after the