From 936968363b103e4ab930acb925ed2a0c2785fd8a Mon Sep 17 00:00:00 2001 From: Graham Date: Sat, 6 Feb 2021 12:56:50 +0000 Subject: [PATCH] Add CacheModule Signed-off-by: Graham --- cache/build.gradle.kts | 1 + .../src/main/kotlin/org/openrs2/cache/CacheModule.kt | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 cache/src/main/kotlin/org/openrs2/cache/CacheModule.kt diff --git a/cache/build.gradle.kts b/cache/build.gradle.kts index 6fe6cd8fba..15ebefc379 100644 --- a/cache/build.gradle.kts +++ b/cache/build.gradle.kts @@ -5,6 +5,7 @@ plugins { dependencies { api(project(":crypto")) + api("com.google.inject:guice:${Versions.guice}") api("io.netty:netty-buffer:${Versions.netty}") implementation(project(":buffer")) diff --git a/cache/src/main/kotlin/org/openrs2/cache/CacheModule.kt b/cache/src/main/kotlin/org/openrs2/cache/CacheModule.kt new file mode 100644 index 0000000000..166911533f --- /dev/null +++ b/cache/src/main/kotlin/org/openrs2/cache/CacheModule.kt @@ -0,0 +1,12 @@ +package org.openrs2.cache + +import com.google.inject.AbstractModule +import org.openrs2.buffer.BufferModule +import org.openrs2.crypto.CryptoModule + +public object CacheModule : AbstractModule() { + override fun configure() { + install(BufferModule) + install(CryptoModule) + } +}