Fix inclusion of protobuf-java in libraryDependencies according to plugins used