Flywheel/forge/build.gradle
Jozufozu ec685ebdc0 Out for a run
- Move loom.runs into subprojects closure
- Move common code sharing into subprojects closure
- Apply java plugin
- Fix runs not being generated by moving generatePackageInfos to the
  bottom
2024-05-17 08:43:56 -07:00

50 lines
1.2 KiB
Groovy

evaluationDependsOn(':common')
base {
archivesName = "flywheel-${project.name}-${artifact_minecraft_version}"
}
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"
compileOnly "com.google.code.findbugs:jsr305:3.0.2"
}
publishing {
publications {
register('mavenJava', MavenPublication) {
from(components["java"])
artifactId = "flywheel-${project.name}-intermediary-${artifact_minecraft_version}"
}
}
repositories {
maven {
url "file://${rootProject.projectDir}/mcmodsrepo"
}
if (project.hasProperty('mavendir')) {
maven { url rootProject.file(property('mavendir')) }
}
}
}