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

Use micrometer-core project dependency in micrometer-samples-boot2 #1927

Merged
merged 1 commit into from
Mar 21, 2020

Conversation

izeye
Copy link
Contributor

@izeye izeye commented Mar 21, 2020

When I was looking at the build failure from #1921 (comment), I noticed that micrometer-samples-boot2 uses Spring Boot managed version of micrometer-core dependency whereas it uses backend implementations from the project. This PR changes to use micrometer-core project dependency in micrometer-samples-boot2.

I don't know the root cause of the build failure, but this change seems to fix it.

@izeye
Copy link
Contributor Author

izeye commented Mar 21, 2020

The build in my CircleCI has already finished before creating this PR, and its results didn't show up here. So I force-pushed without changes. The results seem okay now.

['atlas', 'azure-monitor', 'prometheus', 'datadog', 'elastic', 'ganglia', 'graphite', 'jmx', 'influx', 'statsd', 'new-relic', 'cloudwatch', 'cloudwatch2', 'signalfx', 'wavefront', 'elastic', 'dynatrace', 'humio', 'appoptics', 'stackdriver'].each { sys ->
implementation project(":micrometer-registry-$sys")
}

implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation('org.springframework.boot:spring-boot-starter-actuator') {
exclude group: 'io.micrometer', module: 'micrometer-core'
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to explicitly exclude this here or does the direct declaration of implementation project(":micrometer-core") override the transitive dependency? Just curious.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@shakuzen I thought the same thing, but it seems to be necessary based on the build results before and after the exclusion although I didn't look into it.

@shakuzen shakuzen added the type: task A general task label Mar 21, 2020
@shakuzen shakuzen added this to the 1.4.1 milestone Mar 21, 2020
@shakuzen shakuzen merged commit 944cad3 into micrometer-metrics:1.4.x Mar 21, 2020
@izeye izeye deleted the samples branch March 21, 2020 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: task A general task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants