profile_dev.gradle 747 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. inputs.property('version', version)
  23. inputs.property('springProfiles', profiles)
  24. filesMatching("**/application.yml") {
  25. filter {
  26. it.replace("#project.version#", version)
  27. }
  28. filter {
  29. it.replace("#spring.profiles.active#", profiles)
  30. }
  31. }
  32. }
  33. bootJar.dependsOn processResources