mavenLocal() + nexus url, not pulling the latest file from maven local in windows


(Sai Kochi) #1

The following operation on gradle 4.1

The following code behaves differently in mac and windows:
repositories {
mavenLocal()
maven { url “${nexusUrl}/content/repositories/public” }
}

Cleaned the file in gradle cache before gradle building.
Mac is not downloading from nexus repo to gradle cache, and is pulling the file from maven local.
Windows machine always tries to pull from nexus to gradle cache, and is moving the file from cache instead of getting it from maven local.
Any idea on this issue could be helpful… Thank you