Slackbot
07/17/2022, 12:06 PMThomas Broyer
07/17/2022, 12:08 PMmetadata/versioning/release
in the maven-metadata.xml
for the groupId/artifactId, so if it doesn't do what you expect, I'd first check the content of that file.Martmists
07/17/2022, 12:10 PMVampire
07/17/2022, 12:39 PMMartmists
07/17/2022, 12:42 PMadd
in dependencies:
configurations.all {
resolutionStrategy {
componentSelection {
all {
if (candidate.group == "io.github.gunpowder" && candidate.module == "gunpowder") {
val parts = candidate.version.split("+")
if (parts.last() != ext.minecraftVersion) {
reject("Version should match minecraft version ${ext.minecraftVersion}, got ${candidate.version}")
}
}
}
}
}
}
dependencies {
add("modApi", "io.github.gunpowder:gunpowder:latest.release")
}
If I add a println(candidate.version)
line before the version.split, it always says 2.0.0+1.18.2
Martmists
07/17/2022, 12:57 PMmetadata > versioning > versions
in order, assuming the first entry is the most recent one, but I don't have enough knowledge of gradle to know whether this is true or notVampire
07/17/2022, 12:58 PMMartmists
07/17/2022, 1:04 PMlatest.release
or maven-metadata.xml
seems to be cached, so even when a new version is published it doesn't seem to pull it in unless I wipe ~/.gradle/cachesVampire
07/17/2022, 1:05 PMVampire
07/17/2022, 1:05 PM--refresh-dependencies
to force a refreshMartmists
07/17/2022, 1:06 PMVampire
07/17/2022, 1:07 PMVampire
07/17/2022, 1:07 PMwithModule
in componentSelection
instead of all
and then checking the coordinates manually.Martmists
07/17/2022, 1:08 PMVampire
07/17/2022, 1:09 PMVampire
07/17/2022, 1:10 PMMartmists
07/17/2022, 1:12 PMVampire
07/17/2022, 1:14 PMbuildscript
block.Vampire
07/17/2022, 1:14 PMVampire
07/17/2022, 1:15 PM