2025-01-12 22:02:50 +01:00
|
|
|
plugins {
|
|
|
|
idea
|
|
|
|
java
|
|
|
|
`maven-publish`
|
|
|
|
id("dev.architectury.loom")
|
|
|
|
id("flywheel.subproject")
|
|
|
|
id("flywheel.platform")
|
|
|
|
}
|
|
|
|
|
2025-01-13 04:03:32 +01:00
|
|
|
val common = ":common"
|
2025-01-18 02:22:26 +01:00
|
|
|
val platform = ":neoforge"
|
2025-01-13 04:03:32 +01:00
|
|
|
|
2025-01-18 02:22:26 +01:00
|
|
|
subproject.init("vanillin-neoforge", "vanillin_group", "vanillin_version")
|
2025-01-12 22:02:50 +01:00
|
|
|
|
|
|
|
val main = sourceSets.getByName("main")
|
|
|
|
|
|
|
|
platform {
|
|
|
|
setupLoomRuns()
|
|
|
|
}
|
|
|
|
|
2025-01-13 04:03:32 +01:00
|
|
|
transitiveSourceSets {
|
|
|
|
sourceSet(main) {
|
|
|
|
compileClasspath(project(platform), "api", "lib")
|
2025-01-12 22:02:50 +01:00
|
|
|
|
2025-01-13 04:03:32 +01:00
|
|
|
bundleFrom(project(common), "vanillin")
|
|
|
|
}
|
2025-01-12 22:02:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
jarSets {
|
2025-01-18 22:00:33 +01:00
|
|
|
mainSet.publishWithRawSources {
|
2025-01-22 00:26:30 +01:00
|
|
|
artifactId = "vanillin-neoforge-${project.property("artifact_minecraft_version")}"
|
2025-01-18 22:00:33 +01:00
|
|
|
}
|
2025-01-12 22:02:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
defaultPackageInfos {
|
|
|
|
sources(main)
|
|
|
|
}
|
|
|
|
|
|
|
|
loom {
|
|
|
|
mixin {
|
|
|
|
useLegacyMixinAp = true
|
|
|
|
add(main, "vanillin.refmap.json")
|
|
|
|
}
|
|
|
|
|
|
|
|
runs {
|
|
|
|
configureEach {
|
|
|
|
property("forge.logging.markers", "")
|
|
|
|
property("forge.logging.console.level", "debug")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-01-18 02:22:26 +01:00
|
|
|
repositories {
|
|
|
|
maven("https://maven.neoforged.net/releases/")
|
|
|
|
}
|
|
|
|
|
2025-01-12 22:02:50 +01:00
|
|
|
dependencies {
|
2025-01-18 02:22:26 +01:00
|
|
|
neoForge("net.neoforged:neoforge:${property("neoforge_version")}")
|
|
|
|
|
|
|
|
modCompileOnly("maven.modrinth:sodium:${property("sodium_version")}-neoforge")
|
|
|
|
modCompileOnly("maven.modrinth:iris:${property("iris_version")}-neoforge")
|
2025-01-12 22:02:50 +01:00
|
|
|
|
|
|
|
modCompileOnly("maven.modrinth:embeddium:${property("embeddium_version")}")
|
|
|
|
|
2025-01-13 04:03:32 +01:00
|
|
|
compileOnly(project(path = common, configuration = "vanillinClasses"))
|
|
|
|
compileOnly(project(path = common, configuration = "vanillinResources"))
|
2025-01-12 23:04:21 +01:00
|
|
|
|
|
|
|
// JiJ flywheel proper
|
2025-01-13 04:03:32 +01:00
|
|
|
include(project(path = platform, configuration = "flywheelRemap"))
|
|
|
|
runtimeOnly(project(path = platform, configuration = "flywheelDev"))
|
2025-01-12 22:02:50 +01:00
|
|
|
}
|