=dev-java/gradle-3.1 fail to compile and =dev-java/gradle-bin-3.1 fail to work.
The comon error message is Could not initialize class org.fusesource.jansi.internal.CLibrary.
It happens when starting to use gradle, either during the build for bootstrapping or during normal use. From what I tried, it seems that the failing class is not linked during boot, installing dev-java/jansi-native do not solve it, maybe there is a way to replace the bundled one (if any) with the system version.