Skip to content

Commit 6df0a55

Browse files
committed
Release 3.0.0-BETA-pre17. Add compile time variables. Remove deprecated LiteResult and LegacyContextProvider.
1 parent 35a34c4 commit 6df0a55

File tree

38 files changed

+154
-127
lines changed

38 files changed

+154
-127
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ Framework Core
3434
<dependency>
3535
<groupId>dev.rollczi</groupId>
3636
<artifactId>litecommands-core</artifactId>
37-
<version>3.0.0-BETA-pre16</version>
37+
<version>3.0.0-BETA-pre17</version>
3838
</dependency>
3939
```
4040

4141
```groovy
42-
implementation 'dev.rollczi:litecommands-core:3.0.0-BETA-pre16'
42+
implementation 'dev.rollczi:litecommands-core:3.0.0-BETA-pre17'
4343
```
4444

4545
### First Simple Command
@@ -85,12 +85,12 @@ Add this to your dependencies if you want to use ready-made implementation for v
8585
<dependency>
8686
<groupId>dev.rollczi</groupId>
8787
<artifactId>litecommands-velocity</artifactId>
88-
<version>3.0.0-BETA-pre16</version>
88+
<version>3.0.0-BETA-pre17</version>
8989
</dependency>
9090
```
9191

9292
```groovy
93-
implementation 'dev.rollczi:litecommands-velocity:3.0.0-BETA-pre16'
93+
implementation 'dev.rollczi:litecommands-velocity:3.0.0-BETA-pre17'
9494
```
9595

9696
#### Add -parameters to your compiler to use all features of LiteCommands

buildSrc/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ repositories {
88

99
dependencies {
1010
implementation("me.champeau.jmh:jmh-gradle-plugin:0.7.1")
11+
implementation("net.kyori:blossom:1.3.1")
12+
implementation("net.kyori:indra-git:3.1.3")
1113
}
1214

1315
sourceSets {
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
plugins {
2+
id("java-library")
3+
id("net.kyori.blossom")
4+
id("net.kyori.indra.git")
5+
}
6+
7+
blossom {
8+
indraGit {
9+
if (!isPresent) {
10+
throw IllegalStateException("indra-git is not present")
11+
}
12+
13+
val litecommandsVariables = "src/dev/rollczi/litecommands/LiteCommandsVariables.java"
14+
15+
val version = project.version.toString()
16+
val branchName = branchName() ?: throw IllegalStateException("branch name is null")
17+
18+
val commit = commit() ?: throw IllegalStateException("commit is null")
19+
val commitHash = commit.name
20+
21+
replaceToken("{litecommands-version}", version, litecommandsVariables)
22+
replaceToken("{litecommands-branch}", branchName, litecommandsVariables)
23+
replaceToken("{litecommands-commit}", commitHash, litecommandsVariables)
24+
}
25+
}

buildSrc/src/main/kotlin/litecommands-java-benchmark.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id("java-library")
2+
33
id("me.champeau.jmh")
44
}
55

buildSrc/src/main/kotlin/litecommands-publish.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
}
55

66
group = "dev.rollczi"
7-
version = "3.0.0-BETA-pre16"
7+
version = "3.0.0-BETA-pre17"
88

99
java {
1010
withSourcesJar()

examples/bukkit-adventure-platform/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ repositories {
1818
dependencies {
1919
compileOnly("org.spigotmc:spigot-api:1.20.2-R0.1-SNAPSHOT")
2020

21-
// implementation("dev.rollczi:litecommands-bukkit:3.0.0-BETA-pre16") // <-- uncomment in your project
22-
// implementation("dev.rollczi:litecommands-adventure-platform:3.0.0-BETA-pre16") // <-- uncomment in your project
21+
// implementation("dev.rollczi:litecommands-bukkit:3.0.0-BETA-pre17") // <-- uncomment in your project
22+
// implementation("dev.rollczi:litecommands-adventure-platform:3.0.0-BETA-pre17") // <-- uncomment in your project
2323
implementation("net.kyori:adventure-platform-bukkit:4.3.0")
2424
implementation("net.kyori:adventure-text-minimessage:4.14.0")
2525

examples/bukkit-chatgpt/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ repositories {
1818
dependencies {
1919
compileOnly("org.spigotmc:spigot-api:1.20.2-R0.1-SNAPSHOT")
2020

21-
// implementation("dev.rollczi:litecommands-bukkit:3.0.0-BETA-pre16") // <-- uncomment in your project
22-
// implementation("dev.rollczi:litecommands-chatgpt:3.0.0-BETA-pre16") // <-- uncomment in your project
21+
// implementation("dev.rollczi:litecommands-bukkit:3.0.0-BETA-pre17") // <-- uncomment in your project
22+
// implementation("dev.rollczi:litecommands-chatgpt:3.0.0-BETA-pre17") // <-- uncomment in your project
2323
implementation(project(":litecommands-bukkit")) // don't use this line in your build.gradle
2424
implementation(project(":litecommands-chatgpt")) // don't use this line in your build.gradle
2525
}

examples/bukkit/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ repositories {
1818
dependencies {
1919
compileOnly("org.spigotmc:spigot-api:1.20.2-R0.1-SNAPSHOT")
2020

21-
// implementation("dev.rollczi:litecommands-bukkit:3.0.0-BETA-pre16") // <-- uncomment in your project
21+
// implementation("dev.rollczi:litecommands-bukkit:3.0.0-BETA-pre17") // <-- uncomment in your project
2222
implementation(project(":litecommands-bukkit")) // don't use this line in your build.gradle
2323
}
2424

examples/velocity/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ dependencies {
1919
compileOnly("com.velocitypowered:velocity-api:3.2.0-SNAPSHOT")
2020
annotationProcessor("com.velocitypowered:velocity-api:3.2.0-SNAPSHOT")
2121

22-
// implementation("dev.rollczi:litecommands-velocity:3.0.0-BETA-pre16") // <-- uncomment in your project
22+
// implementation("dev.rollczi:litecommands-velocity:3.0.0-BETA-pre17") // <-- uncomment in your project
2323
implementation(project(":litecommands-velocity")) // don't use this line in your build.gradle
2424
}
2525

litecommands-adventure/src/dev/rollczi/litecommands/adventure/AdventureAudienceContextual.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22

33
import dev.rollczi.litecommands.context.ContextProvider;
44
import dev.rollczi.litecommands.context.ContextResult;
5-
import dev.rollczi.litecommands.context.LegacyContextProvider;
65
import dev.rollczi.litecommands.invocation.Invocation;
76
import net.kyori.adventure.audience.Audience;
8-
import panda.std.Result;
97

108
class AdventureAudienceContextual<SENDER> implements ContextProvider<SENDER, Audience> {
119

0 commit comments

Comments
 (0)