Skip to content

Commit 69c7ceb

Browse files
committed
Fix potential NPE when classifier is null
1 parent b209aef commit 69c7ceb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/groovy/ru/endlesscode/bukkitgradle/task/PrepareServer.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class PrepareServer extends DefaultTask {
5858
void copyPluginsToServerDir() {
5959
String pluginName = "${project.bukkit.meta.name}.jar"
6060
List<Path> paths = project.tasks.withType(Jar).collect { jar ->
61-
if (jar.classifier.matches("src|source[s]?|javadoc")) return
61+
if (jar.classifier in ["src", "source", "sources", "javadoc"]) return
6262
jar.archivePath.toPath()
6363
}
6464

0 commit comments

Comments
 (0)