From 4c7bd601c4df4d03536e97e18e4b88d858330ad9 Mon Sep 17 00:00:00 2001 From: nea Date: Fri, 26 Aug 2022 01:08:13 +0200 Subject: Translations and DBUS???? for some reason. also make the whole thing not buildable for anyone aside from me lol --- build.gradle.kts | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'build.gradle.kts') diff --git a/build.gradle.kts b/build.gradle.kts index c48d666..af7feab 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -7,6 +7,8 @@ plugins { kotlin("plugin.serialization") version "1.7.10" id("dev.architectury.loom") version "0.12.0.+" id("com.github.johnrengelman.shadow") version "7.1.2" + id("moe.nea.licenseextractificator") version "0.0.1" + id("com.github.eutro.hierarchical-lang") version "1.1.3" } loom { @@ -60,7 +62,10 @@ dependencies { // Actual dependencies modCompileOnly("me.shedaniel:RoughlyEnoughItems-api:${rootProject.property("rei_version")}") shadowMe("io.github.moulberry:neurepoparser:0.0.1") + shadowMe("com.github.hypfvieh:dbus-java-core:4.1.0") + shadowMe("com.github.hypfvieh:dbus-java-transport-native-unixsocket:4.1.0") 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"))!!) @@ -112,10 +117,21 @@ tasks.remapJar { dependsOn(tasks.shadowJar) archiveClassifier.set("thicc") } + tasks.processResources { filesMatching("**/fabric.mod.json") { expand( - "version" to project.version + "version" to project.version ) } -} \ No newline at end of file + filesMatching("**/lang/*.json") { + flattenJson(this) + } +} + + +tasks.create("license") { + scanConfiguration(project.configurations.compileClasspath.get()) + outputFile.set(file("$buildDir/LICENSES.json")) + licenseFormatter.set(moe.nea.licenseextractificator.JsonLicenseFormatter()) +} -- cgit