9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2026-01-04 15:41:38 +00:00

补全依赖,重定位commons

This commit is contained in:
XiaoMoMi
2025-05-31 19:10:29 +08:00
parent 5bfe013d18
commit dcc471c27b
7 changed files with 21 additions and 14 deletions

View File

@@ -96,7 +96,7 @@ tasks {
relocate("software.amazon.eventstream", "net.momirealms.craftengine.libraries.eventstream") // awssdk
relocate("com.ezylang.evalex", "net.momirealms.craftengine.libraries.evalex")
relocate("com.google.common.jimfs", "net.momirealms.craftengine.libraries.jimfs")
relocate("org.apache.commons.imaging", "net.momirealms.craftengine.libraries.commons.imaging")
relocate("org.apache.commons", "net.momirealms.craftengine.libraries.commons")
}
}

View File

@@ -302,7 +302,7 @@ public abstract class CraftEngine implements Plugin {
Dependencies.GEANTY_REF,
Dependencies.CLOUD_CORE, Dependencies.CLOUD_SERVICES,
Dependencies.GSON,
Dependencies.COMMONS_IO,
Dependencies.COMMONS_IO, Dependencies.COMMONS_LANG3, Dependencies.COMMONS_IMAGING,
Dependencies.ZSTD,
Dependencies.BYTE_BUDDY,
Dependencies.SNAKE_YAML,
@@ -316,8 +316,7 @@ public abstract class CraftEngine implements Plugin {
Dependencies.LZ4,
Dependencies.EVALEX,
Dependencies.NETTY_HTTP,
Dependencies.JIMFS,
Dependencies.COMMONS_IMAGING
Dependencies.JIMFS
);
}

View File

@@ -158,6 +158,13 @@ public class Dependencies {
}
};
public static final Dependency COMMONS_LANG3 = new Dependency(
"commons-lang3",
"org{}apache{}commons",
"commons-lang3",
List.of(Relocation.of("commons", "org{}apache{}commons"))
);
public static final Dependency COMMONS_IO = new Dependency(
"commons-io",
"commons-io",
@@ -165,6 +172,13 @@ public class Dependencies {
List.of(Relocation.of("commons", "org{}apache{}commons"))
);
public static final Dependency COMMONS_IMAGING = new Dependency(
"commons-imaging",
"org{}apache{}commons",
"commons-imaging",
List.of(Relocation.of("commons", "org{}apache{}commons"))
);
public static final Dependency BYTE_BUDDY = new Dependency(
"byte-buddy",
"net{}bytebuddy",
@@ -381,12 +395,6 @@ public class Dependencies {
List.of(Relocation.of("jimfs", "com{}google{}common{}jimfs"))
);
public static final Dependency COMMONS_IMAGING = new Dependency(
"commons-imaging",
"org{}apache{}commons",
"commons-imaging",
List.of(Relocation.of("commons", "org{}apache{}commons"))
);
public static final Dependency AMAZON_AWSSDK_S3 = new Dependency(
"amazon-sdk-s3",