diff options
author | nea <romangraef@gmail.com> | 2022-07-30 04:55:04 +0200 |
---|---|---|
committer | nea <romangraef@gmail.com> | 2022-07-30 04:55:04 +0200 |
commit | b9455467863f194accf30a89b2c2998822f2c105 (patch) | |
tree | 5fb27bf4b8b8b00c7ed7ce414858733a595d3847 /build.gradle.kts | |
parent | e45378fd6b61a5871c306ca8439c8ee3d7dec456 (diff) | |
download | Firmament-b9455467863f194accf30a89b2c2998822f2c105.tar.gz Firmament-b9455467863f194accf30a89b2c2998822f2c105.tar.bz2 Firmament-b9455467863f194accf30a89b2c2998822f2c105.zip |
repo downloading
Diffstat (limited to 'build.gradle.kts')
-rw-r--r-- | build.gradle.kts | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/build.gradle.kts b/build.gradle.kts index 548f211..c439e86 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -4,17 +4,21 @@ plugins { java `maven-publish` kotlin("jvm") version "1.7.10" + kotlin("plugin.serialization") version "1.7.10" id("dev.architectury.loom") version "0.12.0.+" id("com.github.johnrengelman.shadow") version "7.1.2" } loom { accessWidenerPath.set(project.file("src/main/resources/notenoughupdates.accesswidener")) - launches { + runConfigs { removeIf { it.name != "client" } + } + launches { named("client") { property("devauth.enabled", "true") property("fabric.log.level", "info") + property("notenoughupdates.debug", "true") } } } @@ -35,6 +39,13 @@ val shadowMe by configurations.creating { configurations.implementation.get().extendsFrom(this) } +val transInclude by configurations.creating { + exclude(group = "com.mojang") + exclude(group = "org.jetbrains.kotlin") + exclude(group = "org.jetbrains.kotlinx") + isTransitive = true +} + dependencies { // Minecraft dependencies "minecraft"("com.mojang:minecraft:${project.property("minecraft_version")}") @@ -48,12 +59,20 @@ dependencies { // Actual dependencies modCompileOnly("me.shedaniel:RoughlyEnoughItems-api:${rootProject.property("rei_version")}") shadowMe("io.github.moulberry:neurepoparser:0.0.1") + fun ktor(mod: String) = "io.ktor:ktor-$mod-jvm:${project.property("ktor_version")}" + transInclude(implementation(ktor("client-core"))!!) + transInclude(implementation(ktor("client-java"))!!) + transInclude(implementation(ktor("serialization-kotlinx-json"))!!) + transInclude(implementation(ktor("client-content-negotiation"))!!) // Dev environment preinstalled mods modRuntimeOnly("me.shedaniel:RoughlyEnoughItems-fabric:${project.property("rei_version")}") modRuntimeOnly("me.djtheredstoner:DevAuth-fabric:${project.property("devauth_version")}") modRuntimeOnly("maven.modrinth:modmenu:${project.property("modmenu_version")}") + transInclude.resolvedConfiguration.resolvedArtifacts.forEach { + include(it.moduleVersion.id.toString()) + } } |