Skip to content

Instantly share code, notes, and snippets.

@sh1nj1
Created March 18, 2016 00:12
Show Gist options
  • Save sh1nj1/5f79282b8e7bbdca6a26 to your computer and use it in GitHub Desktop.
Save sh1nj1/5f79282b8e7bbdca6a26 to your computer and use it in GitHub Desktop.
Exclude some jar files from package with spring-boot-gradle-plugin.
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.3.3.RELEASE")
}
apply plugin: 'spring-boot'
springBoot {
customConfiguration = 'runtime'
}
configurations {
runtime.exclude group: "org.apache.spark"
runtime.exclude group: "org.apache.hadoop"
runtime.exclude group: "org.projectlombok"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment