Skip to content
Browse files
[FLINK-11580][netty] add statically linked netty-tcnative
With one of the artifacts of netty-tcnative [1], this enables support for using
the OpenSSL engine instead of the one from the JDK. [2] claims significant
improvements (3x) over the JDK and we may just also save some resources.

From the available artifacts, this commits selects the one which is statically
linked against Google's BoringSSL. Please refer to [1] for further details.

Due to possible licensing issues with the openSSL license BoringSSL is based on,
we only build this module if the build profile
'include-netty-tcnative-static-Pinclude-netty-tcnative-static' is activated.

  • Loading branch information
Nico Kruber authored and zentol committed May 15, 2019
1 parent 651ecb5 commit 4875bdc24d7d8a0076b65a11762fd49e536faaff
Showing 3 changed files with 136 additions and 0 deletions.
@@ -0,0 +1,110 @@
<?xml version="1.0" encoding="UTF-8"?>
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
<project xmlns="" xmlns:xsi=""





<!-- Netty's native openSSL support -->

<echo message="unpacking netty jar" />
<unzip src="${}/${artifactId}-${version}.jar" dest="${}/unpacked/" />
<echo message="renaming netty_tcnative library" />
<move todir="${}/unpacked/META-INF/native" includeemptydirs="false">
<fileset dir="${}/unpacked/META-INF/native"/>
<mapper type="regexp" from="(lib)?netty_tcnative_(|osx_x86_64.jnilib|windows_x86_64.dll)" to="\1org_apache_flink_shaded_netty4_netty_tcnative_\2"/>
<echo message="repackaging netty jar" />
<jar destfile="${}/${artifactId}-${version}.jar" basedir="${}/unpacked" />

@@ -0,0 +1,14 @@
Copyright 2014-2019 The Apache Software Foundation

This project includes software developed at
The Apache Software Foundation (

This project bundles the following dependencies under the Apache Software License 2.0 (

- io.netty:netty-tcnative-boringssl-static:2.0.25.Final

This project bundles the following dependencies under the OpenSSL license.
See bundled license files for details.

- BoringSSL (statically linked native libraries)
12 pom.xml
@@ -62,6 +62,18 @@ under the License.



0 comments on commit 4875bdc

Please sign in to comment.