Skip to content

Instantly share code, notes, and snippets.

@michail-nikolaev
Created September 9, 2012 22:27
Show Gist options
  • Save michail-nikolaev/3687689 to your computer and use it in GitHub Desktop.
Save michail-nikolaev/3687689 to your computer and use it in GitHub Desktop.
Gradle - Spring - Fat Jar - Handlers
jar {
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it).matching { exclude 'META-INF/spring.handlers' } }
}
from(file("src/main/resources/spring.handlers")) {
into "META-INF"
}
manifest {
attributes 'Implementation-Title': 'Bla-bla',
'Implementation-Version': version,
'Main-Class': 'com.bla.MainClass'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment