Skip to content

Instantly share code, notes, and snippets.

@knjname
Created November 27, 2017 05:11
Show Gist options
  • Select an option

  • Save knjname/14f713f5456c27212c93e2fd1c61ce6f to your computer and use it in GitHub Desktop.

Select an option

Save knjname/14f713f5456c27212c93e2fd1c61ce6f to your computer and use it in GitHub Desktop.
bootRun
task customizedBootRun(type: JavaExec) {
dependsOn bootRun.getTaskDependencies()
// Customize
args = ["something", "you", "need"]
jvmArgs = ["-Dspring.profiles.active=development"]
classpath = sourceSets.main.runtimeClasspath
main = "your.main.ClassName"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment