build with java8 for usage samples