Details
-
Type:
Bug
-
Status:
Resolved
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.4-rc-1
-
Gradle Forums topic Reference:
Description
We publish source and test code jars for common libraries to Nexus.
So we end up with something like:
core-1.0-SNAPSHOT.jar
core-1.0-SNAPSHOT-sources.jar
core-1.0-SNAPSHOT-test.jar
Then I refer to the test jar from another project like so:
testCompile group: 'foo', name: 'core', version: '1.0-SNAPSHOT.jar', classifier: 'test'
This works the first time it is run but the updates do not get downloaded. So I have the usual:
configurations.all {
resolutionStrategy {
//don't cache snapshots
cacheChangingModulesFor 0, 'seconds'
}
}
This works for the main artifact but not for the test jar. What can I do to get the test jar to update like a normal SNAPSHOT?
Cheers, Ben
Issue Links
- Duplicated by
-
GRADLE-2218
eclipse plugin : Snapshot dependencies with sources classifier are not updated beside the first time runing "gradle eclipse"
-
Hi Ben,
What Gradle version? And what's the repository definition that this dependency will be coming from?