Reputation: 725
I am building a Java project in Intellij Idea IDE. Following is my build.gradle file:
group 'fyp_group09'
version '1.0-SNAPSHOT'
apply plugin: 'java'
sourceCompatibility = 1.5
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
compile 'log4j:log4j:1.2.17'
}
I use a proxy connection provided by school and have done the required proxy setup in the IDE. The log4j dependencies are not getting downloaded. I've refreshed the gradle project many times, but it does not download the dependencies and does not even give any error. How can I solve this problem?
Upvotes: 8
Views: 35202
Reputation: 422
I'll comment what was the issue FOR ME, just in case someone needs it: mavenLocal()
.
Yes, really. Even though the correct online repo is set, gradle chose to ignore it, and continues to do so when I re-add it. Luckily, I don't require it.
Upvotes: 0
Reputation: 735
We had this, worked after doing File>Invalidate Caches / Restart...
Upvotes: 12