Closed brharrington closed 7 months ago
@rpalcolea @chali are either of you familiar with how the packaging gets setup for the POM when publishing only the shadow jar? I'm guessing this has to do with #1103 or #1104.
Hi,
Let me add some details to this. The project can be reproduced by Micrometer's build but I can also repro it with a minimal Gradle project:
apply plugin: 'java'
repositories {
mavenCentral()
}
dependencies {
implementation 'com.netflix.spectator:spectator-reg-atlas:1.7.6'
}
And you can try to use it in a simple Java class (e.g.: src/main/java/org/example/App.java
):
package org.example;
public class App {
public static void main(String[] args) {
com.netflix.spectator.atlas.AtlasConfig atlasConfig = null;
}
}
Which should result in the same compiler error as above:
package com.netflix.spectator.atlas does not exist
I used the latest Gradle (8.6
, in Micrometer we are on 8.5
), I also used Java 21 and MacOS:
JVM: 21 (BellSoft 21+37-LTS)
OS: Mac OS X 14.3 x86_64
I don't think the java version or the OS is related since we have this issue on Micrometer CI too (Linux with different Java versions).
If I use Atlas 1.7.4
, these are on my classpath:
com.netflix.spectator:spectator-api:1.7.4
com.netflix.spectator:spectator-ext-ipc:1.7.4
com.netflix.spectator:spectator-reg-atlas:1.7.4
If I use 1.7.6
or 1.7.5
, spectator-reg-atlas
disappears:
com.netflix.spectator:spectator-api:1.7.6
com.netflix.spectator:spectator-ext-ipc:1.7.6
Hi folks,
I suspect there might be a regression in that fork. I opened https://github.com/Netflix/spectator/pull/1114 which:
I suspect there might be a regression in that fork.
Thanks, I'll try out your patch. Since the fork is just the original project with recent changes added, it might be good to understand what the regression is. If the original starts getting updated again it seems likely it would pick up the same regression.
@jonatan-ivanov 1.7.7 has been released and it works with micrometer when I tried locally.
Thank you! 1.7.7 passes on CI too I'm going to upgrade on Monday.
It was inadvertently changed to
<packaging>pom</packaging>
in 1.7.5 causing some problems for some projects trying to pull it in, for example https://github.com/micrometer-metrics/micrometer/pull/4700.