Skip to content

Commit

Permalink
Fixed shadow jar miniText
Browse files Browse the repository at this point in the history
  • Loading branch information
divios committed Jan 17, 2022
1 parent 47665ea commit f28df0a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'java'
id 'maven-publish'
id "com.github.johnrengelman.shadow" version "7.1.1"
}

apply plugin: 'maven-publish'
Expand Down Expand Up @@ -49,6 +50,13 @@ dependencies {
testImplementation 'com.github.seeseemelk:MockBukkit-v1.16:1.5.2'
}

shadowJar {
relocate('org.jetbrains.annotations', 'io.github.divios.dependencies.annotations')
relocate('org.intellij', 'io.github.divios.dependencies.intellij')
relocate('net.kyori', 'io.github.divios.dependencies.miniText')

minimize()
}

processResources {
def props = [version: version]
Expand All @@ -72,3 +80,4 @@ publishing {
}

compileJava.dependsOn(clean)
build.dependsOn shadowJar

0 comments on commit f28df0a

Please sign in to comment.