2024-04-21 03:28:54 +02:00
|
|
|
// Add some forge specific configurations
|
2024-04-17 21:05:04 +02:00
|
|
|
loom {
|
2024-04-19 02:12:13 +02:00
|
|
|
forge {
|
|
|
|
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-17 21:32:36 +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) {
|
|
|
|
from(components["java"])
|
|
|
|
artifactId = "flywheel-${project.name}-intermediary-${artifact_minecraft_version}"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
repositories {
|
|
|
|
maven {
|
2024-04-17 21:21:28 +02:00
|
|
|
url "file://${rootProject.projectDir}/mcmodsrepo"
|
2024-04-17 21:05:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
if (project.hasProperty('mavendir')) {
|
|
|
|
maven { url rootProject.file(property('mavendir')) }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|