Strange behaviour of BND in Gradle