profile_prod.gradle 449 B

123456789101112131415161718192021222324252627282930
  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("api-docs")) {
  9. profiles += ",api-docs"
  10. }
  11. springBoot {
  12. buildInfo()
  13. }
  14. bootRun {
  15. args = []
  16. }
  17. processResources {
  18. filesMatching("**/application.yml") {
  19. filter {
  20. it.replace("#spring.profiles.active#", profiles)
  21. }
  22. }
  23. }