aboutsummaryrefslogtreecommitdiff
path: root/build.gradle.kts
diff options
context:
space:
mode:
authornea <romangraef@gmail.com>2022-08-26 01:08:13 +0200
committernea <romangraef@gmail.com>2022-08-26 01:08:13 +0200
commit4c7bd601c4df4d03536e97e18e4b88d858330ad9 (patch)
tree328a90e5fc5a524b1c2cbba6dac60498ee2b8210 /build.gradle.kts
parent9245c261f11f907b3dd23379d81f5b9f65e6e9bb (diff)
downloadfirmament-4c7bd601c4df4d03536e97e18e4b88d858330ad9.tar.gz
firmament-4c7bd601c4df4d03536e97e18e4b88d858330ad9.tar.bz2
firmament-4c7bd601c4df4d03536e97e18e4b88d858330ad9.zip
Translations and DBUS???? for some reason. also make the whole thing not buildable for anyone aside from me lol
Diffstat (limited to 'build.gradle.kts')
-rw-r--r--build.gradle.kts20
1 files changed, 18 insertions, 2 deletions
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<moe.nea.licenseextractificator.LicenseDiscoveryTask>("license") {
+ scanConfiguration(project.configurations.compileClasspath.get())
+ outputFile.set(file("$buildDir/LICENSES.json"))
+ licenseFormatter.set(moe.nea.licenseextractificator.JsonLicenseFormatter())
+}