[ML] Mark ml-cpp dependency as regularly changing (#43760)

Since #41817 was merged the ml-cpp zip file for any
given version has been cached indefinitely by Gradle.
This is problematic, particularly in the case of the
master branch where the version 8.0.0-SNAPSHOT will
be in use for more than a year.

This change tells Gradle that the ml-cpp zip file is
a "changing" dependency, and to check whether it has
changed every two hours. Two hours is a compromise
between checking on every build and annoying developers
with slow internet connections and checking rarely
causing bug fixes in the ml-cpp code to take a long
time to propagate through to elasticsearch PRs that
rely on them.
This commit is contained in:
David Roberts 2019-06-28 20:06:22 +01:00
parent 9d5c66be41
commit 7951c63b91
1 changed files with 4 additions and 1 deletions

View File

@ -31,6 +31,7 @@ configurations {
substitute module("org.elasticsearch.ml:ml-cpp") with project(":ml-cpp")
}
}
resolutionStrategy.cacheChangingModulesFor 2, 'hours'
}
}
@ -59,7 +60,9 @@ dependencies {
compile project(':libs:elasticsearch-grok')
compile "com.ibm.icu:icu4j:${versions.icu4j}"
compile "net.sf.supercsv:super-csv:${versions.supercsv}"
nativeBundle "org.elasticsearch.ml:ml-cpp:${project.version}@zip"
nativeBundle("org.elasticsearch.ml:ml-cpp:${project.version}@zip") {
changing = true
}
testCompile 'org.ini4j:ini4j:0.5.2'
}