1
0
This repository has been archived on 2025-08-13. You can view files and clone it, but cannot push or open issues or pull requests.
Files
multiplatform-template/Fabric/build.gradle
2023-06-11 13:26:01 +02:00

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)
}