plugins {
id 'java'
id 'common'
id 'net.fabricmc.fabric-loom'
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(java_version)
}
}
loom {
runs {
client {
// This will also add the mod module to the development environment
ideConfigGenerated true
}
}
}
repositories {
maven {
name = "defaulted_drops-GitLab"
url = "https://gitlab.com/api/v4/projects/32841879/packages/maven"
}
}
dependencies {
minecraft libs.minecraft
implementation libs.fabric.loader // โ Loom
implementation libs.fabric.api
implementation(project(':mod')) {
exclude group: 'net.fabricmc', module: 'fabric-loader'
}
}
processResources {
final expanding = [ VERSION: project.version ]
inputs.property('VERSION', project.version)
expanding.putAll sssModMin.fmjExpansion.configureExpansions(processResources, project)
filesMatching('fabric.mod.json') {
expand(expanding)
}
}