class ScribeMojo extends AbstractMojo {

    Project project() {
        var authors = Stream.of(pom.getContributors(), pom.getDevelopers())
                            .flatMap(Collection::stream)
                            .map(Contributor::getName)
                            .collect(toList());
        
        var api = "";
        for (var dependency : pom.getDependencies()) {
            var group = Project.DEPENDENCIES.get(dependency.getArtifactId());
            if (Objects.equals(group, dependency.getGroupId())) {
                api = dependency.getVersion();
                break;
            }
        }
        return new Project(pom.getName(), pom.getVersion(), api, authors, pom.getDescription(), pom.getUrl());
    }

}