대빵's Blog

gradle dependencies 확인하기 본문

개발관련

gradle dependencies 확인하기

bigzero 2022. 4. 17. 14:14
gradle 사용시 라이브러리 종속성 문제로 특정 jar 를 제외 시켜야 하는 경우
gradle dependenies task 를 이용하면 아래처럼 종속성을 tree 형태로 뽑아낼 수 있다.
파일로 추출하여 특정 jar 를 찾아서 제외 시켜주면 된다.
$ ./gradlew dependencies 
Starting a Gradle Daemon, 1 busy and 1 incompatible Daemons could not be reused, use --status for details 
> Configure project : 
Operation Env => local 
> Task :dependencies 
------------------------------------------------------------ 
Root project 'coss-app' 
------------------------------------------------------------ 
annotationProcessor - Annotation processors and their dependencies for source set 'main'. 
\--- org.projectlombok:lombok -> 1.18.22 
apiElements - API elements for main. (n) 
No dependencies 
archives - Configuration for archive artifacts. (n) 
No dependencies 
bootArchives - Configuration for Spring Boot archive artifacts. (n) 
No dependencies 
compileClasspath - Compile classpath for source set 'main'. 
+--- org.projectlombok:lombok -> 1.18.22 
+--- com.github.ulisesbocchio:jasypt-spring-boot-starter:2.1.2 
|    \--- com.github.ulisesbocchio:jasypt-spring-boot:2.1.2 
|         \--- org.jasypt:jasypt:1.9.3 
+--- org.bouncycastle:bcprov-jdk15on:1.61 
+--- javax.activation:activation:1.1 
+--- org.apache.commons:commons-compress:1.14 
+--- org.apache.poi:poi:3.10-FINAL 
|    \--- commons-codec:commons-codec:1.5 -> 1.15 
+--- org.apache.poi:poi-ooxml:3.10-FINAL 
|    +--- org.apache.poi:poi:3.10-FINAL (*) 
|    +--- org.apache.poi:poi-ooxml-schemas:3.10-FINAL 
|    |    \--- org.apache.xmlbeans:xmlbeans:2.3.0 
|    |         \--- stax:stax-api:1.0.1 
|    \--- dom4j:dom4j:1.6.1 
|         \--- xml-apis:xml-apis:1.0.b2 
+--- org.apache.poi:poi-ooxml-schemas:3.10-FINAL (*) 
+--- org.apache.poi:poi-scratchpad:3.10-FINAL 
|    \--- org.apache.poi:poi:3.10-FINAL (*) 
+--- org.springframework.boot:spring-boot-starter-undertow -> 2.6.1 
|    +--- io.undertow:undertow-core:2.2.12.Final 
|    |    +--- org.jboss.logging:jboss-logging:3.4.1.Final -> 3.4.2.Final 
|    |    +--- org.jboss.xnio:xnio-api:3.8.4.Final 
|    |    |    +--- org.wildfly.common:wildfly-common:1.5.2.Final 
|    |    |    \--- org.wildfly.client:wildfly-client-config:1.0.1.Final 
|    |    |         +--- org.jboss.logging:jboss-logging:3.3.1.Final -> 3.4.2.Final 
|    |    |         \--- org.wildfly.common:wildfly-common:1.2.0.Final -> 1.5.2.Final 
|    |    \--- org.jboss.threads:jboss-threads:3.1.0.Final 
|    |         \--- org.jboss.logging:jboss-logging:3.4.1.Final -> 3.4.2.Final 
|    +--- io.undertow:undertow-servlet:2.2.12.Final 
|    |    \--- io.undertow:undertow-core:2.2.12.Final (*) 
|    +--- io.undertow:undertow-websockets-jsr:2.2.12.Final 
|    |    +--- io.undertow:undertow-core:2.2.12.Final (*) 
|    |    \--- io.undertow:undertow-servlet:2.2.12.Final (*) 
|    +--- jakarta.servlet:jakarta.servlet-api:4.0.4 
|    +--- jakarta.websocket:jakarta.websocket-api:1.1.2 
|    \--- org.apache.tomcat.embed:tomcat-embed-el:9.0.55