티스토리 뷰
[build.gradle]에 보면 depengency부분에 라이브러리를 추가한 모습을 볼 수 있다.
[build.gradle]
dependencies {
implementation('org.springframework.boot:spring-boot-starter-data-jpa')
implementation('org.springframework.boot:spring-boot-starter-integration')
implementation('org.springframework.boot:spring-boot-starter-jdbc')
implementation('org.springframework.boot:spring-boot-starter-security')
implementation('org.springframework.boot:spring-boot-starter-validation')
implementation('org.springframework.boot:spring-boot-starter-web')
implementation('org.mybatis.spring.boot:mybatis-spring-boot-starter:1.3.2')
implementation('org.springframework.session:spring-session-jdbc')
runtimeOnly('org.springframework.boot:spring-boot-devtools')
runtimeOnly('com.microsoft.sqlserver:mssql-jdbc')
compileOnly('org.projectlombok:lombok')
implementation('org.springframework:springloaded:1.2.4.RELEASE')
compile('org.apache.tomcat.embed:tomcat-embed-jasper')
compile('javax.servlet:jstl')
testImplementation('org.springframework.boot:spring-boot-starter-test')
testImplementation('org.springframework.restdocs:spring-restdocs-mockmvc')
testImplementation('org.springframework.security:spring-security-test')
}
Gradle 3.4에서는 새로운 Java 라이브러리 플러그인 구성을 도입했습니다. 이 구성에서는 (모듈 간 종속성을 위해) 컴파일 및 런타임 클래스 경로에 대한 게시를 제어할 수 있습니다. Android 플러그인 3.0.0은 이와 같은 새로운 종속성 구성으로 이전하고 있습니다. 프로젝트를 마이그레이션하려면, 지원 중단된 구성 대신 새로운 구성을 사용하도록 종속성을 업데이트하기만 하면 됩니다(아래 표에 요약).
새 구성 | 지원 | 동작 |
---|---|---|
implementation | compile | 컴파일 타임에는 모듈에 종속성을 사용할 수 있으며, 런타임에만 모듈 소비자에게 종속성을 사용할 수 있습니다. 대규모의 다중 프로젝트 빌드에서 api /compile 대신 implementation 을 사용하면 빌드 시스템이 재컴파일해야 하는 프로젝트의 크기가 줄어들기 때문에 빌드 시간이 상당히 개선될 수 있습니다. 대부분의 앱과 테스트 모듈은 이 구성을 사용해야 합니다. |
api | compile | 컴파일 타임에는 모듈에 종속성을 사용할 수 있으며, 컴파일 타임과 런타임에는 모듈 소비자에게도 종속성을 사용할 수 있습니다. 이 구성은 compile (지금은 지원 중단됨)과 마찬가지로 동작하며 일반적으로 이 구성은 라이브러리 모듈에서만 사용해야 합니다. API를 별도 테스트 모듈에 노출시키지 않으려면, 앱 모듈이 implementation 을 사용해야 합니다. |
compileOnly | provided | 컴파일 타임에만 모듈에 종속성을 사용할 수 있으며, 컴파일 타임이나 런타임에는 소비자에게 종속성을 사용할 수 없습니다. 이 구성은 provided 와 마찬가지로 동작합니다(지금은 지원 중단됨). |
runtimeOnly | apk | 런타임에만 모듈과 모듈 소비자에게 종속성을 사용할 수 있습니다. 이 구성은 apk 와 마찬가지로 동작합니다(지금은 지원 중단됨). |
참조 : https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration?hl=ko
'Etc.' 카테고리의 다른 글
Model1과 Model2의 차이점 (0) | 2018.12.11 |
---|---|
Window Intellij 단축키 Eclipse로 변경하기 (0) | 2018.11.29 |
Package에서 활성화된 파일의 위치 찾기 (0) | 2018.11.29 |
The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path (0) | 2018.11.27 |
WAS서버 Apache Tomcat 환경변수 설정 (0) | 2018.11.26 |
- Total
- Today
- Yesterday
- DB 툴
- Encoding UTF-8
- Whitelabel Error Page(404 Not Found)에러
- compileOnly
- spring loaded
- 라이브러리 종속성
- 패키지 위치 찾기
- Apache설치
- 알고리즘
- 기초입문
- 웹서버설치
- spring 기본 login
- mysql 연동
- login page
- Autoscroll from Source
- webprogramming
- 이데일리 코딩 챌린지
- eclipse disable welcome page
- hot swapping
- tomcat 환경변수
- runtimeOnly
- java
- 나눔고딕코딩
- Spring Security
- 활성화된 파일 위치 찾기
- apache tomcat 설정
- SQL 개발툴
- gradle 종속성
- springboot에서 jsp호출
- EDAILY CODING CHALLENGE
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |