profile_dev.gradle 544 B

123456789101112131415161718192021222324252627282930313233
  1. dependencies {
  2. developmentOnly "org.springframework.boot:spring-boot-devtools:${springBootVersion}"
  3. }
  4. def profiles = "dev"
  5. if (project.hasProperty("no-liquibase")) {
  6. profiles += ",no-liquibase"
  7. }
  8. if (project.hasProperty("tls")) {
  9. profiles += ",tls"
  10. }
  11. springBoot {
  12. buildInfo {
  13. properties {
  14. time = null
  15. }
  16. }
  17. }
  18. bootRun {
  19. args = []
  20. }
  21. processResources {
  22. filesMatching("**/application.yml") {
  23. filter {
  24. it.replace("#spring.profiles.active#", profiles)
  25. }
  26. }
  27. }