Skip to content

Commit 5733e67

Browse files
committed
Fix shadow compatibility.
1 parent 44b5810 commit 5733e67

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dev/src/main/groovy/com/fox2code/foxloader/dev/compatibility/ShadowCompatibility.groovy

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,16 @@ final class ShadowCompatibility extends CompatibilityModule {
4242
config.useJarTask(project.tasks.named('shadowJar', ShadowJar))
4343
project.tasks.jar.enabled = false
4444
project.tasks.assemble.dependsOn("shadowJar")
45+
project.tasks.named('shadowJar', ShadowJar) {
46+
archiveClassifier.set("")
47+
}
4548
}
4649

4750
@Override
4851
void onLateApply(Project project, FoxLoaderConfig config) {
4952
final HashSet<String> dependenciesToExclude = new HashSet<>()
5053
appendDependenciesNamesToExclude(config, dependenciesToExclude)
5154
project.tasks.named('shadowJar', ShadowJar) {
52-
archiveClassifier.set("")
5355
dependencies {
5456
exclude(new Spec<? super ResolvedDependency>() {
5557
@Override

0 commit comments

Comments
 (0)