Quantcast
Channel: Gradle Forums - Latest posts
Viewing all articles
Browse latest Browse all 19859

Could not resolve org.springframework.boot:spring-boot-dependencies:2.2.6.RELEASE

$
0
0

First, here’s the error:

> Configure project :product-tests:java:tools:TestRunner
Not sharing system properties from Gradle process with JavaExec process
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':product-tests:java:build'.
> Could not resolve all task dependencies for configuration ':product-tests:java:detachedConfiguration1'.
   > Could not resolve org.springframework.boot:spring-boot-dependencies:2.2.6.RELEASE.
     Required by:
         project :product-tests:java > com.tableau.modules:tab-core-crypto:2.3.8
         project :product-tests:java > project :workgroup:src:silos:tsm:services:app-tabadmin-webapp > com.tableau.modules:tab-core-appconfig:2.2.0
      > Com.tableau.modules:tab-core-crypto:2.3.8 declares a dependency from configuration 'default' to configuration 'platform-runtime' which is not declared in the descriptor for org.springframework.boot:spring-boot-dependencies:2.2.6.RELEASE.

This is using Gradle 5.6.4. Digging into one of the “required by” dependencies, tab-core-crypto is built using spring-boot-dependencies as a platform:

dependencies {
    compile platform("org.springframework.boot:spring-boot-dependencies:${versions.spring_boot}")
    ...
}

In the ivy.xml file for the artifact, I see:

  <configurations>
    <conf name="default" visibility="public" extends="jre8.rel"/>
    <conf name="jre8.rel" visibility="public"/>
    <conf name="runtimeElements" visibility="public"/>
    <conf name="sources" visibility="public"/>
  </configurations>
  <publications>
    <artifact name="tab-core-crypto" type="jar" ext="jar" m:classifier="jre8.rel" xmlns:m="http://ant.apache.org/ivy/maven"/>
    <artifact name="tab-core-crypto" type="jar" ext="jar" conf="sources" m:classifier="sources" xmlns:m="http://ant.apache.org/ivy/maven"/>
  </publications>
  <dependencies>
    <dependency org="org.springframework.boot" name="spring-boot-dependencies" rev="2.2.6.RELEASE" conf="default-&gt;platform-runtime"/>
    <dependency org="com.google.guava" name="guava" rev="26.0-android" conf="default-&gt;runtime"/>
    <dependency org="org.slf4j" name="slf4j-api" rev="1.7.30" conf="default-&gt;runtime"/>
    <dependency org="commons-lang" name="commons-lang" rev="2.6" conf="default-&gt;runtime"/>
    <dependency org="commons-codec" name="commons-codec" rev="1.13" conf="default-&gt;runtime"/>
    <dependency org="commons-io" name="commons-io" rev="2.5" conf="default-&gt;runtime"/>
  </dependencies>

To make this even stranger, the error only hits sometimes, and we can’t yet figure out any rhyme or reason to when it will work and when it will fail. Does anybody have any idea what this error means and how to fix it?

Thanks!


Viewing all articles
Browse latest Browse all 19859

Trending Articles