aboutsummaryrefslogtreecommitdiff
path: root/build.gradle.kts
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-05-29 00:16:18 +0200
committernea <nea@nea.moe>2023-05-29 00:16:18 +0200
commitc133505e3b1f8e5aeb62c1a0e99513ec4bfcf239 (patch)
treeff312fd03692247e780c3923924d8d8d52cbf048 /build.gradle.kts
parent59ea00dabceeddf01fec7bf87ec548d7beedd7cc (diff)
downloadFirmament-c133505e3b1f8e5aeb62c1a0e99513ec4bfcf239.tar.gz
Firmament-c133505e3b1f8e5aeb62c1a0e99513ec4bfcf239.tar.bz2
Firmament-c133505e3b1f8e5aeb62c1a0e99513ec4bfcf239.zip
Bump LibGui
Diffstat (limited to 'build.gradle.kts')
-rw-r--r--build.gradle.kts24
1 files changed, 14 insertions, 10 deletions
diff --git a/build.gradle.kts b/build.gradle.kts
index 6f5e93a..0c92701 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -59,10 +59,7 @@ repositories {
mavenLocal()
}
-val shadowMe by configurations.creating {
- configurations.implementation.get().extendsFrom(this)
-}
-
+val shadowMe by configurations.creating
val transInclude by configurations.creating {
exclude(group = "com.mojang")
exclude(group = "org.jetbrains.kotlin")
@@ -70,6 +67,11 @@ val transInclude by configurations.creating {
isTransitive = true
}
+val nonModImplentation by configurations.creating {
+ extendsFrom(shadowMe)
+ configurations.implementation.get().extendsFrom(this)
+}
+
dependencies {
// Minecraft dependencies
"minecraft"(libs.minecraft)
@@ -94,10 +96,10 @@ dependencies {
fun ktor(mod: String) = "io.ktor:ktor-$mod-jvm:${libs.versions.ktor.get()}"
- transInclude(implementation(ktor("client-core"))!!)
- transInclude(implementation(ktor("client-java"))!!)
- transInclude(implementation(ktor("serialization-kotlinx-json"))!!)
- transInclude(implementation(ktor("client-content-negotiation"))!!)
+ transInclude(nonModImplentation(ktor("client-core"))!!)
+ transInclude(nonModImplentation(ktor("client-java"))!!)
+ transInclude(nonModImplentation(ktor("serialization-kotlinx-json"))!!)
+ transInclude(nonModImplentation(ktor("client-content-negotiation"))!!)
// Dev environment preinstalled mods
modRuntimeOnly(libs.bundles.runtime.required)
@@ -147,14 +149,16 @@ tasks.processResources {
}
tasks.scanLicenses {
- scanConfiguration(project.configurations.compileClasspath.get())
+ scanConfiguration(nonModImplentation)
+ scanConfiguration(configurations.modCompileClasspath.get())
outputFile.set(file("$buildDir/LICENSES-FIRMAMENT.json"))
licenseFormatter.set(moe.nea.licenseextractificator.JsonLicenseFormatter())
}
tasks.create("printAllLicenses", LicenseDiscoveryTask::class.java, licensing).apply {
outputFile.set(file("$buildDir/LICENSES-FIRMAMENT.txt"))
licenseFormatter.set(moe.nea.licenseextractificator.TextLicenseFormatter())
- scanConfiguration(project.configurations.compileClasspath.get())
+ scanConfiguration(nonModImplentation)
+ scanConfiguration(configurations.modCompileClasspath.get())
doLast {
println(outputFile.get().asFile.readText())
}