mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-10 20:45:59 +01:00
36362170c7
- Move common build script stuff to buildSrc - Set ideaSyncTask finalizedBy generatePackageInfos directly in package-infos.gradle - Enable loom multiproject optimization, though not sure if it makes a difference for us yet
45 lines
1.2 KiB
Groovy
45 lines
1.2 KiB
Groovy
plugins {
|
|
id 'idea'
|
|
id 'java'
|
|
id 'maven-publish'
|
|
id 'dev.architectury.loom'
|
|
}
|
|
|
|
apply from: rootProject.file('buildSrc/simple-java.gradle')
|
|
apply from: rootProject.file('buildSrc/subprojects.gradle')
|
|
apply from: rootProject.file('buildSrc/platforms.gradle')
|
|
apply from: rootProject.file('buildSrc/package-infos.gradle')
|
|
|
|
loom {
|
|
forge {
|
|
mixinConfig 'flywheel.backend.mixins.json'
|
|
mixinConfig 'flywheel.impl.mixins.json'
|
|
mixinConfig 'flywheel.impl.sodium.mixins.json'
|
|
}
|
|
|
|
runs {
|
|
configureEach {
|
|
property 'forge.logging.markers', ''
|
|
property 'forge.logging.console.level', 'debug'
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
forge "net.minecraftforge:forge:${minecraft_version}-${forge_version}"
|
|
|
|
compileOnly project(path: ':common', configuration: 'namedElements')
|
|
|
|
modCompileOnly "maven.modrinth:embeddium:${embeddium_version}"
|
|
modCompileOnly "maven.modrinth:oculus:${oculus_version}"
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
register('mavenJava', MavenPublication) {
|
|
from(components['java'])
|
|
artifactId = "flywheel-${project.name}-intermediary-${artifact_minecraft_version}"
|
|
}
|
|
}
|
|
}
|