2024-03-14 05:09:55 +00:00
|
|
|
plugins {
|
|
|
|
alias libs.plugins.quilt.loom
|
|
|
|
}
|
|
|
|
|
|
|
|
base {
|
|
|
|
archivesName = project.archives_base_name
|
|
|
|
}
|
|
|
|
|
|
|
|
version = "$project.version+${libs.versions.minecraft.get()}"
|
|
|
|
group = project.maven_group
|
|
|
|
|
|
|
|
repositories {
|
2024-03-16 02:01:13 +00:00
|
|
|
maven {
|
|
|
|
name = "Fabric"
|
|
|
|
url = "https://maven.fabricmc.net/"
|
|
|
|
}
|
2024-03-14 05:09:55 +00:00
|
|
|
maven {
|
|
|
|
name = "TerraformersMC"
|
|
|
|
url = "https://maven.terraformersmc.com/"
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
name = "Ladysnake Libs"
|
|
|
|
url = "https://maven.ladysnake.org/releases"
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
name = "Sleeping Town"
|
|
|
|
url = "https://repo.sleeping.town"
|
|
|
|
content {
|
|
|
|
includeGroup "com.unascribed"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
loom {
|
|
|
|
// Loom and Loader both use this block in order to gather more information about your mod.
|
|
|
|
mods {
|
|
|
|
// This should match your mod id.
|
|
|
|
"scout" {
|
|
|
|
// Tell Loom about each source set used by your mod here. This ensures that your mod's classes are properly transformed by Loader.
|
|
|
|
sourceSet("main")
|
|
|
|
// If you shade (directly include classes, not JiJ) a dependency into your mod, include it here using one of these methods:
|
|
|
|
// dependency("com.example.shadowedmod:1.2.3")
|
|
|
|
// configuration("exampleShadedConfigurationName")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2024-03-16 02:01:13 +00:00
|
|
|
minecraft "com.mojang:minecraft:${libs.versions.minecraft.get()}"
|
|
|
|
mappings "net.fabricmc:yarn:${libs.versions.minecraft.get()}+${libs.versions.yarn.get()}:v2"
|
|
|
|
modImplementation "net.fabricmc:fabric-loader:${libs.versions.fabric.loader.get()}"
|
2024-03-14 05:09:55 +00:00
|
|
|
|
2024-03-16 02:01:13 +00:00
|
|
|
modImplementation "net.fabricmc.fabric-api:fabric-api:${libs.versions.fabric.api.get()}+${libs.versions.minecraft.get()}"
|
2024-03-14 05:09:55 +00:00
|
|
|
|
2024-03-14 19:31:52 +00:00
|
|
|
// not JiJ because it causes its mixins to fail to load
|
|
|
|
modApi "dev.emi:trinkets:${libs.versions.trinkets.get()}"
|
2024-03-14 05:09:55 +00:00
|
|
|
modApi include("com.unascribed:lib39-core:${libs.versions.lib39.get()}+${libs.versions.minecraft.get()}")
|
|
|
|
modApi include("com.unascribed:lib39-dessicant:${libs.versions.lib39.get()}+${libs.versions.minecraft.get()}")
|
|
|
|
|
|
|
|
modCompileOnly "dev.emi:emi-fabric:${libs.versions.emi.get()}+${libs.versions.minecraft.get()}:api"
|
|
|
|
modLocalRuntime "dev.emi:emi-fabric:${libs.versions.emi.get()}+${libs.versions.minecraft.get()}"
|
|
|
|
}
|
|
|
|
|
|
|
|
processResources {
|
2024-03-14 16:22:56 +00:00
|
|
|
inputs.property 'version', version
|
|
|
|
inputs.property 'minecraft_version', libs.versions.minecraft.get()
|
2024-03-16 02:01:13 +00:00
|
|
|
inputs.property 'fabric_version', libs.versions.fabric.api.get()
|
2024-03-14 16:22:56 +00:00
|
|
|
inputs.property 'trinkets_version', libs.versions.trinkets.get()
|
|
|
|
inputs.property 'lib39_version', libs.versions.lib39.get()
|
|
|
|
inputs.property 'emi_version', libs.versions.emi.get()
|
2024-03-14 05:09:55 +00:00
|
|
|
|
2024-03-16 02:01:13 +00:00
|
|
|
filesMatching('fabric.mod.json') {
|
2024-03-14 16:22:56 +00:00
|
|
|
expand (
|
|
|
|
"version": version,
|
|
|
|
"minecraft_version": libs.versions.minecraft.get(),
|
2024-03-16 02:01:13 +00:00
|
|
|
"fabric_version": libs.versions.fabric.api.get(),
|
2024-03-14 16:22:56 +00:00
|
|
|
"trinkets_version": libs.versions.trinkets.get(),
|
|
|
|
"lib39_version": libs.versions.lib39.get(),
|
|
|
|
"emi_version": libs.versions.emi.get()
|
|
|
|
)
|
2024-03-14 05:09:55 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
|
|
it.options.encoding = 'UTF-8'
|
|
|
|
// Minecraft 1.18 (1.18-pre2) upwards uses Java 17.
|
|
|
|
it.options.release = 17
|
|
|
|
}
|
|
|
|
|
|
|
|
java {
|
|
|
|
// Still required by IDEs such as Eclipse and Visual Studio Code
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
from('LICENSE') {
|
|
|
|
rename { "${it}_${base.archivesName.get()}" }
|
|
|
|
}
|
|
|
|
}
|