paperweight
paperweight copied to clipboard
Adds a variants from configuration
When maven publish plugin is present on userdev projects a normal publish results into a wrong module file in maven repository.
This commit adds the missing reobfuscated jars to this module file.
The initial issue is that depending on the reobfuscated plugin dependency results into loading the dev dependency because no reobfuscated one is defined in the module file.
Example: before that change: https://eldonexus.de/repository/maven-releases/com/github/yannicklamprecht/worldborderapi/1.181.1/worldborderapi-1.181.1.module after that change: https://eldonexus.de/repository/maven-releases/com/github/yannicklamprecht/worldborderapi/1.181.2/worldborderapi-1.181.2.module
The diffs are the missing files in the two variants: apiElements
and runtimeElements