Skip to content

Commit

Permalink
updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
NonSwag committed Apr 30, 2024
1 parent 4ec198a commit 95b0ec0
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 32 deletions.
7 changes: 4 additions & 3 deletions api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,20 @@ repositories {
maven("https://repo.thenextlvl.net/releases")
maven("https://repo.thenextlvl.net/snapshots")
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/")
}

dependencies {
compileOnly("org.projectlombok:lombok:1.18.30")
compileOnly("org.projectlombok:lombok:1.18.32")
compileOnly("net.thenextlvl.core:annotations:2.0.1")
compileOnly("com.fastasyncworldedit:FastAsyncWorldEdit-Core")
compileOnly("com.fastasyncworldedit:FastAsyncWorldEdit-Bukkit") { isTransitive = false }
compileOnly("io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT")
compileOnly("io.papermc.paper:paper-api:1.20.6-R0.1-SNAPSHOT")

implementation("net.thenextlvl.core:files:1.0.5-pre2")
implementation(platform("com.intellectualsites.bom:bom-newest:1.43"))

annotationProcessor("org.projectlombok:lombok:1.18.30")
annotationProcessor("org.projectlombok:lombok:1.18.32")
}

publishing {
Expand Down
14 changes: 7 additions & 7 deletions plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,24 @@ repositories {
}

dependencies {
compileOnly("org.projectlombok:lombok:1.18.30")
compileOnly("org.projectlombok:lombok:1.18.32")
compileOnly("net.thenextlvl.core:annotations:2.0.1")
compileOnly("com.fastasyncworldedit:FastAsyncWorldEdit-Core")
compileOnly("com.fastasyncworldedit:FastAsyncWorldEdit-Bukkit") { isTransitive = false }
compileOnly("io.papermc.paper:paper-api:1.20.6-R0.1-SNAPSHOT")

implementation("org.bstats:bstats-bukkit:3.0.2")
implementation("org.incendo:cloud-paper:2.0.0-beta.2")
implementation("org.incendo:cloud-minecraft-extras:2.0.0-beta.2")
implementation("org.incendo:cloud-paper:2.0.0-beta.5")
implementation("org.incendo:cloud-minecraft-extras:2.0.0-beta.5")
implementation(platform("com.intellectualsites.bom:bom-newest:1.43"))

implementation(project(":api"))
implementation("net.thenextlvl.core:i18n:1.0.14")
implementation("net.thenextlvl.core:i18n:1.0.15")
implementation("net.thenextlvl.core:files:1.0.5-pre2")
implementation("net.thenextlvl.core:paper:1.2.6")
implementation("net.thenextlvl.core:adapters:1.0.8")
implementation("net.thenextlvl.core:paper:1.3.0-pre1")
implementation("net.thenextlvl.core:adapters:1.0.9")

annotationProcessor("org.projectlombok:lombok:1.18.30")
annotationProcessor("org.projectlombok:lombok:1.18.32")
}

tasks.shadowJar {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Command.Builder<CommandSender> create() {
SuggestionProvider.blocking((context, input) -> plugin.areaProvider().getAreas()
.filter(area -> area instanceof RegionizedArea<?>)
.map(Area::getName)
.map(Suggestion::simple)
.map(Suggestion::suggestion)
.toList()))
.handler(this::execute);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Command.Builder<CommandSender> create() {
NamespacedKeyParser.namespacedKeyParser(),
SuggestionProvider.blocking((context, input) -> plugin.flagRegistry().getFlags().stream()
.map(flag -> flag.key().asString())
.map(Suggestion::simple)
.map(Suggestion::suggestion)
.toList()))
.optional("area",
StringParser.greedyStringParser(),
Expand All @@ -67,7 +67,7 @@ Command.Builder<CommandSender> create() {
}),
SuggestionProvider.blocking((context, input) -> plugin.areaProvider().getAreas()
.map(Area::getName)
.map(Suggestion::simple)
.map(Suggestion::suggestion)
.toList()))
.handler(this::execute);
}
Expand Down Expand Up @@ -103,7 +103,7 @@ Command.Builder<CommandSender> create() {
SuggestionProvider.blocking((context, input) -> plugin.flagRegistry().getRegistry()
.keySet().stream()
.map(Plugin::getName)
.map(Suggestion::simple)
.map(Suggestion::suggestion)
.toList()))
.handler(this::execute);
}
Expand Down Expand Up @@ -150,7 +150,7 @@ Command.Builder<CommandSender> create() {
NamespacedKeyParser.namespacedKeyParser(),
SuggestionProvider.blocking((context, input) -> plugin.flagRegistry().getFlags().stream()
.map(flag -> flag.key().asString())
.map(Suggestion::simple)
.map(Suggestion::suggestion)
.toList()))
.required("value",
StringParser.greedyStringParser(),
Expand All @@ -159,22 +159,22 @@ Command.Builder<CommandSender> create() {
var flag = plugin.flagRegistry().getFlag(key).orElse(null);
if (flag == null) return java.util.List.of();
if (flag.type().equals(Boolean.class)) return Stream.of("true", "false")
.map(Suggestion::simple).toList();
.map(Suggestion::suggestion).toList();
else if (flag.type().equals(Integer.class))
return IntStream.rangeClosed(0, 100).mapToObj(Integer::toString)
.map(Suggestion::simple).toList();
.map(Suggestion::suggestion).toList();
else if (flag.type().equals(Double.class))
return IntStream.rangeClosed(0, 100).mapToObj(Double::toString)
.map(Suggestion::simple).toList();
.map(Suggestion::suggestion).toList();
else if (flag.type().equals(Float.class))
return IntStream.rangeClosed(0, 100).mapToObj(Float::toString)
.map(Suggestion::simple).toList();
.map(Suggestion::suggestion).toList();
else if (flag.type().equals(Long.class))
return IntStream.rangeClosed(0, 100).mapToObj(Long::toString)
.map(Suggestion::simple).toList();
.map(Suggestion::suggestion).toList();
else if (flag.type().isEnum())
return Arrays.stream(flag.type().getEnumConstants()).map(String::valueOf)
.map(Suggestion::simple).toList();
.map(Suggestion::suggestion).toList();
return java.util.List.of();
}))
.optional("area",
Expand All @@ -185,7 +185,7 @@ else if (flag.type().isEnum())
}),
SuggestionProvider.blocking((context, input) -> plugin.areaProvider().getAreas()
.map(Area::getName)
.map(Suggestion::simple)
.map(Suggestion::suggestion)
.toList()))
.handler(this::execute);
}
Expand Down Expand Up @@ -250,7 +250,7 @@ Command.Builder<CommandSender> create() {
NamespacedKeyParser.namespacedKeyParser(),
SuggestionProvider.blocking((context, input) -> plugin.flagRegistry().getFlags().stream()
.map(flag -> flag.key().asString())
.map(Suggestion::simple)
.map(Suggestion::suggestion)
.toList()))
.optional("area",
StringParser.greedyStringParser(),
Expand All @@ -260,7 +260,7 @@ Command.Builder<CommandSender> create() {
}),
SuggestionProvider.blocking((context, input) -> plugin.areaProvider().getAreas()
.map(Area::getName)
.map(Suggestion::simple)
.map(Suggestion::suggestion)
.toList()))
.handler(this::execute);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Command.Builder<CommandSender> create() {
}),
SuggestionProvider.blocking((context, input) -> plugin.areaProvider().getAreas()
.map(Area::getName)
.map(Suggestion::simple)
.map(Suggestion::suggestion)
.toList()))
.handler(this::execute);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Command.Builder<CommandSender> create() {
}),
SuggestionProvider.blocking((context, input) -> plugin.areaProvider().getAreas()
.map(Area::getName)
.map(Suggestion::simple)
.map(Suggestion::suggestion)
.toList()))
.handler(this::execute);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Command.Builder<Player> create() {
SuggestionProvider.blocking((context, input) -> plugin.areaProvider().getAreas()
.filter(area -> area instanceof SchematicHolder)
.map(Area::getName)
.map(Suggestion::simple)
.map(Suggestion::suggestion)
.toList()))
.senderType(Player.class)
.handler(this::execute);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Command.Builder<CommandSender> create() {
.filter(area -> area instanceof SchematicHolder holder
&& holder.getSchematic().isFile())
.map(Area::getName)
.map(Suggestion::simple)
.map(Suggestion::suggestion)
.toList()))
.handler(this::execute);
}
Expand Down Expand Up @@ -89,7 +89,7 @@ Command.Builder<CommandSender> create() {
.filter(area -> area instanceof SchematicHolder holder
&& holder.getSchematic().isFile())
.map(Area::getName)
.map(Suggestion::simple)
.map(Suggestion::suggestion)
.toList()))
.handler(this::execute);
}
Expand Down Expand Up @@ -127,7 +127,7 @@ Command.Builder<CommandSender> create() {
SuggestionProvider.blocking((context, input) -> plugin.areaProvider().getAreas()
.filter(area -> area instanceof SchematicHolder)
.map(Area::getName)
.map(Suggestion::simple)
.map(Suggestion::suggestion)
.toList()))
.handler(this::execute);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Command.Builder<Player> create() {
SuggestionProvider.blocking((context, input) -> plugin.areaProvider().getAreas()
.filter(area -> area instanceof RegionizedArea<?>)
.map(Area::getName)
.map(Suggestion::simple)
.map(Suggestion::suggestion)
.toList()))
.handler(this::execute);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Command.Builder<Player> create() {
SuggestionProvider.blocking((context, input) -> plugin.areaProvider().getAreas()
.filter(area -> area instanceof RegionizedArea<?>)
.map(Area::getName)
.map(Suggestion::simple)
.map(Suggestion::suggestion)
.toList()))
.senderType(Player.class)
.handler(this::execute);
Expand Down

0 comments on commit 95b0ec0

Please sign in to comment.