On 17/07/16 16:57, Ellison Anne Williams wrote:
> Suneel -- Thanks for creating the JIRA issue and pointing out the licensing
> problems. I see that JMH is under the GNU GPL2 (
> http://openjdk.java.net/legal/) which is not compatible with the Apache
> license (http://www.apache.org/legal/resolved.html).
> 
> It appears that Flink just removed the benchmarking code instead of
> re-porting it to another option.
> 
> I would like us to port it to another license-compatible benchmarking
> framework such as Google Caliper (or something similar) instead of removing
> the code as the benchmarking is important for encryption optimization.
> 
> Thoughts?

JMH is GPLv2 with classpath exception [1], which means that it cannot be
distributed as part of the ALv2 licensed works (Pirk), but there is no
problem with using this library as a tool / dependency at runtime.
Afterall, there is no Java runtime that allows for redistribution under
ALv2 either!

That said, running the "mvn package" target *does* put JMH generated
code into the resulting pirk-0.0.1-SNAPSHOT.jar -- which then begs the
question why Pirk is putting test code into the library?

So if the benchmark code were not part of the delivery then you can
continue to use JMH, but if that is there for a reason then we would
have to switch to a compatible licensed framework.

[1] http://hg.openjdk.java.net/code-tools/jmh/file/c050a47b2b37/LICENSE

Regards,
Tim

Reply via email to