Skip to content

Commit d6bd67f

Browse files
committed
fix dependency issues
1 parent 1023add commit d6bd67f

2 files changed

Lines changed: 23 additions & 4 deletions

File tree

build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,10 @@ tasks.register("lightJar", ShadowJar) {
128128
exclude(dependency('com.github.stefvanschie.inventoryframework:IF'))
129129
exclude(dependency('me.lucko:jar-relocator'))
130130
exclude(dependency('net.kyori:adventure-text-minimessage'))
131+
exclude(dependency('net.kyori:adventure-api'))
132+
exclude(dependency('net.kyori:adventure-key'))
133+
exclude(dependency('net.kyori:examination-api'))
134+
exclude(dependency('net.kyori:examination-string'))
131135
exclude(dependency('org.ow2.asm:asm'))
132136
exclude(dependency('org.ow2.asm:asm-commons'))
133137
exclude(dependency('org.ow2.asm:asm-tree'))

src/main/java/com/cyr1en/commandprompter/dependencies/CoreDependency.java

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
/**
88
* Represents a core dependency for the plugin.
99
* This dependency is required for the plugin to work.
10-
*
10+
*
1111
* <p>
1212
* These type of dependencies must be available in the classpath by the time the
1313
* plugin is loaded.
1414
* if they're not present in the classpath, the plugin will try to download them
1515
* and attempt to load them.
16-
*
16+
*
1717
* <p>
1818
* These should not have any relocations and must stay as is.
1919
*/
@@ -32,7 +32,22 @@ public enum CoreDependency {
3232
"gson-2.10.1.jar",
3333
"https://repo1.maven.org/maven2/com/google/code/gson/gson/2.10.1/gson-2.10.1.jar",
3434
"b3add478d4382b78ea20b1671390a858002feb6c",
35-
"com.google.gson.JsonParser");
35+
"com.google.gson.JsonParser"),
36+
ADVENTURE_API(
37+
"adventure-api-4.15.0.jar",
38+
"https://repo.maven.apache.org/maven2/net/kyori/adventure-api/4.15.0/adventure-api-4.15.0.jar",
39+
"84e507c4cf17404299078435736e7e752dde8bae",
40+
"net.kyori.adventure.text.serializer.ComponentSerializer"),
41+
ADVENTURE_KEY(
42+
"adventure-key-4.16.0.jar",
43+
"https://repo.maven.apache.org/maven2/net/kyori/adventure-key/4.16.0/adventure-key-4.16.0.jar",
44+
"b695c40a7d2fd658246de78ea428e8f8dc7ffd2d",
45+
"net.kyori.adventure.key.InvalidKeyException"),
46+
EXAMINATION_API(
47+
"examination-api-1.3.0.jar",
48+
"https://repo.maven.apache.org/maven2/net/kyori/examination-api/1.3.0/examination-api-1.3.0.jar",
49+
"8a2d185275307f1e2ef2adf7152b9a0d1d44c30b",
50+
"net.kyori.examination.Examinable");
3651

3752
private final String fileName;
3853
private final String url;
@@ -49,7 +64,7 @@ public enum CoreDependency {
4964
}
5065

5166
public Dependency asDependency() {
52-
return new Dependency(fileName, url, new String[] { "", "" }, sha1);
67+
return new Dependency(fileName, url, new String[]{"", ""}, sha1);
5368
}
5469

5570
public boolean inClassPath() {

0 commit comments

Comments
 (0)