From 50d79fdf2bc980a68e146a0cdd603658ee642fb1 Mon Sep 17 00:00:00 2001 From: therealbush Date: Sun, 24 Apr 2022 13:08:35 -0700 Subject: explitly declared transitive dependencies, made eventbus open for object singletons --- build.gradle.kts | 6 +++--- gradle/wrapper/gradle-wrapper.properties | 2 +- src/main/kotlin/me/bush/eventbuskotlin/EventBus.kt | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index e57d0c5..ad8a1e1 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -14,12 +14,12 @@ repositories.mavenCentral() dependencies { testImplementation(kotlin("test")) - + implementation("org.apache.logging.log4j:log4j-core:2.15.0") - // Additional Kotlin libraries required for some features implementation(kotlin("reflect", "1.6.20")) - implementation(kotlin("coroutines-core", "1.6.1")) + implementation(kotlin("stdlib-jdk8", "1.6.20")) + implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.1") } java { diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 2e6e589..41dfb87 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/src/main/kotlin/me/bush/eventbuskotlin/EventBus.kt b/src/main/kotlin/me/bush/eventbuskotlin/EventBus.kt index e08ef14..93b9199 100644 --- a/src/main/kotlin/me/bush/eventbuskotlin/EventBus.kt +++ b/src/main/kotlin/me/bush/eventbuskotlin/EventBus.kt @@ -10,7 +10,7 @@ import kotlin.reflect.KClass * @author bush * @since 1.0.0 */ -class EventBus(private val config: Config = Config()) { +open class EventBus(private val config: Config = Config()) { private val listeners = ConcurrentHashMap, ListenerGroup>() private val subscribers = ConcurrentHashMap.newKeySet() private val cache = ConcurrentHashMap?>() -- cgit