FabricMC / fabric-loom

Gradle build system plugin used to automate the setup of a minecraft mod development environment.
MIT License
242 stars 212 forks source link

Support dependency remapping with more configurations #57

Closed JamiesWhiteShirt closed 5 years ago

JamiesWhiteShirt commented 5 years ago

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 as runtimeOnly

First of all, compile has been deprecated. At minimum we might want to deprecate modCompile and introduce modImplementation, but more ideally I think remapping should work with any configuration. This has been shown to work in practice in ForgeGradle.

sargunv commented 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.

liach commented 5 years ago

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?

modmuss50 commented 5 years ago

Long since added.