Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 23 additions & 12 deletions mapsync-mod/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ plugins {
private val mod_name = project.property("mod_name").toString()
version = "${project.property("mod_version")}-${libs.versions.minecraft.get()}"

private val modLocalDep = configurations.create("modLocalDep")

base {
archivesName = project.property("archives_base_name").toString()
}
Expand All @@ -28,12 +30,21 @@ dependencies {
}
modImplementation(libs.fabricLoader)
modImplementation(libs.fabricApi)
modLocalRuntime(libs.fixChat)
modLocalDep(libs.fixChat)
modImplementation(libs.modmenu)

modImplementation(libs.voxelmap)
modCompileOnly(libs.journeymap)
modCompileOnly(libs.xaerosmap)
libs.voxelmap.also {
modCompileOnly(it)
//modLocalDep(it) // Uncomment to test VoxelMap
}
libs.journeymap.also {
modCompileOnly(it)
//modLocalDep(it) // Uncomment to test JourneyMap
}
libs.xaerosmap.also {
modCompileOnly(it)
//modLocalDep(it) // Uncomment to test XaerosMap
}
}

repositories {
Expand Down Expand Up @@ -99,16 +110,16 @@ tasks {
expand(expansions)
}
}
val distDir = file("./dist")
val cleanDistDir = register<Delete>("cleanDistDir") {
delete(fileTree(distDir) {
include("*.jar")
})
val copyRunClientDeps = register<Sync>("copyMapSyncRunClientDependencies") {
from(modLocalDep)
into(file("run/mods/"))
}
runClient {
dependsOn(copyRunClientDeps)
}
val copyDistJar = register<Copy>("copyDistJar") {
dependsOn(cleanDistDir)
val copyDistJar = register<Sync>("distJar") {
from(remapJar)
into(distDir)
into(file("dist/"))
}
build {
dependsOn(copyDistJar)
Expand Down