I use Gradle 2.4. What I try to do is to learn Gradle and apply it to non-java/non-C projects. I have this small build.gradle
file:
project.version = "74384"
group = "org.martin"
ext {
cwd = System.getProperty("user.dir")
ciRepo = cwd+"/ciRepo"
}
configurations {
compile
}
repositories {
maven {
name = "Local file system"
url ciRepo
}
}
dependencies {
compile group:group, name:rootProject.name, version: project.version, ext:"tgz", classifier:"txt"
}
When I run: gradle --daemon dependencies
, I get an error:
Execution failed for task ':dependencies'.
> Could not resolve all dependencies for configuration ':compile'.
> Module version org.martin:proj:74384, configuration 'compile' declares a dependency on configuration 'default' which is not declared in the module descriptor for org.martin:proj:74384
I do not understand what “which is not declared in the module descriptor” means.
Q1: Is the compile
in the configurations
the same as the compile
in the dependencies
?
Q2: What is the “module descriptor”?
Q3: Can someone help me see what’s wrong?
Thank you.