Propagating the dependencies of a module using "injected_interfaces" does not work properly #4164
Unanswered
ghost
asked this question in
Mod Dev Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Let's assume there is a mod named
foo
that injects the above interface intoLivingEntity
usinginjected_interfaces
. Additionally, suppose there is a project namedbar
, which is structured as follows:bar-core
depends onfoo
as amodApi(...)
. In this case,bar-core
can successfully call thetest()
method on theLivingEntity
instance.bar-impl
depends onbar-core
as aapi(project(":bar-core", "namedElements"))
, meaning that the dependency onfoo
has been propagated. However, in this scenario,bar-impl
cannot call thetest()
method on theLivingEntity
instance, although it can accessLivingEntityExt
.The
fabric-api
, which uses the sameinjected_interfaces
, can use the injected methods without any issues even when dependencies are propagated. However, my project does not behave this way. What could be the problem?I have tried various known methods such as cache invalidation,
genSources
, thefabric.loom.multiProjectOptimisation
option, and others, but none have been effective.My repository: https://github.com/GongjoongD0duk/batoru
Beta Was this translation helpful? Give feedback.
All reactions