The external jar exists. However, gradle cannot get it even though the path is right. How should it be resolved?
project build.gradle
buildscript{
repositories {
mavenLocal()
mavenCentral()
flatDir {
dirs "../libs"
}
}
dependencies {
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.6.2"
}
}
module build.gradle
repositories {
mavenLocal()
mavenCentral()
flatDir {
dirs "../libs"
}
}
folder structure
X:/Dev/IntelliJProjects/libs //all flatDir libs go here
X:/Dev/IntelliJProjects/my-project/my-project--core
when i run gradlew clean publishtomavenlocal
Could not resolve all files for configuration ':my-project--core:compileClasspath'. Could not find external-project:myDependency:1.0.0. Searched in the following locations: - file:/X:/Dev/IntelliJProjects/libs/myDependency-1.0.0.jar
but when I go to the folder, the file is there.