mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-01-23 03:17:53 +01:00
10d3923bf5
- Publish common vanillin artifacts - Extend JarTaskSet publish to accept an action
64 lines
1.4 KiB
Text
64 lines
1.4 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.publishWithRawSources {
|
|
artifactId = "vanillin-forge-${project.property("artifact_minecraft_version")}"
|
|
}
|
|
}
|
|
|
|
defaultPackageInfos {
|
|
sources(main)
|
|
}
|
|
|
|
loom {
|
|
mixin {
|
|
useLegacyMixinAp = true
|
|
add(main, "vanillin.refmap.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"))
|
|
}
|