Skip to content

Commit

Permalink
fix: jnlp-war plugin works with gradle 4.0
Browse files Browse the repository at this point in the history
Closes #40
  • Loading branch information
tschulte committed Jun 16, 2017
1 parent 26a2105 commit 98a670f
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,15 @@ class GradleJnlpWarPluginExtension {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
includeEmptyDirs = false
}
project.tasks.create("configureWar").doLast {
launchers.values()*.resolve()
launchersSpec.eachFile {
it.path = it.path.replaceAll('.*?/(.*)', '$1')
}
}
project.war {
dependsOn project.tasks.configureWar
with launchersSpec
doFirst {
launchers.values()*.resolve()
launchersSpec.eachFile {
it.path = it.path.replaceAll('.*?/(.*)', '$1')
}
}
}
}

Expand Down

0 comments on commit 98a670f

Please sign in to comment.