SpongePowered / SpongeGradle

Handy gradle utilities for the various gradle projects of SpongePowered
MIT License
21 stars 16 forks source link

11.0.0-SNAPSHOT apiVersion uses 1.20 instead of 1.20.1 for spongeRuntime #70

Open jpenilla opened 1 year ago

jpenilla commented 1 year ago

The + version from SpongePluginGradle#addRuntimeDependency is selecting 1.20 over 1.20.1, it's also in the wrong order on the Nexus web ui

Screenshot

As a workaround I forced the version with

configurations.spongeRuntime {
    resolutionStrategy {
        eachDependency {
            if (target.name == "spongevanilla") {
                useVersion("1.20.1-11.0.0-RC1356")
            }
        }
    }
}
jpenilla commented 1 year ago

1.20.+ also seems to work for the version override workaround