Skip to content

Instantly share code, notes, and snippets.

@jakzal
Created December 30, 2019 12:13
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 jakzal/1ff82e1c4c2a83805c370c17cc7308bc to your computer and use it in GitHub Desktop.
Save jakzal/1ff82e1c4c2a83805c370c17cc7308bc to your computer and use it in GitHub Desktop.
Run a Spring Boot application with the dev profile (Gradle Kotlin DSL)
tasks.register("bootRunDev") {
group = "application"
description = "Runs this project as a Spring Boot application with the dev profile"
doFirst {
tasks.bootRun.configure {
systemProperty("spring.profiles.active", "dev")
}
}
finalizedBy("bootRun")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment