Skip to content

Commit f83bd28

Browse files
committed
1.1.2-RELEASE
Gradle fix 2
1 parent acfdc2a commit f83bd28

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

build.gradle

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import org.apache.tools.ant.filters.ReplaceTokens
2+
import com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation
23

34
plugins {
45
id 'java'
56
id 'com.github.johnrengelman.shadow' version '4.0.4'
67
}
78

89
group = 'top.jingwenmc'
9-
version = '1.1.1-RELEASE'
10+
version = '1.1.2-RELEASE'
1011

1112
sourceCompatibility = '1.8'
1213
targetCompatibility = '1.8'
@@ -47,10 +48,10 @@ tasks.withType(JavaCompile) {
4748
options.encoding = 'UTF-8'
4849
}
4950

50-
shadowJar {
51-
relocate ('org', 'top.jingwenmc.mqeasy.lib.org') {
52-
exclude 'org.bukkit**'
53-
}
54-
relocate 'javax', 'top.jingwenmc.mqeasy.lib.javax'
55-
relocate 'com', 'top.jingwenmc.mqeasy.lib.com'
56-
}
51+
task relocateShadowJar(type: ConfigureShadowRelocation) {
52+
target = tasks.shadowJar
53+
prefix = "top.jingwenmc.mqeasy.lib"
54+
55+
}
56+
57+
tasks.shadowJar.dependsOn tasks.relocateShadowJar

0 commit comments

Comments
 (0)