diff options
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle index 17e04d5..7639896 100644 --- a/build.gradle +++ b/build.gradle @@ -28,6 +28,23 @@ repositories { } maven { url "https://maven.shedaniel.me/" } maven { url "https://maven.terraformersmc.com/releases/" } + + ivy { + url "https://github.com/HotswapProjects/HotswapAgent/releases/download%22" + patternLayout { + artifact("[revision]/[artifact]-[revision].[ext]") + } + content { + includeGroup("virtual.github.hotswapagent") + } + metadataSources { + artifact() + } + } +} + +configurations { + hotswap } dependencies { @@ -42,6 +59,20 @@ dependencies { modApi "me.shedaniel.cloth:cloth-config-fabric:11.0.99" } +loom { + runs { + removeIf { it.name != "client" } + named("client") { + property("devauth.enabled", "true") + property("fabric.log.level", "info") + vmArg("-ea") + vmArg("-XX:+AllowEnhancedClassRedefinition") + vmArg("-XX:HotswapAgent=external") + vmArg("-javaagent:${configurations.hotswap.resolve().single().absolutePath}") + } + } +} + processResources { inputs.property "version", project.version |