2024-04-22 20:51:28 +02:00
|
|
|
plugins {
|
2024-04-27 02:04:00 +02:00
|
|
|
id 'idea'
|
|
|
|
id 'java'
|
|
|
|
id 'maven-publish'
|
|
|
|
id 'dev.architectury.loom'
|
|
|
|
id 'flywheel.package-infos'
|
|
|
|
id 'flywheel.subproject'
|
2024-04-25 19:37:12 +02:00
|
|
|
id 'flywheel.platform'
|
2024-04-30 02:01:18 +02:00
|
|
|
id 'flywheel.jar-sets'
|
2024-04-29 23:33:51 +02:00
|
|
|
id 'flywheel.transitive-source-sets'
|
2024-04-22 20:51:28 +02:00
|
|
|
}
|
|
|
|
|
2024-04-29 23:33:51 +02:00
|
|
|
transitiveSourceSets {
|
|
|
|
compileClasspath = sourceSets.main.compileClasspath
|
|
|
|
|
|
|
|
create('api') {
|
|
|
|
rootCompile()
|
|
|
|
}
|
|
|
|
create('lib') {
|
|
|
|
rootCompile()
|
|
|
|
compile sourceSets.api
|
|
|
|
}
|
|
|
|
create('backend') {
|
|
|
|
rootCompile()
|
|
|
|
compile sourceSets.api, sourceSets.lib
|
|
|
|
}
|
|
|
|
sourceSet(sourceSets.main) {
|
|
|
|
compile sourceSets.api, sourceSets.lib, sourceSets.backend
|
|
|
|
}
|
|
|
|
|
|
|
|
createCompileConfigurations()
|
|
|
|
}
|
|
|
|
|
2024-04-30 02:01:18 +02:00
|
|
|
platform {
|
|
|
|
commonProject = project(':common')
|
|
|
|
sources sourceSets.api, sourceSets.lib, sourceSets.backend, sourceSets.main
|
|
|
|
compileWithCommonSourceSets()
|
|
|
|
setupLoomMod()
|
|
|
|
setupLoomRuns()
|
|
|
|
setupFatJar()
|
|
|
|
publishMod()
|
|
|
|
publishRemap(apiArtifactId, jarSets.createJars('api', sourceSets.api, sourceSets.lib))
|
|
|
|
}
|
|
|
|
|
2024-04-28 06:15:42 +02:00
|
|
|
defaultPackageInfos {
|
2024-04-30 02:01:18 +02:00
|
|
|
sources sourceSets.api, sourceSets.lib, sourceSets.backend, sourceSets.main
|
2024-04-28 06:15:42 +02:00
|
|
|
}
|
|
|
|
|
2024-04-17 21:05:04 +02:00
|
|
|
loom {
|
2024-04-19 02:12:13 +02:00
|
|
|
forge {
|
2024-04-22 02:15:21 +02:00
|
|
|
mixinConfig 'flywheel.backend.mixins.json'
|
|
|
|
mixinConfig 'flywheel.impl.mixins.json'
|
|
|
|
mixinConfig 'flywheel.impl.sodium.mixins.json'
|
2024-04-19 02:12:13 +02:00
|
|
|
}
|
|
|
|
|
2024-04-17 21:05:04 +02:00
|
|
|
runs {
|
|
|
|
configureEach {
|
|
|
|
property 'forge.logging.markers', ''
|
|
|
|
property 'forge.logging.console.level', 'debug'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
forge "net.minecraftforge:forge:${minecraft_version}-${forge_version}"
|
|
|
|
|
2024-04-22 02:15:21 +02:00
|
|
|
modCompileOnly "maven.modrinth:embeddium:${embeddium_version}"
|
|
|
|
modCompileOnly "maven.modrinth:oculus:${oculus_version}"
|
2024-04-17 21:05:04 +02:00
|
|
|
|
2024-04-27 06:23:42 +02:00
|
|
|
forApi project(path: ':common', configuration: 'commonApiOnly')
|
2024-04-27 02:04:00 +02:00
|
|
|
forLib project(path: ':common', configuration: 'commonLib')
|
|
|
|
forBackend project(path: ':common', configuration: 'commonBackend')
|
2024-04-29 23:33:51 +02:00
|
|
|
forMain project(path: ':common', configuration: 'commonImpl')
|
2024-04-17 21:05:04 +02:00
|
|
|
}
|