mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-13 05:54:01 +01:00
8d4fe7722c
- Apply java, maven-publish to all projects - Prefer the tasks.named() syntax for configuring tasks - Separate shared configuration for platform projects into a separate configure block - Add more fields to processResources - Make helper methods static - Exclude duplicated package infos
43 lines
1.1 KiB
Groovy
43 lines
1.1 KiB
Groovy
// Add some forge specific configurations
|
|
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}"
|
|
}
|
|
}
|
|
repositories {
|
|
maven {
|
|
url "file://${rootProject.projectDir}/mcmodsrepo"
|
|
}
|
|
|
|
if (project.hasProperty('mavendir')) {
|
|
maven { url rootProject.file(property('mavendir')) }
|
|
}
|
|
}
|
|
}
|