Skip to content

Commit

Permalink
Fix versioning of core plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Jun 14, 2023
1 parent 1389e77 commit 862af22
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,14 @@ internal fun Project.buildDependenciesString(): String {
}

internal fun Dependency.toDependencyString(optional: Boolean = false): String {
val safeVersion = version.toString().substringBefore("-SNAPSHOT")
val name = if (this is ProjectDependency) {
dependencyProject.pluginId
} else {
name.substringAfter("mikbot-")
}

return "$name${if (optional) "?" else ""}@>=$version"
return "$name${if (optional) "?" else ""}@>=$safeVersion"
}

/**
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ serialization = "1.5.1"
ktor = "2.3.0"
kord = "0.9.0"
jjwt = "0.11.5"
api = "3.19.6"
api = "3.19.7"
ksp = "1.8.21-1.0.11"

[libraries]
Expand Down
2 changes: 1 addition & 1 deletion music/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

group = "dev.schlaubi.mikbot"
version = "2.22.0-SNAPSHOT"
version = "2.22.1-SNAPSHOT"

dependencies {
api(libs.lavakord.kord)
Expand Down

0 comments on commit 862af22

Please sign in to comment.