Skip to content
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

Move common repository configuration to java plugin #57057

Merged
merged 10 commits into from May 26, 2020

Conversation

rjernst
Copy link
Member

@rjernst rjernst commented May 21, 2020

This commit moves the common maven repository configuration to the ES
java plugin. All java projects need this common set of repos. Note that
the Elastic download and maven repos are removed, as they are not
necessary anymore since distribution download was split into the
DistributionDownloadPlugin.

This commit moves the common maven repository configuration to the ES
java plugin. All java projects need this common set of repos. Note that
the Elastic download and maven repos are removed, as they are not
necessary anymore since distribution download was split into the
DistributionDownloadPlugin.
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (:Core/Infra/Build)

@elasticmachine elasticmachine added the Team:Core/Infra Meta label for core/infra team label May 21, 2020
@rjernst rjernst requested a review from mark-vieira May 21, 2020 18:00
@rjernst
Copy link
Member Author

rjernst commented May 21, 2020

Note this also removes BuildPlugin.configureConfigurations which was dead code as it had already been migrated to ElasticsearchJavaPlugin.

Copy link
Contributor

@mark-vieira mark-vieira left a 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.

public static void configureRepositories(Project project) {
// ensure all repositories use secure urls
project.getRepositories().all(repository -> {
if (repository instanceof MavenArtifactRepository) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can now replace all of this with the following which was introduced in Gradle 6.0.

if (repository instanceof UrlArtifactRepository) {
    ((UrlArtifactRepository) repository).setAllowInsecureProtocol(false);
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was not able to do this because the gradle setting only controls a deprecation warning, it does not fail the build.

@rjernst rjernst merged commit deafcac into elastic:master May 26, 2020
@rjernst rjernst deleted the buildsplit10 branch May 26, 2020 21:10
rjernst added a commit that referenced this pull request May 26, 2020
This commit moves the common maven repository configuration to the ES
java plugin. All java projects need this common set of repos. Note that
the Elastic download and maven repos are removed, as they are not
necessary anymore since distribution download was split into the
DistributionDownloadPlugin.
rjernst added a commit that referenced this pull request May 26, 2020
This commit moves the common maven repository configuration to the ES
java plugin. All java projects need this common set of repos. Note that
the Elastic download and maven repos are removed, as they are not
necessary anymore since distribution download was split into the
DistributionDownloadPlugin.
rjernst added a commit that referenced this pull request May 26, 2020
This commit moves the common maven repository configuration to the ES
java plugin. All java projects need this common set of repos. Note that
the Elastic download and maven repos are removed, as they are not
necessary anymore since distribution download was split into the
DistributionDownloadPlugin.
@mark-vieira mark-vieira added Team:Delivery Meta label for Delivery team and removed Team:Core/Infra Meta label for core/infra team labels Nov 11, 2020
@jakelandis jakelandis removed the v8.0.0 label Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants