Gradle ignoring last build

I have a gradle ( v2.4 ) project with these entries:

repositories {
      maven { url "http://artifacts.us:8081/artifactory/repo" }
      mavenLocal()
      mavenCentral()
}

...
configurations.all {
    resolutionStrategy.cacheChangingModulesFor 0, 'seconds'

...
(bunch of modules)

compile(group:"com.mystuff", name: "some_util", version: "+", changing: true)
}

In artifactory I have versions 0.0.1 - 0.0.7 (all -SNAPSHOT) some_util.

When I run the assembly (via jenkins ), it continues to build with 0.0.6-SNAPSHOT, despite the presence of the 0.0.7-SNAPSHOT assembly.

What I tried:

  • setting build step (in jenkins) ./gradlew --refresh-dependencies clean
  • higher changing: true
  • record resolutionStrategy

What am I missing? Is gradle v2.4 too old?

+4
source share

Source: https://habr.com/ru/post/1629563/


All Articles