diff --git a/releaser-core/src/main/java/releaser/internal/sagan/SaganUpdater.java b/releaser-core/src/main/java/releaser/internal/sagan/SaganUpdater.java index 967ba00f..e59a7ca2 100644 --- a/releaser-core/src/main/java/releaser/internal/sagan/SaganUpdater.java +++ b/releaser-core/src/main/java/releaser/internal/sagan/SaganUpdater.java @@ -65,24 +65,27 @@ public class SaganUpdater { if (updateReleaseException == null) { log.info("Updating Sagan releases with \n\n{}", update); try { - Project project = this.saganClient.updateRelease(currentVersion.projectName, - Collections.singletonList(update)); + Project project = this.saganClient.updateRelease( + currentVersion.projectName, Collections.singletonList(update)); Optional projectVersion = latestVersion(currentVersion, project); - log.info("Found the following latest project version [{}]", projectVersion); + log.info("Found the following latest project version [{}]", + projectVersion); boolean present = projectVersion.isPresent(); - if (present && currentVersionNewerOrEqual(currentVersion, projectVersion)) { + if (present + && currentVersionNewerOrEqual(currentVersion, projectVersion)) { updateDocumentationIfNecessary(projectFile, project); } else { log.info(present ? "Latest version [" + projectVersion.get() + "] present and " - + "the current version [" + currentVersion - + "] is older than that one. " + "Will do nothing." + + "the current version [" + currentVersion + + "] is older than that one. " + "Will do nothing." : "No latest version found. Will do nothing."); return ExecutionResult.skipped(); } - } catch (Exception ex) { + } + catch (Exception ex) { log.warn("Exception occurred while trying to update sagan release", ex); updateReleaseException = ex; } diff --git a/releaser-core/src/main/java/releaser/internal/tech/ExecutionResult.java b/releaser-core/src/main/java/releaser/internal/tech/ExecutionResult.java index ac1bf92d..889f0f04 100644 --- a/releaser-core/src/main/java/releaser/internal/tech/ExecutionResult.java +++ b/releaser-core/src/main/java/releaser/internal/tech/ExecutionResult.java @@ -70,7 +70,8 @@ public class ExecutionResult implements Serializable { } private static Exception breakReferenceChain(Exception cause) { - if (cause instanceof HttpServerErrorException || cause instanceof HttpClientErrorException) { + if (cause instanceof HttpServerErrorException + || cause instanceof HttpClientErrorException) { System.out.println("Breaking the reference chain. . . i think"); return new RuntimeException( "[Breaking self reference chain] " + cause.toString());