Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Sep 3, 2024
1 parent 1046449 commit 8e0f714
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 20 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ plugins {
}

group = "dev.schlaubi.lavakord"
version = "6.3.1"
version = "6.4.0"

allprojects {
repositories {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ internal class LinearRetry(

// tries/maxTries ratio * (backOffDiff) = retryProgress
val ratio = tries.getAndIncrement() / (maxTries - 1).toDouble()
if (ratio.isNaN()) return
val retryProgress = (maxBackoff - firstBackoff) * ratio
val diff = firstBackoff + retryProgress

Expand Down
6 changes: 4 additions & 2 deletions core/src/commonTest/kotlin/RetryTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ class RetryTest {
@JsName("testRetryMaxFail")
@Test
fun `check whether retry exits correctly after exceeding max`() {
val retry = LinearRetry(1.seconds, 5.seconds, 1)
val retry = LinearRetry(1.seconds, 5.seconds, 2)
Tests.runBlocking {
retry.retry()
repeat(2) {
retry.retry()
}

assertFalse(retry.hasNext, "Retry::hasNext has to be false when maxTries has been exceeded")
assertFailsWith<IllegalStateException>("Retry is supposed to throw illegalStateException when retrying after max was exceeded") { retry.retry() }
Expand Down
30 changes: 15 additions & 15 deletions plugins/lavasearch/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,23 @@ kotlin {
}

dependencies {
kspCommonMainMetadata(libs.kord.ksp.processors)
// kspCommonMainMetadata(libs.kord.ksp.processors)
}

tasks {
listOf(
"sourcesJar",
"jsSourcesJar",
"jvmSourcesJar",
"compileKotlinJs",
"compileKotlinJvm",
"dokkaHtml"
).forEach {
named(it) {
dependsOn("kspCommonMainKotlinMetadata")
}
}
}
//tasks {
// listOf(
// "sourcesJar",
// "jsSourcesJar",
// "jvmSourcesJar",
// "compileKotlinJs",
// "compileKotlinJvm",
// "dokkaHtml"
// ).forEach {
// named(it) {
// dependsOn("kspCommonMainKotlinMetadata")
// }
// }
//}

mavenPublishing {
configure(KotlinMultiplatform(JavadocJar.Dokka("dokkaHtml")))
Expand Down
2 changes: 1 addition & 1 deletion plugins/lavasrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ kotlin {
}

dependencies {
kspCommonMainMetadata(projects.plugins.kspProcessor)
// kspCommonMainMetadata(projects.plugins.kspProcessor)
}

//tasks {
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ include(
"kord", // GitHub Actions gets mad about this and I can't reproduce this locally
"jsExample",
"core",
":plugins:kspProcessor",
// ":plugins:kspProcessor",
":plugins:sponsorblock",
":plugins:lavasrc",
":plugins:lavasearch",
Expand Down

0 comments on commit 8e0f714

Please sign in to comment.