Polishing.

Use Spring Data Relational as repository name when interacting with GitHub for the JDBC project.

See #206
This commit is contained in:
Mark Paluch
2022-03-22 11:21:41 +01:00
parent 7aa2e6683c
commit a3a390fad0
3 changed files with 8 additions and 4 deletions

View File

@@ -98,6 +98,8 @@ class MavenRuntime {
File javaHome = getJavaHome();
mavenLogger.info(String.format("Java Home: %s", jdk));
mavenLogger.info(String.format("Executing mvn %s", arguments));
InvocationRequest request = new DefaultInvocationRequest();
request.setJavaHome(javaHome);
request.setShellEnvironmentInherited(true);

View File

@@ -20,6 +20,7 @@ import lombok.EqualsAndHashCode;
import lombok.RequiredArgsConstructor;
import org.springframework.data.release.model.Project;
import org.springframework.data.release.model.Projects;
/**
* @author Oliver Gierke
@@ -39,16 +40,17 @@ public class GitProject {
/**
* Returns the name of the repository the project is using.
*
*
* @return
*/
public String getRepositoryName() {
return String.format("%s-%s", PROJECT_PREFIX, project.getName().toLowerCase());
return String.format("%s-%s", PROJECT_PREFIX,
project == Projects.JDBC ? "relational" : project.getName().toLowerCase());
}
/**
* Returns the URI of the {@link Project}'s repository.
*
*
* @return
*/
public String getProjectUri() {

View File

@@ -83,7 +83,7 @@ public class Projects {
REDIS = new Project("DATAREDIS", "Redis", Tracker.GITHUB).withDependencies(KEY_VALUE);
JDBC = new Project("DATAJDBC", "Relational", Tracker.GITHUB)
JDBC = new Project("DATAJDBC", "JDBC", Tracker.GITHUB)
.withAdditionalArtifacts(
ArtifactCoordinates.SPRING_DATA.artifacts("spring-data-relational", "spring-data-jdbc"))
.withDependencies(COMMONS);