Dependency analysis found issues. unusedDeclaredArtifacts:

I am facing a problem that has unusedDeclaredArtifacts as following.

Task :mini-cheetah-test:analyzeClassesDependencies FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:mini-cheetah-test:analyzeClassesDependencies’.

Dependency analysis found issues.
unusedDeclaredArtifacts:

  • org.junit.jupiter:junit-jupiter-api:5.5.1
  • org.junit.platform:junit-platform-commons:1.5.1
  • org.junit.platform:junit-platform-launcher:1.5.1
  • us.ihmc:mini-cheetah:0.11.0

Below is my gradle build file. I wonder how to remove these unused dependency files.

build.gradle file:
plugins {
id(“us.ihmc.ihmc-build”) version “0.20.1”
id(“us.ihmc.ihmc-ci”) version “5.3”
id(“us.ihmc.ihmc-cd”) version “1.14”
id(“us.ihmc.log-tools”) version “0.4.2”
}

ihmc {
loadProductProperties("…/product.properties")

configureDependencyResolution()
configurePublications()
}

mainDependencies {
api(“us.ihmc:ihmc-robot-models:source”)
api(“us.ihmc:ihmc-model-file-loader:source”)
api(“us.ihmc:ihmc-quadruped-robotics:source”)
api(“us.ihmc:example-simulations:source”)
}

testDependencies {
api(“us.ihmc:ihmc-quadruped-robotics-test:source”)
api(“us.ihmc:ihmc-quadruped-planning-test:source”)
}

settings.gradle:
buildscript {
repositories {
maven { url “https://plugins.gradle.org/m2/” }
mavenLocal()
}
dependencies {
classpath “us.ihmc:ihmc-build:0.20.1”
}
}

import us.ihmc.build.IHMCSettingsConfigurator

/**

  • Browse source at https://github.com/ihmcrobotics/ihmc-build
    */
    def ihmcSettingsConfigurator = new IHMCSettingsConfigurator(settings, logger, ext)
    ihmcSettingsConfigurator.checkRequiredPropertiesAreSet()
    ihmcSettingsConfigurator.configureExtraSourceSets()
    ihmcSettingsConfigurator.findAndIncludeCompositeBuilds()

This is my gradle version below.


Gradle 5.6.4

Build time: 2019-11-01 20:42:00 UTC
Revision: dd870424f9bd8e195d614dc14bb140f43c22da98

Kotlin: 1.3.41
Groovy: 2.5.4
Ant: Apache Ant™ version 1.9.14 compiled on March 12 2019
JVM: 1.8.0_252 (Private Build 25.252-b09)
OS: Linux 4.15.0-101-generic amd64

Java version : java-8-u252

Basically I run all task will have this error poping up.