Initial Commit
This commit is contained in:
52
Fabric/build.gradle
Normal file
52
Fabric/build.gradle
Normal file
@@ -0,0 +1,52 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user