mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-01-23 11:27:54 +01:00
07e66bb299
# Conflicts: # common/src/lib/java/dev/engine_room/flywheel/lib/util/ShadersModHandler.java # common/src/main/java/dev/engine_room/flywheel/impl/FlwImplXplat.java # common/src/main/java/dev/engine_room/flywheel/impl/compat/SodiumCompat.java # common/src/main/java/dev/engine_room/flywheel/impl/mixin/BlockEntityTypeMixin.java # fabric/build.gradle.kts # fabric/src/main/java/dev/engine_room/flywheel/impl/FlwImplXplatImpl.java # fabric/src/main/java/dev/engine_room/flywheel/impl/FlwLibXplatImpl.java # fabric/src/main/java/dev/engine_room/flywheel/impl/mixin/sodium/ChunkBuilderMeshingTaskMixin.java # fabric/src/main/java/dev/engine_room/flywheel/impl/mixin/sodium/SodiumMixinPlugin.java # fabric/src/main/resources/fabric.mod.json # forge/build.gradle.kts # forge/src/main/java/dev/engine_room/flywheel/impl/FlwImplXplatImpl.java # forge/src/main/java/dev/engine_room/flywheel/impl/FlwLibXplatImpl.java # forge/src/main/java/dev/engine_room/flywheel/impl/FlywheelForge.java # forge/src/main/resources/META-INF/neoforge.mods.toml # gradle.properties # gradle/wrapper/gradle-wrapper.properties
96 lines
2.3 KiB
Text
96 lines
2.3 KiB
Text
plugins {
|
|
idea
|
|
java
|
|
`maven-publish`
|
|
id("dev.architectury.loom")
|
|
id("flywheel.subproject")
|
|
id("flywheel.platform")
|
|
}
|
|
|
|
val api = sourceSets.create("api")
|
|
val lib = sourceSets.create("lib")
|
|
val backend = sourceSets.create("backend")
|
|
val stubs = sourceSets.create("stubs")
|
|
val main = sourceSets.getByName("main")
|
|
|
|
transitiveSourceSets {
|
|
compileClasspath = main.compileClasspath
|
|
|
|
sourceSet(api) {
|
|
rootCompile()
|
|
}
|
|
sourceSet(lib) {
|
|
rootCompile()
|
|
compile(api)
|
|
}
|
|
sourceSet(backend) {
|
|
rootCompile()
|
|
compile(api, lib)
|
|
}
|
|
sourceSet(stubs) {
|
|
rootCompile()
|
|
}
|
|
sourceSet(main) {
|
|
compile(api, lib, backend, stubs)
|
|
}
|
|
|
|
createCompileConfigurations()
|
|
}
|
|
|
|
platform {
|
|
commonProject = project(":common")
|
|
compileWithCommonSourceSets(api, lib, backend, stubs, main)
|
|
setupLoomMod(api, lib, backend, main)
|
|
setupLoomRuns()
|
|
setupFatJar(api, lib, backend, main)
|
|
}
|
|
|
|
jarSets {
|
|
mainSet.publish(platform.modArtifactId)
|
|
create("api", api, lib).apply {
|
|
addToAssemble()
|
|
publish(platform.apiArtifactId)
|
|
|
|
configureJar {
|
|
manifest {
|
|
attributes("Fabric-Loom-Remap" to "true")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
defaultPackageInfos {
|
|
sources(api, lib, backend, main)
|
|
}
|
|
|
|
loom {
|
|
mixin {
|
|
useLegacyMixinAp = true
|
|
add(main, "flywheel.refmap.json")
|
|
add(backend, "backend-flywheel.refmap.json")
|
|
}
|
|
|
|
runs {
|
|
configureEach {
|
|
property("forge.logging.markers", "")
|
|
property("forge.logging.console.level", "debug")
|
|
}
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
maven("https://maven.neoforged.net/releases/")
|
|
}
|
|
|
|
dependencies {
|
|
neoForge("net.neoforged:neoforge:${property("neoforge_version")}")
|
|
|
|
modCompileOnly("maven.modrinth:sodium:${property("sodium_version")}-neoforge")
|
|
modCompileOnly("maven.modrinth:iris:${property("iris_version")}-neoforge")
|
|
|
|
"forApi"(project(path = ":common", configuration = "commonApiOnly"))
|
|
"forLib"(project(path = ":common", configuration = "commonLib"))
|
|
"forBackend"(project(path = ":common", configuration = "commonBackend"))
|
|
"forStubs"(project(path = ":common", configuration = "commonStubs"))
|
|
"forMain"(project(path = ":common", configuration = "commonImpl"))
|
|
}
|