The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 

47 行
1.3 KiB

  1. #!/bin/bash
  2. #
  3. # Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
  4. #
  5. # Build the bubble jar
  6. #
  7. # Usage:
  8. #
  9. # bbuild [no-clean] [debug|full|prod]
  10. #
  11. # no-clean : if present, do not clean the `target` directory before building
  12. #
  13. # debug : a debug build, does not include anything else in the jar
  14. # full : a production build, creates a fat jar in `bubble-server/target/bubble-server-VERSION-full.jar`
  15. # prod : a production build, creates a slimmer jar in `bubble-server/target/bubble-server-VERSION-prod.jar`
  16. #
  17. # If debug/full/prod is not specified, the default is prod.
  18. #
  19. SCRIPT="${0}"
  20. SCRIPT_DIR="$(cd "$(dirname "${SCRIPT}")" && pwd)"
  21. . "${SCRIPT_DIR}"/bubble_common
  22. CLEAN="clean"
  23. PROFILE=""
  24. WEB=1
  25. if [[ -n "${1}" ]] ; then
  26. if [[ "${1}" == "no-clean" ]] ; then
  27. CLEAN=""
  28. shift
  29. fi
  30. if [[ "${1}" == "debug" ]] ; then
  31. PROFILE=""
  32. WEB=""
  33. elif [[ "${1}" == "full" ]] ; then
  34. PROFILE="-Pproduction-full"
  35. elif [[ "${1}" == "prod" ]] ; then
  36. PROFILE="-Pproduction"
  37. else
  38. die "Invalid argument: ${1}"
  39. fi
  40. else
  41. # default
  42. PROFILE="-Pproduction"
  43. fi
  44. BUBBLE_PRODUCTION=${WEB} mvn -DskipTests=true -Dcheckstyle.skip=true ${PROFILE} ${CLEAN} package