dependencies { testImplementation "com.h2database:h2" } def profiles = "prod" if (project.hasProperty("no-liquibase")) { profiles += ",no-liquibase" } if (project.hasProperty("api-docs")) { profiles += ",api-docs" } springBoot { buildInfo() } bootRun { args = [] } processResources { filesMatching("**/application.yml") { filter { it.replace("#spring.profiles.active#", profiles) } } }