Skip to content

Allow using a VersionFactory/Rich Version in for neoForge.version #161

Closed as not planned
@Tslat

Description

@Tslat

The build.gradle line for version in the neoForge block explicitly requires a string.

This is a problem for people who use version catalogues, because it doesn't allow resolution of the version artifact from the catalogue, and forces you to explicitly type the version again as a string

E.G.

neoForge {
  version = "21.1.57" // I have to explicitly type the version string here (or use gradle properties, etc..)
}

I want to be able to use the version I already defined in my version catalogue (as is gradle's recommendation)

neoforge {
  version = libs.versions.neoForge // Version catalogue VersionFactory, same as you'd use for a dependency
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions