${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.

37 lines
661 B

3 years ago
  1. dependencies {
  2. testImplementation "com.h2database:h2"
  3. }
  4. def profiles = "prod"
  5. if (project.hasProperty("no-liquibase")) {
  6. profiles += ",no-liquibase"
  7. }
  8. if (project.hasProperty("swagger")) {
  9. profiles += ",swagger"
  10. }
  11. springBoot {
  12. buildInfo()
  13. }
  14. bootRun {
  15. args = []
  16. }
  17. processResources {
  18. inputs.property('version', version)
  19. inputs.property('springProfiles', profiles)
  20. filesMatching("**/application.yml") {
  21. filter {
  22. it.replace("#project.version#", version)
  23. }
  24. }
  25. filesMatching("**/bootstrap.yml") {
  26. filter {
  27. it.replace("#spring.profiles.active#", profiles)
  28. }
  29. }
  30. }