Flywheel/forge/build.gradle

45 lines
1.2 KiB
Groovy
Raw Normal View History

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')
2024-04-17 21:05:04 +02:00
loom {
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-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}"
compileOnly project(path: ':common', configuration: 'namedElements')
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
}
publishing {
publications {
register('mavenJava', MavenPublication) {
2024-04-22 02:15:21 +02:00
from(components['java'])
2024-04-17 21:05:04 +02:00
artifactId = "flywheel-${project.name}-intermediary-${artifact_minecraft_version}"
}
}
}