Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
public:computer:gradle [2022/04/01 17:25] – [References] alexpublic:computer:gradle [2022/07/12 13:36] (current) alex
Line 1: Line 1:
 ====== Gradle ====== ====== Gradle ======
 +
 +===== 의존성 옵션 =====
 +  * **implementation**: 의존 라이브러리 수정시 본 모듈까지만 재빌드한다. \\ 본 모듈을 의존하는 모듈은 해당 라이브러리의 api 를 사용할 수 없음
 +  * **api**: 의존 라이브러리 수정시 본 모듈을 의존하는 모듈들도 재빌드 \\ 본 모듈을 의존하는 모듈들도 해당 라이브러리의 api 를 사용할 수 있음
 +  * **compileOnly**: 이름에서 알 수 있듯이 compile 시에만 빌드하고 빌드 결과물에는 포함하지 않는다. \\ runtime 시 필요없는 라이브러리인 경우 (runtime 환경에 이미 라이브러리가 제공되고 있는가 하는 등의 경우)
 +  * **runtimeOnly**: runtime 시에만 필요한 라이브러리인 경우
 +  * **annotationProcessor**: annotation processor 명시 (ex:lombok)
 +  * **testImplementation** : 테스트 코드를 수행할 때만 적용.
  
 ===== References ===== ===== References =====
Line 6: Line 14:
   * [[https://namsick96.github.io/build%20tool/Gradle_version_change_at_Intellij/|Intellij에서 Gradle 버전 바꾸기]]   * [[https://namsick96.github.io/build%20tool/Gradle_version_change_at_Intellij/|Intellij에서 Gradle 버전 바꾸기]]
   * [[https://tube-life.tistory.com/25|[intellij] gradle 버전 변경]]   * [[https://tube-life.tistory.com/25|[intellij] gradle 버전 변경]]
 +  * [[https://cantcoding.tistory.com/59|Gradle 의존성 옵션 정리(Compile VS implementation,옵션)]]
  • public/computer/gradle.1648801517.txt.gz
  • Last modified: 2022/04/01 17:25
  • by alex