Skip to content

Commit

Permalink
version 2.3.1
Browse files Browse the repository at this point in the history
update infrastructure:
coroutines 1.7.3 -> 1.8.0
gradle 7.5 -> 8.6
  • Loading branch information
RationalityFrontline committed Feb 16, 2024
1 parent 4d5f544 commit 262dd99
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ A powerful in-process event dispatcher based on Kotlin and Coroutines.
## Download
**Gradle Kotlin DSL**
```kotlin
implementation("org.rationalityfrontline:kevent:2.3.0")
implementation("org.rationalityfrontline:kevent:2.3.1")
```

**Maven**
```xml
<dependency>
<groupId>org.rationalityfrontline</groupId>
<artifactId>kevent</artifactId>
<version>2.3.0</version>
<version>2.3.1</version>
</dependency>
```

Expand Down
7 changes: 4 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {
}

group = "org.rationalityfrontline"
version = "2.3.0"
version = "2.3.1"
val NAME = "kevent"
val DESC = "A powerful in-process event dispatcher based on Kotlin and Coroutines"
val GITHUB_REPO = "RationalityFrontline/kevent"
Expand All @@ -20,7 +20,7 @@ repositories {
}

dependencies {
val coroutinesVersion = "1.7.3"
val coroutinesVersion = "1.8.0"
/** Kotlin --------------------------------------------------------- */
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:$coroutinesVersion")
/** Logging -------------------------------------------------------- */
Expand All @@ -32,6 +32,7 @@ dependencies {
testImplementation(kotlin("test"))
testImplementation("org.spekframework.spek2:spek-dsl-jvm:$spekVersion")
testRuntimeOnly("org.spekframework.spek2:spek-runner-junit5:$spekVersion")
testRuntimeOnly("org.junit.platform:junit-platform-commons:1.10.2")
testRuntimeOnly(kotlin("reflect"))
testRuntimeOnly("org.jetbrains.kotlinx:kotlinx-coroutines-swing:$coroutinesVersion")
}
Expand All @@ -48,7 +49,7 @@ tasks {
kotlinOptions.jvmTarget = "11"
}
dokkaHtml {
outputDirectory.set(buildDir.resolve("javadoc"))
outputDirectory.set(layout.buildDirectory.dir("javadoc"))
moduleName.set("KEvent")
dokkaSourceSets {
named("main") {
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ object ThreadingFeature : Spek({
runBlocking(Dispatchers.Main) {
jlabel.text = "0"
}
SubscriberThreadMode.values().forEach { threadMode ->
SubscriberThreadMode.entries.forEach { threadMode ->
KEVENT.subscribe<Unit>(TestEventType.A, threadMode) { event ->
when (threadMode) {
SubscriberThreadMode.UI -> {
Expand Down Expand Up @@ -90,7 +90,10 @@ object ThreadingFeature : Spek({
addAllKindsOfSubscribers()
}
afterFeature {
jframe.dispatchEvent(WindowEvent(jframe, WindowEvent.WINDOW_CLOSING))
GlobalScope.launch {
delay(10)
jframe.dispatchEvent(WindowEvent(jframe, WindowEvent.WINDOW_CLOSING))
}
KEVENT.clear()
}

Expand Down

0 comments on commit 262dd99

Please sign in to comment.