neoforged / NeoGradle

Gradle plugin for NeoForge development
GNU Lesser General Public License v2.1
41 stars 25 forks source link

Split source sets #117

Open Technici4n opened 6 months ago

Technici4n commented 6 months ago

Feature request: Introduce split source sets, a feature that mods can opt into to have client and common code in separate source sets. This provides a compile-time guarantee that client code will never be called from common code (which also needs to run on dedicated servers). It has been confirmed that Minecraft is developed with a similar setup.

Potential problems:

lukebemish commented 5 months ago

Allowing mods to publish separate client/shared artifacts should not be particularly difficult, all things considered; it's not hard to solve at all with the variant selection tools that gradle gives you.