Files
MoonriseMC/fabric/build.gradle
Jason Penilla cd5b6c037b Initial profiler commands (#2)
* Initial profiler commands

* copy paste

* leaf

* add todo

* command feedback

* Allow all commands in SP without cheats

* fix SP command check

* make client commands actual client commands

* Start client profile command implementation

* Remove ArgumentParser class

---------

Co-authored-by: Spottedleaf <Spottedleaf@users.noreply.github.com>
2024-08-08 21:07:13 -07:00

47 lines
1.6 KiB
Groovy

plugins {
id("xyz.jpenilla.quiet-architectury-loom")
id 'maven-publish'
id 'io.github.goooler.shadow'
}
configurations.create("libs")
configurations.shadow {
extendsFrom(configurations.libs)
}
configurations.implementation {
extendsFrom(configurations.libs)
}
dependencies {
add('shadow', project([path: ":", configuration: "namedElements"]))
runtimeOnly(project(":").sourceSets.main.output)
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
libs("ca.spottedleaf:concurrentutil:${rootProject.concurrentutil_version}")
libs("org.yaml:snakeyaml:${rootProject.snakeyaml_version}")
modImplementation "me.shedaniel.cloth:cloth-config-fabric:${rootProject.cloth_version}"
include "me.shedaniel.cloth:cloth-config-fabric:${rootProject.cloth_version}"
modImplementation "com.terraformersmc:modmenu:11.0.1"
modImplementation fabricApiLibs.command.api.v2
include fabricApiLibs.command.api.v2
include fabricApiLibs.base
}
processResources {
inputs.property "version", project.version
filesMatching("fabric.mod.json") {
expand "version": project.version, "minecraft_version": minecraft_version, "loader_version": loader_version, "mod_version": mod_version
}
}
shadowJar {
archiveClassifier = "dev-all"
destinationDirectory = layout.buildDirectory.dir("libs")
configurations = [project.configurations.shadow]
relocate 'ca.spottedleaf.concurrentutil', 'ca.spottedleaf.moonrise.libs.ca.spottedleaf.concurrentutil'
relocate 'org.yaml.snakeyaml', 'ca.spottedleaf.moonrise.libs.org.yaml.snakeyaml'
}