diff options
author | therealbush <therealbush@users.noreply.github.com> | 2022-04-24 13:08:35 -0700 |
---|---|---|
committer | therealbush <therealbush@users.noreply.github.com> | 2022-04-24 13:08:35 -0700 |
commit | 50d79fdf2bc980a68e146a0cdd603658ee642fb1 (patch) | |
tree | 347c44fb699e68d04b01bfa08227596e7fa1ca5a | |
parent | f3c07f1525a03f7278a8b431b2e0fbd2595c3738 (diff) | |
download | eventbus-kotlin-50d79fdf2bc980a68e146a0cdd603658ee642fb1.tar.gz eventbus-kotlin-50d79fdf2bc980a68e146a0cdd603658ee642fb1.tar.bz2 eventbus-kotlin-50d79fdf2bc980a68e146a0cdd603658ee642fb1.zip |
explitly declared transitive dependencies, made eventbus open for object singletons
-rw-r--r-- | build.gradle.kts | 6 | ||||
-rw-r--r-- | gradle/wrapper/gradle-wrapper.properties | 2 | ||||
-rw-r--r-- | 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<KClass<*>, ListenerGroup>() private val subscribers = ConcurrentHashMap.newKeySet<Any>() private val cache = ConcurrentHashMap<Any, List<Listener>?>() |