From ebce2efd540f6a89b92e0ccd782546bd431e612b Mon Sep 17 00:00:00 2001 From: IzzelAliz Date: Wed, 10 Jul 2019 22:51:49 +0800 Subject: [PATCH] Add guice --- build.gradle | 1 + src/main/scala/io/izzel/taboolib/TabooLib.java | 1 + 2 files changed, 2 insertions(+) diff --git a/build.gradle b/build.gradle index 94475d1..b1eeccc 100644 --- a/build.gradle +++ b/build.gradle @@ -33,6 +33,7 @@ dependencies { shadow group: 'com.zaxxer', name: 'HikariCP', version: '3.1.0' shadow group: 'org.scala-lang', name: 'scala-library', version: '2.12.8' shadow group: 'me.clip', name: 'placeholderapi', version: '2.8.4' + shadow group: 'com.google.inject', name: 'guice', version: '4.2.2' shadow fileTree(dir: 'libs', includes: ['*.jar']) } diff --git a/src/main/scala/io/izzel/taboolib/TabooLib.java b/src/main/scala/io/izzel/taboolib/TabooLib.java index 6cd10b9..49f49b0 100644 --- a/src/main/scala/io/izzel/taboolib/TabooLib.java +++ b/src/main/scala/io/izzel/taboolib/TabooLib.java @@ -29,6 +29,7 @@ import java.util.concurrent.Executors; @Dependency(type = Dependency.Type.LIBRARY, maven = "org.slf4j:slf4j-api:1.7.25", url = "https://skymc.oss-cn-shanghai.aliyuncs.com/libs/org.slf4j-slf4j-api-1.7.25.jar") @Dependency(type = Dependency.Type.LIBRARY, maven = "com.zaxxer:HikariCP:3.1.0", url = "https://skymc.oss-cn-shanghai.aliyuncs.com/libs/com.zaxxer-HikariCP-3.1.0.jar") @Dependency(type = Dependency.Type.LIBRARY, maven = "org.scala-lang:scala-library:2.12.8", url = "https://skymc.oss-cn-shanghai.aliyuncs.com/libs/scala-library-2.12.8.jar") +@Dependency(type = Dependency.Type.LIBRARY, maven = "com.google.inject:guice:4.2.2", url = "https://skymc.oss-cn-shanghai.aliyuncs.com/libs/guice-4.2.2.jar") public class TabooLib { private static TabooLib inst = new TabooLib();