java - Why is resolve dependencies 'classpath' so slow? -
why gradle tasks become slow (longer 5 minutes) when add apache commons codec , apache commons io dependencies project? clear, executing build task still works, takes long time. when slow, gradle output is
resolving dependencies: 'classpath'
below offending portion of build.gradle:
buildscript { repositories { maven { url "http://repo.spring.io/libs-snapshot" } mavencentral() mavenlocal() } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:0.5.0.m6") classpath("org.mongodb:mongo-java-driver:2.11.3") classpath("org.seleniumhq.selenium:selenium-java:2.37.1") classpath("com.google.guava:guava:16.0.1") classpath('commons-codec:commons-codec:1.9') classpath("commons-io:commons-io:2.4") } }
if not include last 2 classpath dependencies (codec , io), buildscript faster. using gradle 1.10 via gradlew.
first question need add dependencies gradle script's classpath? these script plugin dependencies or application's dependencies?
your example looks quite different spring boot example. using older version of spring boot gradle plugin.
Comments
Post a Comment