38 lines
935 B
Groovy
38 lines
935 B
Groovy
plugins {
|
|
id 'fabric-loom' version '1.11-SNAPSHOT'
|
|
}
|
|
|
|
version = '1.0'
|
|
group = 'com.yourname'
|
|
base.archivesName = 'modid'
|
|
actualmodid = 'landanaleaf'
|
|
|
|
loom {
|
|
mixin {
|
|
defaultRefmapName = actualmodid + ".refmap.json"
|
|
}
|
|
|
|
if (file("src/main/resources/META-INF/landanaleaf.accesswidener").exists())
|
|
accessWidenerPath = file("src/main/resources/META-INF/landanaleaf.accesswidener")
|
|
}
|
|
|
|
dependencies {
|
|
minecraft "com.mojang:minecraft:1.21.8"
|
|
mappings loom.officialMojangMappings()
|
|
modImplementation "net.fabricmc:fabric-loader:0.17.2"
|
|
|
|
//Fabric api
|
|
modImplementation "net.fabricmc.fabric-api:fabric-api:0.133.4+1.21.8"
|
|
}
|
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
it.options.release = 21
|
|
}
|
|
|
|
java {
|
|
withSourcesJar()
|
|
sourceCompatibility = JavaVersion.VERSION_21
|
|
targetCompatibility = JavaVersion.VERSION_21
|
|
}
|
|
|
|
apply from: 'mcreator.gradle' |