Wrong location for configuration value `MOJANG_PRODUCTION` when using groovy
mastercake10 opened this issue · comments
MasterCake commented
Using this groovy config:
plugins {
id "io.papermc.paperweight.userdev" version "1.6.2"
}
paperweight.reobfArtifactConfiguration = io.papermc.paperweight.userdev.ReobfArtifactConfiguration.MOJANG_PRODUCTION
dependencies {
implementation project(':abstraction')
paperweight.paperDevBundle("1.20.5-R0.1-SNAPSHOT")
}
Gives the error
* What went wrong:
A problem occurred evaluating project ':paper'.
> No such property: MOJANG_PRODUCTION for class: io.papermc.paperweight.userdev.ReobfArtifactConfiguration
Changing the line 5 to
paperweight.reobfArtifactConfiguration = io.papermc.paperweight.userdev.ReobfArtifactConfiguration.Companion.MOJANG_PRODUCTION
fixes it.
leguan commented
Woops. Yeah the above value is for kotlin. Your "fix" is the correct version for groovy.