File tree 1 file changed +9
-0
lines changed
extensions/netty/deployment/src/main/java/io/quarkus/netty/deployment
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 25
25
import io .quarkus .deployment .annotations .Record ;
26
26
import io .quarkus .deployment .builditem .SystemPropertyBuildItem ;
27
27
import io .quarkus .deployment .builditem .nativeimage .NativeImageConfigBuildItem ;
28
+ import io .quarkus .deployment .builditem .nativeimage .NativeImageResourceBuildItem ;
28
29
import io .quarkus .deployment .builditem .nativeimage .NativeImageSystemPropertyBuildItem ;
29
30
import io .quarkus .deployment .builditem .nativeimage .ReflectiveClassBuildItem ;
30
31
import io .quarkus .deployment .builditem .nativeimage .RuntimeInitializedClassBuildItem ;
@@ -371,6 +372,14 @@ LogCleanupFilterBuildItem cleanupMacDNSInLog() {
371
372
"Can not find io.netty.resolver.dns.macos.MacOSDnsServerAddressStreamProvider in the classpath" );
372
373
}
373
374
375
+ /**
376
+ * `Version.identify()` in netty-common uses the resource to determine the version of netty.
377
+ */
378
+ @ BuildStep
379
+ NativeImageResourceBuildItem nettyVersions () {
380
+ return new NativeImageResourceBuildItem ("META-INF/io.netty.versions.properties" );
381
+ }
382
+
374
383
private String calculateMaxOrder (OptionalInt userConfig , List <MinNettyAllocatorMaxOrderBuildItem > minMaxOrderBuildItems ,
375
384
boolean shouldWarn ) {
376
385
int result = DEFAULT_NETTY_ALLOCATOR_MAX_ORDER ;
You can’t perform that action at this time.
0 commit comments