netty / netty-tcnative

A fork of Apache Tomcat Native, based on finagle-native
Apache License 2.0
239 stars 179 forks source link

Classifier ignored for statically linked libraries #852

Open zekronium opened 7 months ago

zekronium commented 7 months ago

It seems to be that since 2.0.50.Final its not possible to get just the specified classifier as per the wiki which results only the full Uber jar downloaded

Behavior <= 2.0.49.Final

image

Behavior after >= 2.0.50.Final

image

This is the pom.xml dependencies

<dependency>
      <groupId>io.netty</groupId>
      <artifactId>netty-tcnative-boringssl-static</artifactId>
      <version>2.0.63.Final</version>
      <classifier>linux-x86_64</classifier>
</dependency>

Behavior is the same with ${os.detected.classifier}

zapek commented 1 week ago

Still happens with 2.0.65 and Gradle. I use:

implementation "io.netty:netty-tcnative-boringssl-static::windows-x86_64"

but I see all architectures in the resulting jar.

zapek commented 1 week ago

Well, scratch my previous comment. There was a mistake in my build script and I got it to work properly.