File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import org.apache.tools.ant.filters.ReplaceTokens
3
3
plugins {
4
4
id ' java'
5
5
id ' maven-publish'
6
+ id " com.github.johnrengelman.shadow" version " 7.1.2"
6
7
}
7
8
8
9
group ' org.hydev.csc207'
@@ -32,6 +33,9 @@ dependencies {
32
33
// The Spigot API with no shadowing. Requires the OSS repo.
33
34
compileOnly ' org.spigotmc:spigot-api:1.19-R0.1-SNAPSHOT'
34
35
36
+ // https://mvnrepository.com/artifact/net.sourceforge.argparse4j/argparse4j
37
+ implementation ' net.sourceforge.argparse4j:argparse4j:0.9.0'
38
+
35
39
// Apache HTTP Client
36
40
// https://mvnrepository.com/artifact/org.apache.httpcomponents.client5/httpclient5-fluent
37
41
implementation ' org.apache.httpcomponents.client5:httpclient5-fluent:5.2-beta1'
Original file line number Diff line number Diff line change @@ -51,14 +51,14 @@ def update_build(mc_path: Path):
51
51
print ('Building project...' )
52
52
build_jar = Path ('build/libs' )
53
53
shutil .rmtree (build_jar , ignore_errors = True )
54
- check_call ('./gradlew build ' , shell = True )
54
+ check_call ('./gradlew shadow ' , shell = True )
55
55
56
56
# Install plugin
57
57
print ('Installing our MCPM plugin...' )
58
58
plugin_path = mc_path / 'plugins/mcpm.jar'
59
59
shutil .rmtree (plugin_path , ignore_errors = True )
60
60
ensure_dir (plugin_path .parent )
61
- shutil .copy2 (build_jar / str (os .listdir (build_jar )[0 ]), plugin_path )
61
+ shutil .copy2 (build_jar / str ([ f for f in os .listdir (build_jar ) if f . endswith ( "-all.jar" )] [0 ]), plugin_path )
62
62
63
63
64
64
if __name__ == '__main__' :
You can’t perform that action at this time.
0 commit comments