Closed JamiesWhiteShirt closed 5 years ago
I'd love to see a version of api
and implementation
that supports remapping. It'd make managing dependencies so much easier.
Can we just make a separate configuration modDep
for deobfuscating a dependency, and users declare their own which modDep and api or implementation extend from?
Long since added.
The dependency management page for the Java Plugin explains how configurations should probably be dealt with.
The Java Library Plugin adds a few more configurations as well.
A possible use case is for mods exposing an API with separate API and implementation artifacts. The API would be depended on as
compileOnly
and the implementation asruntimeOnly
First of all,
compile
has been deprecated. At minimum we might want to deprecatemodCompile
and introducemodImplementation
, but more ideally I think remapping should work with any configuration. This has been shown to work in practice in ForgeGradle.