Skip to content

Commit 1a3c287

Browse files
committed
Restrict ml-cpp artifact to fake ivy repo (elastic#70105)
We use a fake ivy repository to resolve the CI built version of ml-cpp. This commit restricts the fake group name to only come from this fake ivy repository, since it should not exist anywhere else.
1 parent 8a0a96b commit 1a3c287

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

x-pack/plugin/ml/build.gradle

+15-8
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,22 @@ esplugin {
1212

1313

1414
repositories {
15-
ivy {
16-
name "ml-cpp"
17-
url System.getProperty('build.ml_cpp.repo', 'https://prelert-artifacts.s3.amazonaws.com')
18-
metadataSources {
19-
// no repository metadata, look directly for the artifact
20-
artifact()
15+
exclusiveContent {
16+
forRepository {
17+
ivy {
18+
name "ml-cpp"
19+
url System.getProperty('build.ml_cpp.repo', 'https://prelert-artifacts.s3.amazonaws.com')
20+
metadataSources {
21+
// no repository metadata, look directly for the artifact
22+
artifact()
23+
}
24+
patternLayout {
25+
artifact "maven/org/elasticsearch/ml/ml-cpp/[revision]/ml-cpp-[revision].[ext]"
26+
}
27+
}
2128
}
22-
patternLayout {
23-
artifact "maven/org/elasticsearch/ml/ml-cpp/[revision]/ml-cpp-[revision].[ext]"
29+
filter {
30+
includeGroup 'org.elasticsearch.ml'
2431
}
2532
}
2633
}

0 commit comments

Comments
 (0)