mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-13 05:54:01 +01:00
e1b0cebc2c
- Use convention plugins for common build logic - Convention plugins get to be applied in the plugins block and can load other plugins - Move GeneratePackageInfosTask to its own file in buildSrc - Apply GeneratePackageInfosTask to every sourceSet
35 lines
824 B
Groovy
35 lines
824 B
Groovy
plugins {
|
|
id 'flywheel.platform'
|
|
}
|
|
|
|
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}"
|
|
|
|
modCompileOnly "maven.modrinth:embeddium:${embeddium_version}"
|
|
modCompileOnly "maven.modrinth:oculus:${oculus_version}"
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
register('mavenJava', MavenPublication) {
|
|
from(components['java'])
|
|
artifactId = "flywheel-${project.name}-${artifact_minecraft_version}"
|
|
}
|
|
}
|
|
}
|