|
| 1 | +buildscript { |
| 2 | + repositories { |
| 3 | + mavenCentral() |
| 4 | + jcenter() |
| 5 | + } |
| 6 | + dependencies { |
| 7 | + classpath("com.github.jengelman.gradle.plugins:shadow:5.2.0") |
| 8 | + } |
| 9 | +} |
1 | 10 | plugins { |
2 | 11 | id 'org.jetbrains.kotlin.jvm' version '1.4.10' |
3 | | - id 'com.github.johnrengelman.shadow' version '2.0.4' |
| 12 | + id 'com.github.johnrengelman.shadow' version '5.2.0' |
4 | 13 | } |
5 | 14 |
|
6 | 15 | group 'me.scoretwo' |
@@ -30,17 +39,20 @@ dependencies { |
30 | 39 | implementation "org.spigotmc:spigot-api:1.16.3-R0.1-SNAPSHOT" |
31 | 40 | implementation "net.md-5:bungeecord-api:1.16-R0.3" |
32 | 41 | implementation "me.clip:placeholderapi:2.10.9" |
| 42 | + implementation fileTree(dir: 'libs', includes: ['*.jar']) |
33 | 43 | } |
34 | 44 |
|
35 | 45 | shadowJar { |
36 | 46 | dependencies { |
37 | | - include("org.bstats:bstats-bukkit:1.7") |
38 | | - include("commons-io:commons-io:2.7") |
39 | | - include("com.alibaba:fastjson:1.2.9") |
40 | | - include("org.jetbrains.kotlin:kotlin-stdlib") |
41 | | - include("com.andreapivetta.kolor:kolor:1.0.0") |
| 47 | + include(dependency('org.bstats:bstats-bukkit:1.7')) |
| 48 | + include(dependency('commons-io:commons-io:2.7')) |
| 49 | + include(dependency('com.alibaba:fastjson:1.2.9')) |
| 50 | + include(dependency('org.jetbrains.kotlin:kotlin-stdlib')) |
| 51 | + include(dependency(fileTree(dir: 'libs', includes: ['*.jar']))) |
42 | 52 | } |
43 | | - relocate("org.bstats", "me.scoretwo.fastscript.bstats") |
| 53 | + relocate("org.bstats", "me.scoretwo.fastscript.libs.bstats") |
| 54 | + relocate("org.apache", "me.scoretwo.fastscript.libs.apache") |
| 55 | + archiveFileName = "${project.name}-${project.version}.jar" |
44 | 56 | } |
45 | 57 |
|
46 | 58 | processResources { |
|
0 commit comments