백엔드 사이드 프로젝트를 구경해볼 수 있었는데 gradle로 프로젝트 의존성을 설정하는걸 보고 이게 뭔지 대충은 알아야겠다 싶었습니다.
개발자가 구현에만 집중할 수 있도록 빌드 자동화를 해두는 툴이라고 합니다.
Gradle은 Groovy 언어로 되어 있음
간결함이 장점
하나의 레포에 멀티 프로젝트 구성 가능
상속 받아서 사용 가능
플러그인 짱짱함: 정적분석기(checkstyle, pmd, findBugs, Sonar, Lint), 테스트(jacoco, cobertura, clover, sonarqube)
재밌는 사실은 Gradle이 언어에 종속적인 툴이 아니라서 Swift도 지원된다는 점 이었습니다.
docs.gradle.org/current/samples/sample_building_swift_applications.html
Building Swift Applications Sample
From inside the new project directory, run the init task using the following command in a terminal: gradle init. When prompted, select the 2: application project type and 6: Swift as implementation language. Next you can choose the DSL for writing buildscr
docs.gradle.org
언제 쓸지는 모르겠지만 스위프트도 있네요...
하지만 지금 관심있게 볼 부분은 Spring에 관한 명세!
docs.gradle.org/current/samples/sample_building_spring_boot_web_applications.html
Building Spring Boot Web Applications Sample
This sample shows how a Spring Boot Web application can be built with Gradle. The application was generated using the Spring Initializr. app/build.gradle plugins { id 'org.springframework.boot' version '2.2.1.RELEASE' id 'java' } version = '1.0.2' group =
docs.gradle.org
Spring 코어에 대한건 없고 바로 Spring Boot에 대한 설명이 있습니다.
스프링 코어에서는 쓸일이 없는걸까.......?
일단 지금 진행할 프로젝트에서도 스프링 부트를 쓰고 있으니 문제될 건 없겠네요ㅋ
gradle 파일에 테스트도 구성할 수 있는게 좋아보입니다.
tasks.named('test', Test) {
useJUnitPlatform()
}
'백엔드' 카테고리의 다른 글
[Spring] 스프링 입문 강의 노트 정리 (0) | 2022.06.07 |
---|---|
MySQL Workbench 써보기 (0) | 2021.05.12 |
Mac에서 jEnv 사용하기 (0) | 2021.05.09 |