Skip to content

Commit

Permalink
fix(build): include dependencies in the shadow jar
Browse files Browse the repository at this point in the history
  • Loading branch information
Silthus committed May 12, 2020
1 parent f83a08a commit 803099b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
13 changes: 11 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,21 @@ test {
useJUnit()
}

test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
ignoreFailures = true
}

shadowJar {
classifier = ''
relocate 'co.aikar.commands', "${packageName}.acf"
relocate 'co.aikar.locales', "${packageName}.locales"
}

tasks.build.dependsOn(shadowJar)
tasks.publish.dependsOn(shadowJar)

processResources {
project.properties.put("version", this.version)
expand project.properties
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group = net.silthus
packageName = spigot-template
packageName = net.silthus.spigot-template
version = 1.1.0
pluginName = PluginName
author = Silthus
Expand Down
1 change: 0 additions & 1 deletion gradle/publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ jar {
publishing {
publications {
mavenJava(MavenPublication) {
groupId = group
from components.java
}
}
Expand Down
2 changes: 1 addition & 1 deletion working/server.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ resource-pack=
player-idle-timeout=0
level-name=world
rcon.password=
motd=\u00A76Spigot Gradle Template by Tammo0987
motd=\u00A76Spigot Gradle Template by Silthus
query.port=25565
force-gamemode=false
debug=false
Expand Down

0 comments on commit 803099b

Please sign in to comment.