forked from embeddedt/celeritas
71 lines
1.7 KiB
Kotlin
71 lines
1.7 KiB
Kotlin
import org.embeddedt.embeddium.gradle.build.conventions.LWJGLHelper
|
|
import org.embeddedt.embeddium.gradle.build.conventions.ProductionJarHelper
|
|
import xyz.wagyourtail.unimined.api.minecraft.EnvType
|
|
import xyz.wagyourtail.unimined.api.minecraft.task.AbstractRemapJarTask
|
|
import xyz.wagyourtail.unimined.api.minecraft.task.RemapJarTask
|
|
|
|
plugins {
|
|
id("celeritas.platform-conventions")
|
|
id("celeritas.unimined-platform-conventions")
|
|
}
|
|
|
|
repositories {
|
|
maven("https://maven.fabricmc.net")
|
|
}
|
|
|
|
group = "org.embeddedt"
|
|
version = rootProject.version
|
|
|
|
evaluationDependsOn(":common")
|
|
|
|
data class VersionData(val uniminedVersion: String)
|
|
|
|
val versionDataMap = mapOf(
|
|
"1.0.0-beta.7.3" to VersionData("b1.7.3"),
|
|
"1.0.0-beta.8.1" to VersionData("b1.8.1"),
|
|
"1.2.5" to VersionData("1.2.5")
|
|
)
|
|
|
|
val versionData = versionDataMap.getValue(project.name)
|
|
|
|
unimined.minecraft {
|
|
combineWith(project(":common"), project(":common").sourceSets.getByName("main"))
|
|
|
|
version = versionData.uniminedVersion
|
|
side = EnvType.CLIENT
|
|
|
|
mappings {
|
|
calamus()
|
|
feather(23)
|
|
}
|
|
|
|
fabric {
|
|
loader("0.16.14")
|
|
}
|
|
|
|
minecraftRemapper.config {
|
|
ignoreConflicts(true)
|
|
}
|
|
|
|
runs.config("client") {
|
|
javaVersion = JavaVersion.VERSION_21
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation("org.joml:joml:1.10.5")
|
|
implementation("it.unimi.dsi:fastutil:8.5.15")
|
|
implementation("com.google.guava:guava:31.1-jre")
|
|
|
|
implementation("org.apache.logging.log4j:log4j-api:2.0-beta9")
|
|
}
|
|
|
|
tasks.named<AbstractRemapJarTask>("remapJar") {
|
|
manifest {
|
|
attributes(mapOf("Calamus-Generation" to "1"))
|
|
}
|
|
}
|
|
|
|
LWJGLHelper.convertLwjgl2To3(project)
|
|
|
|
ProductionJarHelper.configureProcessedResources(project) |