-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Make lucene snapshot repository exclusive to lucene packages #53353
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
Conversation
When depending on lucene snapshots we point maven at our own s3 backed repository. However, in this case lucene packages should only be retrieved from this location, and no other packages should ever be found in that repo. This commit makes the maven repository exclusive to lucene packages.
Pinging @elastic/es-core-infra (:Core/Infra/Build) |
@elasticmachine run elasticsearch-ci/2 |
@elasticmachine run elasticsearch-ci/2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One comment, otherwise LGTM.
repo.name = 'lucene-snapshots' | ||
repo.url = "https://s3.amazonaws.com/download.elasticsearch.org/lucenesnapshots/${revision}" | ||
} | ||
repos.exclusiveContent { ExclusiveContentRepository exclusiveRepo -> | ||
exclusiveRepo.filter { it.includeGroup('org.apache.lucene') } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this also specific only to snapshots? Do we ever use GA releases? And in that case, I assume we'd get those just from jcenter or maven central. If so, should we use a version regex filter here as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
repo.name = 'lucene-snapshots' | ||
repo.url = "https://s3.amazonaws.com/download.elasticsearch.org/lucenesnapshots/${revision}" | ||
} | ||
repos.exclusiveContent { ExclusiveContentRepository exclusiveRepo -> | ||
exclusiveRepo.filter { | ||
it.includeVersionByRegex('org\\.apache\\.lucene', '.*', ".*-snapshot-${revision}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, since this is Groovy we can use regex literal notation to avoid all the nasty string escaping so this could be /org\.apache\.lucene/
instead avoiding the redundant escape character.
When depending on lucene snapshots we point maven at our own s3 backed repository. However, in this case lucene packages should only be retrieved from this location, and no other packages should ever be found in that repo. This commit makes the maven repository exclusive to lucene packages.
When depending on lucene snapshots we point maven at our own s3 backed
repository. However, in this case lucene packages should only be
retrieved from this location, and no other packages should ever be found
in that repo. This commit makes the maven repository exclusive to lucene
packages.