${9999083+10000180}
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
842 B

3 years ago
  1. configurations {
  2. developmentOnly
  3. runtimeClasspath {
  4. extendsFrom developmentOnly
  5. }
  6. }
  7. dependencies {
  8. developmentOnly "org.springframework.boot:spring-boot-devtools"
  9. }
  10. def profiles = "dev"
  11. if (project.hasProperty("no-liquibase")) {
  12. profiles += ",no-liquibase"
  13. }
  14. if (project.hasProperty("tls")) {
  15. profiles += ",tls"
  16. }
  17. springBoot {
  18. buildInfo {
  19. properties {
  20. time = null
  21. }
  22. }
  23. }
  24. bootRun {
  25. args = []
  26. }
  27. processResources {
  28. inputs.property('version', version)
  29. inputs.property('springProfiles', profiles)
  30. filesMatching("**/application.yml") {
  31. filter {
  32. it.replace("#project.version#", version)
  33. }
  34. }
  35. filesMatching("**/bootstrap.yml") {
  36. filter {
  37. it.replace("#spring.profiles.active#", profiles)
  38. }
  39. }
  40. }