Polishing.

Fix Java selection for generic build operations. Include envers as child artifact of JPA.

See #194
This commit is contained in:
Mark Paluch
2022-01-14 14:53:01 +01:00
parent db45b4247c
commit 2f28d04eb1
2 changed files with 7 additions and 2 deletions

View File

@@ -220,7 +220,9 @@ public class BuildOperations {
Supplier<IllegalStateException> exception = () -> new IllegalStateException(
String.format("No build system plugin found for project %s!", module.getProject()));
return function.apply(buildSystems.getPluginFor(module.getProject(), exception), module);
BuildSystem buildSystem = buildSystems.getPluginFor(module.getProject(), exception);
return function.apply(buildSystem.withJavaVersion(module.getJavaVersion()), module);
}
}

View File

@@ -54,7 +54,10 @@ public class Projects {
COMMONS = new Project("DATACMNS", "Commons", Tracker.GITHUB).withDependencies(BUILD);
JPA = new Project("DATAJPA", "JPA", Tracker.GITHUB).withDependencies(COMMONS);
JPA = new Project("DATAJPA", "JPA", Tracker.GITHUB) //
.withDependencies(COMMONS) //
// TODO: This is only for Spring Data 3.0.
.withAdditionalArtifacts(ArtifactCoordinates.SPRING_DATA.artifacts("spring-data-envers"));
MONGO_DB = new Project("DATAMONGO", "MongoDB", Tracker.GITHUB) //
.withDependencies(COMMONS) //