Skip to content

Commit

Permalink
fix(deps): Updated Blossom usage
Browse files Browse the repository at this point in the history
  • Loading branch information
4drian3d committed Sep 14, 2023
1 parent 21a554e commit a661608
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ChatRegulatorBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
with:
timeout_minutes: 4
max_attempts: 2
command: gradle build
command: ./gradlew build

- name: Upload Artifacts
uses: actions/upload-artifact@v3
Expand Down
5 changes: 3 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ miniplaceholders = "2.2.1"
hexlogger = "1.0.2"
bstats = "3.0.2"

blossom = "1.3.1"
blossom = "2.0.1"
shadow = "8.1.1"
runvelocity = "2.1.0"

Expand All @@ -36,4 +36,5 @@ futures = { group = "com.spotify", name = "completable-futures", version.ref = "

blossom = { id = "net.kyori.blossom", version.ref = "blossom" }
shadow = { id = "com.github.johnrengelman.shadow", version.ref = "shadow" }
runvelocity = { id = "xyz.jpenilla.run-velocity", version.ref = "runvelocity" }
runvelocity = { id = "xyz.jpenilla.run-velocity", version.ref = "runvelocity" }
idea-ext = { id = "org.jetbrains.gradle.plugin.idea-ext", version = "1.1.7" }
12 changes: 9 additions & 3 deletions plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
java
alias(libs.plugins.blossom)
alias(libs.plugins.shadow)
alias(libs.plugins.idea.ext)
}

java {
Expand All @@ -28,9 +29,14 @@ dependencies {
testImplementation(libs.velocity)
}

blossom {
replaceTokenIn("src/main/java/io/github/_4drian3d/chatregulator/plugin/utils/Constants.java")
replaceToken("{version}", version)
sourceSets {
main {
blossom {
javaSources {
property("version", project.version.toString())
}
}
}
}

tasks {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public final class Constants {
/**
* ChatRegulator Version
*/
public static final String VERSION = "{version}";
public static final String VERSION = "{{ version }}";

private Constants() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
@Dependency(
id = "unsignedvelocity",
optional = true
),
@Dependency(
id = "signedvelocity",
optional = true
)
}
)
Expand Down

0 comments on commit a661608

Please sign in to comment.