Skip to content

Instantly share code, notes, and snippets.

@chriswk
Created January 7, 2016 18:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chriswk/7564800ee2ebd0b0430b to your computer and use it in GitHub Desktop.
Save chriswk/7564800ee2ebd0b0430b to your computer and use it in GitHub Desktop.
publish {
dependsOn assemble
}
dependencyManagement {
imports {
mavenBom 'org.springframework:spring-framework-bom:4.2.4.RELEASE'
}
}
dependencies {
compile "org.springframework.boot:spring-boot-starter-web:1.3.1.RELEASE"
}
springBoot {
backupSource = false
}
bootRepackage {
classifier = 'boot'
}
publishing {
publications {
web(MavenPublication) {
from components.java
artifact ("$buildDir/libs/$project.name-$version-boot.jar") {
classifier="boot"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment