Skip to content

Commit 619885e

Browse files
Chore(deps): Bump com.diffplug.spotless:spotless-maven-plugin from 2.27.2 to 2.43.0 (#1785)
* Chore(deps): Bump com.diffplug.spotless:spotless-maven-plugin Bumps [com.diffplug.spotless:spotless-maven-plugin](https://github.com/diffplug/spotless) from 2.27.2 to 2.43.0. - [Changelog](https://github.com/diffplug/spotless/blob/main/CHANGES.md) - [Commits](diffplug/spotless@maven/2.27.2...lib/2.43.0) --- updated-dependencies: - dependency-name: com.diffplug.spotless:spotless-maven-plugin dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Formatting updates --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Liam Newman <bitwiseman@gmail.com>
1 parent 0f19519 commit 619885e

File tree

6 files changed

+24
-24
lines changed

6 files changed

+24
-24
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@
379379
<plugin>
380380
<groupId>com.diffplug.spotless</groupId>
381381
<artifactId>spotless-maven-plugin</artifactId>
382-
<version>2.27.2</version>
382+
<version>2.43.0</version>
383383
<executions>
384384
<execution>
385385
<id>spotless-check</id>

src/main/java/org/kohsuke/github/GHRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1508,7 +1508,7 @@ public void delete() throws IOException {
15081508
} catch (FileNotFoundException x) {
15091509
throw (FileNotFoundException) new FileNotFoundException("Failed to delete " + getOwnerName() + "/" + name
15101510
+ "; might not exist, or you might need the delete_repo scope in your token: http://stackoverflow.com/a/19327004/12916")
1511-
.initCause(x);
1511+
.initCause(x);
15121512
}
15131513
}
15141514

src/main/java/org/kohsuke/github/authorization/AuthorizationProvider.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ public interface AuthorizationProvider {
2323
*
2424
* <pre>
2525
* {@code
26-
* &#64;Override
27-
* public String getEncodedAuthorization() {
28-
* return "Bearer myBearerToken";
29-
* }
26+
* &#64;Override
27+
* public String getEncodedAuthorization() {
28+
* return "Bearer myBearerToken";
29+
* }
3030
* }
3131
* </pre>
3232
*

src/test/java/org/kohsuke/github/GHCheckRunBuilderTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public void createCheckRun() throws Exception {
7474
"hello to you too").withTitle("Look here"))
7575
.add(new GHCheckRunBuilder.Image("Unikitty",
7676
"https://i.pinimg.com/474x/9e/65/c0/9e65c0972294f1e10f648c9780a79fab.jpg")
77-
.withCaption("Princess Unikitty")))
77+
.withCaption("Princess Unikitty")))
7878
.add(new GHCheckRunBuilder.Action("Help", "what I need help with", "doit"))
7979
.create();
8080
assertThat(checkRun.getStatus(), equalTo(Status.COMPLETED));

src/test/java/org/kohsuke/github/GHWorkflowRunTest.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ public void testManualRunAndBasicInformation() throws IOException {
8484
GHWorkflowRun workflowRun = getWorkflowRun(FAST_WORKFLOW_NAME,
8585
MAIN_BRANCH,
8686
Status.COMPLETED,
87-
latestPreexistingWorkflowRunId).orElseThrow(
88-
() -> new IllegalStateException("We must have a valid workflow run starting from here"));
87+
latestPreexistingWorkflowRunId)
88+
.orElseThrow(() -> new IllegalStateException("We must have a valid workflow run starting from here"));
8989

9090
assertThat(workflowRun.getWorkflowId(), equalTo(workflow.getId()));
9191
assertThat(workflowRun.getId(), notNullValue());
@@ -137,8 +137,8 @@ public void testCancelAndRerun() throws IOException {
137137
GHWorkflowRun workflowRun = getWorkflowRun(SLOW_WORKFLOW_NAME,
138138
MAIN_BRANCH,
139139
Status.IN_PROGRESS,
140-
latestPreexistingWorkflowRunId).orElseThrow(
141-
() -> new IllegalStateException("We must have a valid workflow run starting from here"));
140+
latestPreexistingWorkflowRunId)
141+
.orElseThrow(() -> new IllegalStateException("We must have a valid workflow run starting from here"));
142142

143143
assertThat(workflowRun.getId(), notNullValue());
144144

@@ -186,8 +186,8 @@ public void testDelete() throws IOException {
186186
GHWorkflowRun workflowRunToDelete = getWorkflowRun(FAST_WORKFLOW_NAME,
187187
MAIN_BRANCH,
188188
Status.COMPLETED,
189-
latestPreexistingWorkflowRunId).orElseThrow(
190-
() -> new IllegalStateException("We must have a valid workflow run starting from here"));
189+
latestPreexistingWorkflowRunId)
190+
.orElseThrow(() -> new IllegalStateException("We must have a valid workflow run starting from here"));
191191

192192
assertThat(workflowRunToDelete.getId(), notNullValue());
193193

@@ -224,8 +224,8 @@ public void testSearchOnBranch() throws IOException {
224224
GHWorkflowRun workflowRun = getWorkflowRun(FAST_WORKFLOW_NAME,
225225
SECOND_BRANCH,
226226
Status.COMPLETED,
227-
latestPreexistingWorkflowRunId).orElseThrow(
228-
() -> new IllegalStateException("We must have a valid workflow run starting from here"));
227+
latestPreexistingWorkflowRunId)
228+
.orElseThrow(() -> new IllegalStateException("We must have a valid workflow run starting from here"));
229229

230230
assertThat(workflowRun.getWorkflowId(), equalTo(workflow.getId()));
231231
assertThat(workflowRun.getHeadBranch(), equalTo(SECOND_BRANCH));
@@ -326,8 +326,8 @@ public void testLogs() throws IOException {
326326
GHWorkflowRun workflowRun = getWorkflowRun(FAST_WORKFLOW_NAME,
327327
MAIN_BRANCH,
328328
Status.COMPLETED,
329-
latestPreexistingWorkflowRunId).orElseThrow(
330-
() -> new IllegalStateException("We must have a valid workflow run starting from here"));
329+
latestPreexistingWorkflowRunId)
330+
.orElseThrow(() -> new IllegalStateException("We must have a valid workflow run starting from here"));
331331

332332
List<String> logsArchiveEntries = new ArrayList<>();
333333
String fullLogContent = workflowRun
@@ -370,8 +370,8 @@ public void testArtifacts() throws IOException {
370370
GHWorkflowRun workflowRun = getWorkflowRun(ARTIFACTS_WORKFLOW_NAME,
371371
MAIN_BRANCH,
372372
Status.COMPLETED,
373-
latestPreexistingWorkflowRunId).orElseThrow(
374-
() -> new IllegalStateException("We must have a valid workflow run starting from here"));
373+
latestPreexistingWorkflowRunId)
374+
.orElseThrow(() -> new IllegalStateException("We must have a valid workflow run starting from here"));
375375

376376
List<GHArtifact> artifacts = new ArrayList<>(workflowRun.listArtifacts().toList());
377377
artifacts.sort((a1, a2) -> a1.getName().compareTo(a2.getName()));
@@ -456,8 +456,8 @@ public void testJobs() throws IOException {
456456
GHWorkflowRun workflowRun = getWorkflowRun(MULTI_JOBS_WORKFLOW_NAME,
457457
MAIN_BRANCH,
458458
Status.COMPLETED,
459-
latestPreexistingWorkflowRunId).orElseThrow(
460-
() -> new IllegalStateException("We must have a valid workflow run starting from here"));
459+
latestPreexistingWorkflowRunId)
460+
.orElseThrow(() -> new IllegalStateException("We must have a valid workflow run starting from here"));
461461

462462
List<GHWorkflowJob> jobs = workflowRun.listJobs()
463463
.toList()

src/test/java/org/kohsuke/github/GHWorkflowTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,9 @@ public void testDispatch() throws IOException {
121121
workflow.dispatch("main", Collections.singletonMap("parameter", "value"));
122122
verify(postRequestedFor(
123123
urlPathEqualTo("/repos/hub4j-test-org/GHWorkflowTest/actions/workflows/6817859/dispatches"))
124-
.withRequestBody(containing("inputs"))
125-
.withRequestBody(containing("parameter"))
126-
.withRequestBody(containing("value")));
124+
.withRequestBody(containing("inputs"))
125+
.withRequestBody(containing("parameter"))
126+
.withRequestBody(containing("value")));
127127
}
128128

129129
/**

0 commit comments

Comments
 (0)