52 lines
1.3 KiB
Groovy
52 lines
1.3 KiB
Groovy
plugins {
|
|
id 'fabric-loom' version '0.12-SNAPSHOT'
|
|
id 'idea'
|
|
}
|
|
|
|
archivesBaseName = "${mod_id}-fabric-${minecraft_version}"
|
|
|
|
dependencies {
|
|
// Core
|
|
minecraft "com.mojang:minecraft:${minecraft_version}"
|
|
mappings loom.officialMojangMappings()
|
|
modImplementation "net.fabricmc:fabric-loader:${fabric_loader_version}"
|
|
modImplementation "net.fabricmc.fabric-api:fabric-api:${fabric_api_version}"
|
|
implementation project(path: ':Common', configuration: 'namedElements')
|
|
|
|
// Add your deps here
|
|
}
|
|
|
|
loom {
|
|
shareCaches()
|
|
runs {
|
|
client {
|
|
client()
|
|
setConfigName("Fabric Client")
|
|
ideConfigGenerated(true)
|
|
runDir("run")
|
|
}
|
|
server {
|
|
server()
|
|
setConfigName("Fabric Server")
|
|
ideConfigGenerated(true)
|
|
runDir("run")
|
|
}
|
|
}
|
|
}
|
|
|
|
processResources {
|
|
from project(':Common').sourceSets.main.resources
|
|
inputs.property 'version', project.version
|
|
|
|
filesMatching('fabric.mod.json') {
|
|
expand 'version': project.version
|
|
}
|
|
|
|
filesMatching("${mod_id}.mixins.json") {
|
|
expand "refmap_target": "${archivesBaseName}-"
|
|
}
|
|
}
|
|
|
|
tasks.withType(JavaCompile) {
|
|
source(project(':Common').sourceSets.main.allSource)
|
|
} |