Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Taskeren committed Sep 10, 2021
1 parent 439b6fa commit 4d8f937
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = "cn.taskeren.brigadierx"
version = "1.1-SNAPSHOT"
version = "1.2-SNAPSHOT"

repositories {
maven("http://maven.aliyun.com/nexus/content/groups/public/")
Expand All @@ -15,15 +15,17 @@ repositories {
mavenLocal()
mavenCentral()
jcenter()
maven("https://libraries.minecraft.net")
}

dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation("com.github.Mojang:brigadier:1.0.17")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.21")

api("com.github.Mojang:brigadier:1.0.18")

// JUnit5
testImplementation("org.junit.jupiter:junit-jupiter-api:5.6.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.6.2")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.7.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.7.2")
}

tasks.test {
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/cn/taskeren/brigadierx/BrigadierX.kt
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ fun <S, T1, T2> RequiredArgumentBuilder<S, T1>.argument(name: String, type: Argu
*
* ================================== */

fun <S, T: ArgumentBuilder<S, T>> ArgumentBuilder<S, T>.executex(func: (CommandContext<S>) -> Any) {
fun <S, T: ArgumentBuilder<S, T>> ArgumentBuilder<S, T>.executesX(func: (CommandContext<S>) -> Any) {
this.executes {
func.invoke(it)
Command.SINGLE_SUCCESS
Expand Down

0 comments on commit 4d8f937

Please sign in to comment.