summaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorKeuin <[email protected]>2024-01-20 13:20:41 +0800
committerKeuin <[email protected]>2024-01-20 13:51:41 +0800
commit7e3cd92742383c43f2741449c551208e6487154e (patch)
treef6a4a51d0164231ac0fd2faed8f313aa504e2504 /build.gradle
parent61aa66b558ae8f2987a238216ac01e375f195c1e (diff)
feature: configurable CoW incremental backup
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle21
1 files changed, 20 insertions, 1 deletions
diff --git a/build.gradle b/build.gradle
index 67b3e86..ce89a4e 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,6 +1,7 @@
plugins {
id 'fabric-loom' version '1.0-SNAPSHOT'
id 'maven-publish'
+ id 'com.github.johnrengelman.shadow' version '7.1.2'
}
sourceCompatibility = JavaVersion.VERSION_1_8
@@ -20,6 +21,20 @@ repositories {
// for more information about repositories.
}
+shadowJar {
+ configurations = [project.configurations.shadow]
+
+ // mitigate log4j security problem
+ exclude 'org/apache/logging/log4j/core/lookup/JndiLookup.class'
+ exclude 'META-INF'
+}
+
+remapJar {
+ dependsOn(shadowJar)
+ mustRunAfter(shadowJar)
+ inputFile = tasks.shadowJar.archiveFile
+}
+
dependencies {
implementation 'junit:junit:4.13.2'
@@ -31,6 +46,10 @@ dependencies {
// Fabric API. This is technically optional, but you probably want it anyway.
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
+ // https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind
+ modImplementation 'com.fasterxml.jackson.core:jackson-databind:2.13.5'
+ shadow 'com.fasterxml.jackson.core:jackson-databind:2.13.5'
+
// Uncomment the following line to enable the deprecated Fabric API modules.
// These are included in the Fabric API production distribution and allow you to update your mod to the latest modules at a later more convenient time.
@@ -54,7 +73,7 @@ java {
jar {
from("LICENSE") {
- rename { "${it}_${project.archivesBaseName}"}
+ rename { "${it}_${project.archivesBaseName}" }
}
}