Commit b7e0ad4 1 parent 0b048a7 commit b7e0ad4 Copy full SHA for b7e0ad4
File tree 8 files changed +148
-9
lines changed
MiraiMC-Base/src/main/java/me/dreamvoid/miraimc/internal/loader
src/main/java/me/dreamvoid/miraimc/sponge
src/main/java/me/dreamvoid/miraimc/velocity
8 files changed +148
-9
lines changed Original file line number Diff line number Diff line change 1
1
package me .dreamvoid .miraimc .internal .loader ;
2
2
3
3
import com .google .common .base .Suppliers ;
4
- import me .dreamvoid .miraimc .MiraiMCConfig ;
5
4
import me .dreamvoid .miraimc .internal .Utils ;
6
5
import org .apache .maven .repository .internal .MavenRepositorySystemUtils ;
7
6
import org .eclipse .aether .DefaultRepositorySystemSession ;
@@ -57,7 +56,7 @@ public LibraryLoader(URLClassLoader urlClassLoader) {
57
56
58
57
this .session .setSystemProperties (System .getProperties ());
59
58
this .session .setChecksumPolicy (RepositoryPolicy .CHECKSUM_POLICY_FAIL );
60
- this .session .setLocalRepositoryManager (this .repository .newLocalRepositoryManager (this .session , new LocalRepository (new File ( MiraiMCConfig . PluginDir , "libraries" ) )));
59
+ this .session .setLocalRepositoryManager (this .repository .newLocalRepositoryManager (this .session , new LocalRepository ("libraries" )));
61
60
this .session .setTransferListener (new AbstractTransferListener () {
62
61
@ Override
63
62
public void transferInitiated (@ NotNull TransferEvent event ) throws TransferCancelledException {
Original file line number Diff line number Diff line change 68
68
<pattern >org.apache</pattern >
69
69
<shadedPattern >me.dreamvoid.miraimc.libraries.org.apache</shadedPattern >
70
70
</relocation >
71
+ <relocation >
72
+ <pattern >org.eclipse</pattern >
73
+ <shadedPattern >me.dreamvoid.miraimc.libraries.org.eclipse</shadedPattern >
74
+ <excludes >
75
+ <exclude >org.eclipse.aether.**</exclude >
76
+ </excludes >
77
+ </relocation >
78
+ <relocation >
79
+ <pattern >org.aopalliance</pattern >
80
+ <shadedPattern >me.dreamvoid.miraimc.libraries.org.aopalliance</shadedPattern >
81
+ </relocation >
82
+ <relocation >
83
+ <pattern >org.checkerframework</pattern >
84
+ <shadedPattern >me.dreamvoid.miraimc.libraries.org.checkerframework</shadedPattern >
85
+ </relocation >
86
+ <relocation >
87
+ <pattern >org.codehaus</pattern >
88
+ <shadedPattern >me.dreamvoid.miraimc.libraries.org.codehaus</shadedPattern >
89
+ </relocation >
90
+ <relocation >
91
+ <pattern >org.objectweb</pattern >
92
+ <shadedPattern >me.dreamvoid.miraimc.libraries.org.objectweb</shadedPattern >
93
+ </relocation >
71
94
</relocations >
72
95
<filters >
73
96
<filter >
74
97
<artifact >*:*</artifact >
75
98
<excludes >
76
- <exclude >META-INF/*</exclude >
99
+ <exclude >META-INF/** </exclude >
77
100
<exclude >mozilla/public-suffix-list.txt</exclude >
101
+ <exclude >**/*.TXT</exclude >
102
+ <exclude >**/*.html</exclude >
103
+ <exclude >beans.xsd</exclude >
104
+ <exclude >plugin.xml</exclude >
105
+ <exclude >javax/**</exclude >
78
106
</excludes >
79
107
</filter >
80
108
</filters >
Original file line number Diff line number Diff line change 65
65
<pattern >org.apache</pattern >
66
66
<shadedPattern >me.dreamvoid.miraimc.libraries.org.apache</shadedPattern >
67
67
</relocation >
68
+ <relocation >
69
+ <pattern >org.eclipse</pattern >
70
+ <shadedPattern >me.dreamvoid.miraimc.libraries.org.eclipse</shadedPattern >
71
+ </relocation >
72
+ <relocation >
73
+ <pattern >org.aopalliance</pattern >
74
+ <shadedPattern >me.dreamvoid.miraimc.libraries.org.aopalliance</shadedPattern >
75
+ </relocation >
76
+ <relocation >
77
+ <pattern >org.checkerframework</pattern >
78
+ <shadedPattern >me.dreamvoid.miraimc.libraries.org.checkerframework</shadedPattern >
79
+ </relocation >
80
+ <relocation >
81
+ <pattern >org.codehaus</pattern >
82
+ <shadedPattern >me.dreamvoid.miraimc.libraries.org.codehaus</shadedPattern >
83
+ </relocation >
84
+ <relocation >
85
+ <pattern >org.objectweb</pattern >
86
+ <shadedPattern >me.dreamvoid.miraimc.libraries.org.objectweb</shadedPattern >
87
+ </relocation >
68
88
</relocations >
69
89
<filters >
70
90
<filter >
71
91
<artifact >*:*</artifact >
72
92
<excludes >
73
- <exclude >META-INF/*</exclude >
93
+ <exclude >META-INF/** </exclude >
74
94
<exclude >mozilla/public-suffix-list.txt</exclude >
95
+ <exclude >**/*.TXT</exclude >
96
+ <exclude >**/*.html</exclude >
97
+ <exclude >beans.xsd</exclude >
98
+ <exclude >plugin.xml</exclude >
99
+ <exclude >javax/**</exclude >
75
100
</excludes >
76
101
</filter >
77
102
</filters >
Original file line number Diff line number Diff line change 60
60
<pattern >org.apache</pattern >
61
61
<shadedPattern >me.dreamvoid.miraimc.libraries.org.apache</shadedPattern >
62
62
</relocation >
63
+ <relocation >
64
+ <pattern >org.eclipse</pattern >
65
+ <shadedPattern >me.dreamvoid.miraimc.libraries.org.eclipse</shadedPattern >
66
+ </relocation >
67
+ <relocation >
68
+ <pattern >org.aopalliance</pattern >
69
+ <shadedPattern >me.dreamvoid.miraimc.libraries.org.aopalliance</shadedPattern >
70
+ </relocation >
71
+ <relocation >
72
+ <pattern >org.checkerframework</pattern >
73
+ <shadedPattern >me.dreamvoid.miraimc.libraries.org.checkerframework</shadedPattern >
74
+ </relocation >
75
+ <relocation >
76
+ <pattern >org.codehaus</pattern >
77
+ <shadedPattern >me.dreamvoid.miraimc.libraries.org.codehaus</shadedPattern >
78
+ </relocation >
79
+ <relocation >
80
+ <pattern >org.objectweb</pattern >
81
+ <shadedPattern >me.dreamvoid.miraimc.libraries.org.objectweb</shadedPattern >
82
+ </relocation >
63
83
</relocations >
64
84
<filters >
65
85
<filter >
66
86
<artifact >*:*</artifact >
67
87
<excludes >
68
- <exclude >META-INF/*</exclude >
88
+ <exclude >META-INF/** </exclude >
69
89
<exclude >mozilla/public-suffix-list.txt</exclude >
90
+ <exclude >**/*.TXT</exclude >
91
+ <exclude >**/*.html</exclude >
92
+ <exclude >beans.xsd</exclude >
93
+ <exclude >plugin.xml</exclude >
94
+ <exclude >javax/**</exclude >
70
95
</excludes >
71
96
</filter >
72
97
</filters >
Original file line number Diff line number Diff line change 56
56
<configuration >
57
57
<minimizeJar >true</minimizeJar >
58
58
<relocations >
59
+ <relocation >
60
+ <pattern >MIRAIMC.VERSION</pattern >
61
+ <shadedPattern >${project.version} </shadedPattern >
62
+ </relocation >
59
63
<relocation >
60
64
<pattern >org.apache</pattern >
61
65
<shadedPattern >me.dreamvoid.miraimc.libraries.org.apache</shadedPattern >
62
66
</relocation >
67
+ <relocation >
68
+ <pattern >org.eclipse</pattern >
69
+ <shadedPattern >me.dreamvoid.miraimc.libraries.org.eclipse</shadedPattern >
70
+ </relocation >
71
+ <relocation >
72
+ <pattern >org.eclipse</pattern >
73
+ <shadedPattern >me.dreamvoid.miraimc.libraries.org.eclipse</shadedPattern >
74
+ </relocation >
75
+ <relocation >
76
+ <pattern >org.aopalliance</pattern >
77
+ <shadedPattern >me.dreamvoid.miraimc.libraries.org.aopalliance</shadedPattern >
78
+ </relocation >
79
+ <relocation >
80
+ <pattern >org.checkerframework</pattern >
81
+ <shadedPattern >me.dreamvoid.miraimc.libraries.org.checkerframework</shadedPattern >
82
+ </relocation >
83
+ <relocation >
84
+ <pattern >org.codehaus</pattern >
85
+ <shadedPattern >me.dreamvoid.miraimc.libraries.org.codehaus</shadedPattern >
86
+ </relocation >
87
+ <relocation >
88
+ <pattern >org.objectweb</pattern >
89
+ <shadedPattern >me.dreamvoid.miraimc.libraries.org.objectweb</shadedPattern >
90
+ </relocation >
63
91
</relocations >
64
92
<filters >
65
93
<filter >
66
94
<artifact >*:*</artifact >
67
95
<excludes >
68
- <exclude >META-INF/*</exclude >
96
+ <exclude >META-INF/** </exclude >
69
97
<exclude >mozilla/public-suffix-list.txt</exclude >
98
+ <exclude >**/*.TXT</exclude >
99
+ <exclude >**/*.html</exclude >
100
+ <exclude >beans.xsd</exclude >
101
+ <exclude >plugin.xml</exclude >
102
+ <exclude >javax/**</exclude >
70
103
</excludes >
71
104
</filter >
72
105
</filters >
Original file line number Diff line number Diff line change 39
39
@ Plugin (id = "miraimc" ,
40
40
name = "MiraiMC" ,
41
41
description = "MiraiBot for Minecraft server" ,
42
- version = "1.8.3 " ,
42
+ version = "MIRAIMC.VERSION " ,
43
43
url = "https://github.com/DreamVoid/MiraiMC" ,
44
44
authors = {"DreamVoid" }
45
45
)
Original file line number Diff line number Diff line change 21
21
<configuration >
22
22
<minimizeJar >false</minimizeJar >
23
23
<relocations >
24
+ <relocation >
25
+ <pattern >MIRAIMC.VERSION</pattern >
26
+ <shadedPattern >${project.version} </shadedPattern >
27
+ </relocation >
24
28
<relocation >
25
29
<pattern >com.zaxxer</pattern >
26
30
<shadedPattern >me.dreamvoid.miraimc.libraries.com.zaxxer</shadedPattern >
29
33
<pattern >org.apache</pattern >
30
34
<shadedPattern >me.dreamvoid.miraimc.libraries.org.apache</shadedPattern >
31
35
</relocation >
36
+ <relocation >
37
+ <pattern >org.eclipse</pattern >
38
+ <shadedPattern >me.dreamvoid.miraimc.libraries.org.eclipse</shadedPattern >
39
+ </relocation >
40
+ <relocation >
41
+ <pattern >org.aopalliance</pattern >
42
+ <shadedPattern >me.dreamvoid.miraimc.libraries.org.aopalliance</shadedPattern >
43
+ </relocation >
44
+ <relocation >
45
+ <pattern >org.checkerframework</pattern >
46
+ <shadedPattern >me.dreamvoid.miraimc.libraries.org.checkerframework</shadedPattern >
47
+ </relocation >
48
+ <relocation >
49
+ <pattern >org.codehaus</pattern >
50
+ <shadedPattern >me.dreamvoid.miraimc.libraries.org.codehaus</shadedPattern >
51
+ </relocation >
52
+ <relocation >
53
+ <pattern >org.objectweb</pattern >
54
+ <shadedPattern >me.dreamvoid.miraimc.libraries.org.objectweb</shadedPattern >
55
+ </relocation >
32
56
</relocations >
33
57
<filters >
34
58
<filter >
35
59
<artifact >*:*</artifact >
36
60
<excludes >
37
- <exclude >META-INF/*</exclude >
61
+ <exclude >META-INF/** </exclude >
38
62
<exclude >mozilla/public-suffix-list.txt</exclude >
63
+ <exclude >**/*.TXT</exclude >
64
+ <exclude >**/*.html</exclude >
65
+ <exclude >beans.xsd</exclude >
66
+ <exclude >plugin.xml</exclude >
67
+ <exclude >javax/**</exclude >
39
68
</excludes >
40
69
</filter >
41
70
</filters >
Original file line number Diff line number Diff line change 34
34
@ Plugin (
35
35
id = "miraimc" ,
36
36
name = "MiraiMC" ,
37
- version = "1.8.3 " ,
37
+ version = "MIRAIMC.VERSION " ,
38
38
description = "MiraiBot for Minecraft server" ,
39
39
url = "https://github.com/DreamVoid/MiraiMC" ,
40
40
authors = {"DreamVoid" }
You can’t perform that action at this time.
0 commit comments