Skip to content

Wrong location for configuration value MOJANG_PRODUCTION when using groovy #243

@mastercake10

Description

@mastercake10

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions