@Test
void shouldPrioritizeGradleOverMaven() {

  URL gradleWithPom = GradleInfoReaderTest.class.getClassLoader().getResource(GRADLE_WITH_POM);
  File file = Urls.toFile(gradleWithPom);
  Path root = file.toPath().getParent();
  Project project = FileProjectFactory.create(file);
  assertNotNull(project);
  BuildInfo info = project.getBuildInfo();
  assertNotNull(info);
  assertEquals("gradle", info.getName());
  assertEquals("jar", info.getPackaging());
  assertEquals("latest", info.getVersion()); //build.gradle has no version so we should fallback.
}