mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-04-23 11:48:15 +02:00
Fix dependency relocations
This commit is contained in:
@@ -29,9 +29,9 @@ fun DependencyHandlerScope.loadDependencies(project: Project) {
|
||||
|
||||
// Load dependencies
|
||||
dependenciesBlock.elements("dependency").forEach { dependencyElem ->
|
||||
val groupId = dependencyElem.search("groupId").firstOrNull()!!.textContent
|
||||
val artifactId = dependencyElem.search("artifactId").firstOrNull()!!.textContent
|
||||
val version = dependencyElem.search("version").firstOrNull()!!.textContent.applyReplacements(
|
||||
val groupId = dependencyElem.search("groupId").first().textContent
|
||||
val artifactId = dependencyElem.search("artifactId").first().textContent
|
||||
val version = dependencyElem.search("version").first().textContent.applyReplacements(
|
||||
mapOf(
|
||||
"project.version" to "${project.toothpick.minecraftVersion}-${project.toothpick.nmsRevision}",
|
||||
"minecraft.version" to project.toothpick.minecraftVersion
|
||||
|
||||
Reference in New Issue
Block a user