Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String buildClasspath(String... excluded) {
- return project.configurations.compile.resolve().stream().filter { file ->
- String fileName = file.getName()
- if(!fileName.endsWith(".jar")) return false
- for(String e : excluded) {
- if(fileName.startsWith(e)) {
- return false
- }
- }
- return true
- }.map { file -> file.getName() }.collect(Collectors.joining("", "\t", "\n"))
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement