본문 바로가기
학습/Spring

[java] Gradle(그레이들)이란?

by KKambi 2020. 1. 5.

<특징>

0. npm과 같은 패키지 관리!

1. 오픈소스 빌드 자동화 툴

2. Groovy(DSL의 일종)를 이용하여 작성

3. 안드로이드 스튜디오의 공식 빌드 툴

 

<build.gradle 내의 buildscript block의 역할>

- Gradle 빌드 스크립트 자체를 위한 의존성이나 변수, Task, Plugin 등을 지정

- SpringBoot 기반 프로젝트 진행 시, 이 곳에 spring-boot-gradle-plugin을 classpath로 추가한다.

 

1. Determines which plugins, task classes, and other classes are available for use in the rest of the build script.

 

2. The global level dependencies and repositories sections list dependencies that required for building your source and running your source etc.

 

3. The buildscript is for the build.gradle file itself. So, this would contain dependencies for say creating RPMs, Dockerfile, and any other dependencies for running the tasks in all the dependent build.gradle.

 

출처

https://stackoverflow.com/questions/17773817/purpose-of-buildscript-block-in-gradle

https://jahyun-dev.github.io/posts/gradle-1/

'학습 > Spring' 카테고리의 다른 글

[spring] @RequestParam과 @PathVariable  (0) 2020.02.15
[spring] DAO와 Repository / DTO / VO  (0) 2020.02.02
[java] Lombok이란?  (0) 2019.12.14
[java] jar, war, ear  (0) 2019.12.14
[java] JDBC / MyBatis / JPA / Spring-Data-JPA  (0) 2019.12.14

댓글