[REST API] 20. Blog V3 : Build

문정준's avatar
May 15, 2025
[REST API] 20. Blog V3 : Build

1. Build

  • Build (With Testing)
    • ./ : 해당 폴더 내의 파일 search (없으면 path부터 찾음)
./gradlew clean build
notion image
 
  • Build Without Testing ( 테스트 불가능 환경의 경우 )
./gradlew clean build -x test
notion image

Build Result

notion image
 

2. Build with Jar (Environment Test)

  • 배포 버전 최종 테스팅은 Build 이후 생성되는 jar 파일을 이용해서 실행해봐야 함
jar 내부 폴더 구조
jar 내부 폴더 구조
 
  • git bash를 이용해서 실제 환경 확인
    • dev(개발), local(로컬), prod(배포)
java -jar "파일명.jar" --spring.profiles.active=내가 실행할 버전
notion image
 
Share article

sxias