Guest User

Untitled

a guest
Dec 14th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. buildscript {
  2. ext {
  3. springBootVersion = '1.5.15.RELEASE'
  4. kotlinVersion = '1.2.70'
  5. queryDslVersion = '4.1.4'
  6. env = 'local'
  7. }
  8. // ...
  9. }
  10.  
  11. spring.profiles.active=local
  12.  
  13. task setEnv {
  14. doFirst {
  15. ant.propertyfile(file: "$projectDir/src/main/resources/application.properties") {
  16. entry( key: "spring.profiles.active", value: "$env")
  17. }
  18. println "Building with env = $env"
  19. }
  20. }
  21.  
  22. #Fri, 14 Dec 2018 11:22:04 -0200
  23. spring.profiles.active=local
Add Comment
Please, Sign In to add comment