Skip to content

Commit 35ab865

Browse files
committed
build: update dependencies & gradle wrapper
1 parent 7995784 commit 35ab865

File tree

11 files changed

+36
-34
lines changed

11 files changed

+36
-34
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ jobs:
1313
runs-on: "ubuntu-latest"
1414
steps:
1515
- uses: actions/checkout@v4
16-
- uses: gradle/wrapper-validation-action@v1
16+
- uses: gradle/actions/wrapper-validation@v3
1717
- name: Set up JDK
1818
uses: actions/setup-java@v4
1919
with:
2020
distribution: 'temurin'
21-
java-version: 17
22-
- uses: gradle/gradle-build-action@v2
21+
java-version: 21
22+
- uses: gradle/actions/setup-gradle@v3
2323
with:
24-
# allow main and *-dev branches to write caches (default is only main/main)
24+
# allow master and *-dev branches to write caches (default is only master/main)
2525
cache-read-only: ${{ github.ref != 'refs/heads/main' && !(endsWith(github.ref, '-dev') && startsWith(github.ref, 'refs/heads/')) }}
2626
- name: Build
2727
run: ./gradlew build

cloud-spring/src/test/java/org/incendo/cloud/spring/ShellIntegrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ static class TestCommand extends CommandBean<SpringCommandSender> {
126126
protected Command.Builder<SpringCommandSender> configure(final Command.Builder<SpringCommandSender> builder) {
127127
return builder.commandDescription(CommandDescription.commandDescription("Description!"))
128128
.required("string", stringParser())
129-
.flag(CommandFlag.builder("flag").withComponent(integerParser()));
129+
.flag(CommandFlag.builder("flag").withComponent(integerParser()).build());
130130
}
131131

132132
@Override

example/src/main/java/org/incendo/cloud/spring/example/commands/AddCatCommand.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import org.incendo.cloud.bean.CommandProperties;
3131
import org.incendo.cloud.context.CommandContext;
3232
import org.incendo.cloud.meta.CommandMeta;
33-
import org.incendo.cloud.parser.ArgumentParseResult;
3433
import org.incendo.cloud.parser.aggregate.AggregateParser;
3534
import org.incendo.cloud.parser.flag.CommandFlag;
3635
import org.incendo.cloud.spring.CloudCompletionProposal;
@@ -84,8 +83,7 @@ public AddCatCommand(final @NonNull CatService catService) {
8483
CloudCompletionProposal.of("Fluffy").displayText("Fluffy (A classic :))")
8584
)))
8685
.withComponent("age", integerParser(0))
87-
.withDirectMapper(Cat.class, (cmxCtx, ctx) -> ArgumentParseResult.success(new Cat(ctx.get("name"),
88-
ctx.get("age"))))
86+
.withDirectMapper(Cat.class, (cmxCtx, ctx) -> new Cat(ctx.get("name"), ctx.get("age")))
8987
.build();
9088

9189
return builder.literal("add")

example/src/main/java/org/incendo/cloud/spring/example/commands/RemoveCatCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public RemoveCatCommand(final @NonNull CatService catService) {
6868
protected Command.Builder<SpringCommandSender> configure(final Command.Builder<SpringCommandSender> builder) {
6969
return builder.literal("remove")
7070
.required("name", stringParser(), SuggestionProvider.blocking((ctx, in) ->
71-
this.catService.cats().stream().map(Cat::name).map(Suggestion::simple).collect(Collectors.toList())))
71+
this.catService.cats().stream().map(Cat::name).map(Suggestion::suggestion).collect(Collectors.toList())))
7272
.commandDescription(commandDescription("Remove a cat"));
7373
}
7474

example/src/main/resources/application.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ spring:
1010
log-startup-info: false
1111
banner-mode: off
1212

13+
shell:
14+
interactive:
15+
enabled: true
16+
1317
logging:
1418
level:
1519
org.incendo: info

gradle/build-logic/src/main/kotlin/cloud-spring.base-conventions.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ plugins {
55

66
indra {
77
javaVersions {
8-
minimumToolchain(17)
9-
target(17)
10-
testWith().set(setOf(17))
8+
minimumToolchain(21)
9+
target(21)
10+
testWith().set(setOf(21))
1111
}
1212
checkstyle().set(libs.versions.checkstyle)
1313
}

gradle/libs.versions.toml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ cloud-buildLogic-rootProject-publishing = { id = "org.incendo.cloud-build-logic.
66
cloud-buildLogic-rootProject-spotless = { id = "org.incendo.cloud-build-logic.spotless.root-project", version.ref = "cloud-build-logic" }
77

88
[versions]
9-
cloud-build-logic = "0.0.8-SNAPSHOT"
10-
springBoot = "3.2.2"
11-
ktlint = "1.0.1"
12-
checkstyle = "10.12.5"
13-
kotlin = "1.9.22"
9+
cloud-build-logic = "0.0.15"
10+
springBoot = "3.3.0"
11+
ktlint = "1.3.0"
12+
checkstyle = "10.17.0"
13+
kotlin = "1.9.24"
1414
graal = "0.9.28"
1515

16-
slf4j = "2.0.12"
17-
cloud = "2.0.0-beta.1"
16+
slf4j = "2.0.13"
17+
cloud = "2.0.0-rc.2"
1818

19-
springShellBom = "3.2.1"
19+
springShellBom = "3.3.0"
2020

2121
# Test
22-
truth = "1.4.0"
23-
awaitility = "4.2.0"
22+
truth = "1.4.2"
23+
awaitility = "4.2.1"
2424

2525
[libraries]
2626
cloud-build-logic = { module = "org.incendo:cloud-build-logic", version.ref = "cloud-build-logic" }

gradle/wrapper/gradle-wrapper.jar

-9 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
# Darwin, MinGW, and NonStop.
5656
#
5757
# (3) This script is generated from the Groovy template
58-
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
58+
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
5959
# within the Gradle project.
6060
#
6161
# You can find Gradle at https://github.com/gradle/gradle/.

0 commit comments

Comments
 (0)