Skip to content

Commit 51279e4

Browse files
committed
Reformat code.
See #20
1 parent 1767a7f commit 51279e4

File tree

2 files changed

+35
-42
lines changed

2 files changed

+35
-42
lines changed

src/main/java/org/springframework/data/release/cli/SpringDataReleaseCliBannerProvider.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
package org.springframework.data.release.cli;
1717

1818
import org.apache.commons.io.IOUtils;
19-
2019
import org.springframework.boot.SpringBootVersion;
2120
import org.springframework.core.Ordered;
2221
import org.springframework.core.annotation.Order;

src/main/java/org/springframework/data/release/cli/VerifyCommands.java

Lines changed: 35 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
*/
1616
package org.springframework.data.release.cli;
1717

18+
import lombok.AccessLevel;
19+
import lombok.NonNull;
20+
import lombok.RequiredArgsConstructor;
21+
import lombok.experimental.FieldDefaults;
22+
1823
import org.springframework.data.release.CliComponent;
1924
import org.springframework.data.release.TimedCommand;
2025
import org.springframework.data.release.build.BuildOperations;
@@ -27,11 +32,6 @@
2732
import org.springframework.shell.core.annotation.CliOption;
2833
import org.springframework.util.ObjectUtils;
2934

30-
import lombok.AccessLevel;
31-
import lombok.NonNull;
32-
import lombok.RequiredArgsConstructor;
33-
import lombok.experimental.FieldDefaults;
34-
3535
/**
3636
* Commands to verify a correct Release Tools Setup.
3737
*
@@ -42,48 +42,42 @@
4242
@FieldDefaults(level = AccessLevel.PRIVATE, makeFinal = true)
4343
class VerifyCommands extends TimedCommand {
4444

45-
@NonNull
46-
GitOperations git;
47-
@NonNull
48-
GitHub github;
49-
@NonNull
50-
DeploymentOperations deployment;
51-
@NonNull
52-
BuildOperations build;
53-
@NonNull
54-
SaganClient saganClient;
55-
@NonNull
56-
Logger logger;
45+
@NonNull GitOperations git;
46+
@NonNull GitHub github;
47+
@NonNull DeploymentOperations deployment;
48+
@NonNull BuildOperations build;
49+
@NonNull SaganClient saganClient;
50+
@NonNull Logger logger;
5751

58-
@CliCommand("verify")
59-
public void verifyReleaseTools(@CliOption(key = "", mandatory = false) String module) {
52+
@CliCommand("verify")
53+
public void verifyReleaseTools(@CliOption(key = "", mandatory = false) String module) {
6054

61-
if (ObjectUtils.isEmpty(module) || "git".equals(module)) {
62-
// Git checkout build
63-
git.verify();
64-
}
55+
if (ObjectUtils.isEmpty(module) || "git".equals(module)) {
56+
// Git checkout build
57+
git.verify();
58+
}
6559

66-
if (ObjectUtils.isEmpty(module) || "build".equals(module)) {
67-
// Maven interaction
68-
build.verify();
69-
}
60+
if (ObjectUtils.isEmpty(module) || "build".equals(module)) {
61+
// Maven interaction
62+
build.verify();
63+
}
7064

71-
if (ObjectUtils.isEmpty(module) || "deployment".equals(module)) {
72-
// Artifactory verification
73-
deployment.verifyAuthentication();
74-
}
65+
if (ObjectUtils.isEmpty(module) || "deployment".equals(module)) {
66+
// Artifactory verification
67+
deployment.verifyAuthentication();
68+
}
7569

76-
if (ObjectUtils.isEmpty(module) || "github".equals(module)) {
77-
// GitHub verification
78-
github.verifyAuthentication();
79-
}
70+
if (ObjectUtils.isEmpty(module) || "github".equals(module)) {
71+
// GitHub verification
72+
github.verifyAuthentication();
73+
}
8074

81-
if (ObjectUtils.isEmpty(module) || "sagan".equals(module)) {
82-
// Sagan Verification
83-
saganClient.verifyAuthentication();
84-
}
75+
if (ObjectUtils.isEmpty(module) || "sagan".equals(module)) {
76+
// Sagan Verification
77+
saganClient.verifyAuthentication();
78+
}
8579

86-
logger.log("Verify", "All settings are verified. You can ship a release now.");
87-
}
80+
logger.log("Verify", "All settings are verified. You can ship a release now.");
81+
}
8882

8983
}

0 commit comments

Comments
 (0)