Include JPA dependencies in dependency check.

Closes #77
This commit is contained in:
Mark Paluch
2024-04-05 10:41:26 +02:00
parent 1905a867db
commit c5988d5a66
3 changed files with 9 additions and 1 deletions

View File

@@ -86,6 +86,11 @@ public class Dependencies {
public static final Dependency XML_BEAM = Dependency.of("XMLBeam", "org.xmlbeam:xmlprojector");
public static final Dependency HIBERNATE = Dependency.of("Hibernate", "org.hibernate.orm:hibernate-core");
public static final Dependency ECLIPSELINK = Dependency.of("Eclipselink",
"org.eclipse.persistence:org.eclipse.persistence.jpa");
public static final Dependency MONGODB_CORE = Dependency.of("MongoDB", "org.mongodb:mongodb-driver-core");
public static final Dependency MONGODB_LEGACY = Dependency.of("MongoDB", "org.mongodb:mongo-java-driver");

View File

@@ -476,7 +476,7 @@ public class DependencyOperations {
Dependency dependency = projectDependency.getDependency();
if (!(project == Projects.MONGO_DB && projectDependency.getProperty().equals("mongo.reactivestreams")
|| project == Projects.NEO4J || project == Projects.BUILD)) {
|| project == Projects.NEO4J || project == Projects.BUILD || project == Projects.JPA)) {
if (it.getDependencyVersion(dependency.getArtifactId()) == null
&& it.getManagedDependency(dependency.getArtifactId()) == null) {

View File

@@ -70,6 +70,9 @@ public class ProjectDependencies implements Streamable<ProjectDependencies.Proje
config.add(Projects.COMMONS, ProjectDependency.ofProperty("vavr", Dependencies.VAVR));
config.add(Projects.COMMONS, ProjectDependency.ofProperty("xmlbeam", Dependencies.XML_BEAM));
config.add(Projects.JPA, ProjectDependency.ofProperty("hibernate", Dependencies.HIBERNATE));
config.add(Projects.JPA, ProjectDependency.ofProperty("eclipselink", Dependencies.ECLIPSELINK));
config.add(Projects.MONGO_DB, ProjectDependency.ofProperty("mongo.reactivestreams", Dependencies.MONGODB_RS));
config.add(Projects.MONGO_DB, ProjectDependency.ofProperty("mongo", Dependencies.MONGODB_LEGACY));
config.add(Projects.MONGO_DB, ProjectDependency.ofProperty("mongo", Dependencies.MONGODB_CORE));