mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-01-23 11:27:54 +01:00
045b065166
- Move source set bundling/common source set sharing logic into transitiveSourceSets and make it more flexible - Remove commonProject field from platform extension
67 lines
1.5 KiB
Text
67 lines
1.5 KiB
Text
plugins {
|
|
idea
|
|
java
|
|
`maven-publish`
|
|
id("dev.architectury.loom")
|
|
id("flywheel.subproject")
|
|
id("flywheel.platform")
|
|
}
|
|
|
|
val common = ":common"
|
|
val platform = ":forge"
|
|
|
|
subproject.init("vanillin-forge", "vanillin_group", "vanillin_version")
|
|
|
|
val main = sourceSets.getByName("main")
|
|
|
|
platform {
|
|
setupLoomRuns()
|
|
}
|
|
|
|
transitiveSourceSets {
|
|
sourceSet(main) {
|
|
compileClasspath(project(platform), "api", "lib")
|
|
|
|
bundleFrom(project(common), "vanillin")
|
|
}
|
|
}
|
|
|
|
jarSets {
|
|
mainSet.publish("vanillin-forge-${project.property("artifact_minecraft_version")}")
|
|
}
|
|
|
|
defaultPackageInfos {
|
|
sources(main)
|
|
}
|
|
|
|
loom {
|
|
mixin {
|
|
useLegacyMixinAp = true
|
|
add(main, "vanillin.refmap.json")
|
|
}
|
|
|
|
forge {
|
|
// mixinConfig("flywheel.backend.mixins.json")
|
|
// mixinConfig("flywheel.impl.mixins.json")
|
|
}
|
|
|
|
runs {
|
|
configureEach {
|
|
property("forge.logging.markers", "")
|
|
property("forge.logging.console.level", "debug")
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
forge("net.minecraftforge:forge:${property("minecraft_version")}-${property("forge_version")}")
|
|
|
|
modCompileOnly("maven.modrinth:embeddium:${property("embeddium_version")}")
|
|
|
|
compileOnly(project(path = common, configuration = "vanillinClasses"))
|
|
compileOnly(project(path = common, configuration = "vanillinResources"))
|
|
|
|
// JiJ flywheel proper
|
|
include(project(path = platform, configuration = "flywheelRemap"))
|
|
runtimeOnly(project(path = platform, configuration = "flywheelDev"))
|
|
}
|