profile_beta.gradle 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. dependencies {
  2. developmentOnly "org.springframework.boot:spring-boot-devtools:${springBootVersion}"
  3. implementation "mysql:mysql-connector-java"
  4. liquibaseRuntime "mysql:mysql-connector-java"
  5. testImplementation "org.testcontainers:mysql"
  6. }
  7. def profiles = "beta"
  8. if (project.hasProperty("no-liquibase")) {
  9. profiles += ",no-liquibase"
  10. }
  11. if (project.hasProperty("tls")) {
  12. profiles += ",tls"
  13. }
  14. springBoot {
  15. buildInfo {
  16. properties {
  17. time = null
  18. }
  19. }
  20. }
  21. bootRun {
  22. args = ["--spring.profiles.active=${profiles}"]
  23. }
  24. processResources {
  25. inputs.property('version', version)
  26. inputs.property('springProfiles', profiles)
  27. filesMatching("**/application.yml") {
  28. filter {
  29. it.replace("#project.version#", version)
  30. }
  31. filter {
  32. it.replace("#spring.profiles.active#", profiles)
  33. }
  34. }
  35. }
  36. task integrationTest(type: Test) {
  37. maxHeapSize = "1G"
  38. useJUnitPlatform()
  39. description = "Execute integration tests."
  40. group = "verification"
  41. include "**/*IT*", "**/*IntTest*"
  42. testLogging {
  43. events 'FAILED', 'SKIPPED'
  44. }
  45. systemProperty('spring.profiles.active', 'testdev')
  46. systemProperty('java.security.egd', 'file:/dev/./urandom')
  47. // uncomment if the tests reports are not generated
  48. // see https://github.com/jhipster/generator-jhipster/pull/2771 and https://github.com/jhipster/generator-jhipster/pull/4484
  49. // ignoreFailures true
  50. reports.html.enabled = false
  51. }
  52. integrationTest.dependsOn test