mirror of
https://github.com/Pridecraft-Studios/joy.git
synced 2025-08-03 14:36:03 -04:00
57 lines
1.5 KiB
Plaintext
57 lines
1.5 KiB
Plaintext
val xplat = project(":xplat")
|
|
val xplatClient = xplat.sourceSets.client.get()
|
|
val xplatMain = xplat.sourceSets.main.get()
|
|
|
|
val modrinthId: String by project
|
|
/*
|
|
sourceSets {
|
|
client {
|
|
compileClasspath += xplatClient.compileClasspath;
|
|
runtimeClasspath += xplatClient.runtimeClasspath;
|
|
}
|
|
}*/
|
|
|
|
dependencies {
|
|
modImplementation(libs.bundles.fabric)
|
|
compileOnly(project(":xplat", configuration = "namedElements"))
|
|
clientCompileOnly(xplatClient.output)
|
|
|
|
modCompileOnly(variantOf(rootProject.libs.emi.fabric) { classifier("api") })
|
|
|
|
include(libs.bundles.fabric.bundle)
|
|
modImplementation(libs.bundles.fabric.bundle)
|
|
modRuntimeOnly(libs.bundles.fabric.runtime)
|
|
}
|
|
|
|
tasks {
|
|
compileClientJava {
|
|
source(xplatClient.allSource)
|
|
}
|
|
compileJava {
|
|
source(xplatMain.allSource)
|
|
}
|
|
processClientResources {
|
|
from(xplatClient.resources)
|
|
}
|
|
processResources {
|
|
from(xplatMain.resources)
|
|
}
|
|
publish {
|
|
dependsOn(modrinth)
|
|
}
|
|
}
|
|
|
|
modrinth {
|
|
token.set(System.getenv("MODRINTH_TOKEN"))
|
|
projectId.set(modrinthId)
|
|
//versionType.set(meta.releaseType)
|
|
//versionName.set("${meta.projectVersion} - Fabric ${libs.versions.minecraft.version.get()}")
|
|
versionNumber.set("${project.version}-fabric")
|
|
//changelog.set(meta.changelog)
|
|
uploadFile.set(tasks.remapJar)
|
|
dependencies {
|
|
}
|
|
//gameVersions.set(meta.minecraftCompatible)
|
|
loaders.addAll("fabric", "quilt")
|
|
}
|