add >= 6 to java dependecy