Skip to content

Commit 0b0b35f

Browse files
committed
#142: Use lib name as fallback.
1 parent 556b3e8 commit 0b0b35f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/main/java/com/commercetools/sync/commons/utils/SyncSolutionInfo.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import io.sphere.sdk.client.SolutionInfo;
44

5+
import static java.lang.String.format;
56
import static java.util.Optional.ofNullable;
67

78
public class SyncSolutionInfo extends SolutionInfo {
@@ -16,13 +17,14 @@ public class SyncSolutionInfo extends SolutionInfo {
1617
*
1718
*/
1819
public SyncSolutionInfo() {
20+
final String libraryName = "commercetools-sync-java";
1921
final String implementationTitle = ofNullable(getClass().getPackage().getImplementationTitle())
20-
.orElse("DEBUG-TITLE");
22+
.orElse(libraryName);
2123
final String implementationVersion = ofNullable(getClass().getPackage().getImplementationVersion())
2224
.orElse("DEBUG-VERSION");
2325
setName(implementationTitle);
2426
setVersion(implementationVersion);
25-
setWebsite("https://github.com/commercetools/commercetools-sync-java");
27+
setWebsite(format("https://github.com/commercetools/%s", libraryName));
2628
setEmergencyContact("ps-dev@commercetools.com");
2729
}
2830
}

0 commit comments

Comments
 (0)