New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing dependencies and Dynamic versions don't work - Kotlin DSL #8664
Comments
Can you be more specific about the problem?
|
Sure. I just want to make sure that if I publish a library with the exact same, existing, version but different content, all my services which rely on the library should pick up that change immediately. |
@yuranos could you please come up with a reproducer that demonstrates the issue? I hardly see how this could be related to the Gradle Kotlin DSL. Maybe your issue can be reproduced with Groovy scripts too? |
Hello @eskatos , we don't use S3 or other fancy setups like @yuranos and we can confirm that the content of the deployed (Note: The Maven dependency Snapshot version should look like this: kotlin DSL: (don't work) implementation("de.urlname.framework", "Framework_Shared_Public", project.extra.get("frameworkVersion").toString()).isChanging = true old groovy version: (has worked just fine) compile group: 'de.urlname.framework', name: 'Framework_Shared_Public', version:project.frameworkVersion, changing: true (just if you wonder -> we have changed from Currently we have to clear the entire Gradle cache over and over again which is a pain since the entire IDE has to be restarted and everything has to be downloaded and indexed again. rm -rf $HOME/.gradle/caches/ As I mentioned with groovy it has worked just fine without clearing any caches. best regards. |
I can confirm the same problem with the kotlin DSL in gradle 6.0. My organization versions all of our maven artifacts as configurations.all {
resolutionStrategy.cacheChangingModulesFor(0, "seconds")
} But it does not work. Whenever we have changes in a dependency, a new build is automatically triggered on bamboo for the dependent. But that build never works properly. I have to ssh into all of our bamboo servers, |
I'm not sure if the problem is in Kotlin DSL, maven-publish plugin or S3 connection.
We publish our artifacts to S3 via:
`publishing {
}`
I have configured resolution strategy with 0 cache time:
However, it only works as expected for implicitly changing SNAPSHOT versions, like:
compile("com.yuranos.pixel:pixel-utils:0.0.1-SNAPSHOT")
Other options do not work. For example for:
compile("com.attendify.pixel:pixel-utils:0.0.1+") { setChanging(true) }
a locally cached version is used.
The text was updated successfully, but these errors were encountered: