From 3968bdb4931501c77f7cd4b344e2419e936f3053 Mon Sep 17 00:00:00 2001 From: 502647092 Date: Thu, 22 Oct 2015 21:02:01 +0800 Subject: [PATCH] incloud 7boss gson... Signed-off-by: 502647092 --- pom.xml | 11 +++++++++++ .../cn/citycraft/Yum/manager/RepositoryManager.java | 10 +++++----- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 17a1ce2..4397932 100644 --- a/pom.xml +++ b/pom.xml @@ -33,6 +33,7 @@ cn.citycraft:PluginHelper + cn.mcraft:Gson @@ -40,6 +41,10 @@ cn.citycraft.PluginHelper ${project.groupId}.${project.artifactId} + + cn.mcraft + ${project.groupId}.${project.artifactId} + @@ -81,5 +86,11 @@ jar 1.0 + + cn.mcraft + Gson + jar + 1.0-SNAPSHOT + \ No newline at end of file diff --git a/src/main/java/cn/citycraft/Yum/manager/RepositoryManager.java b/src/main/java/cn/citycraft/Yum/manager/RepositoryManager.java index 6a78668..7fe53ae 100644 --- a/src/main/java/cn/citycraft/Yum/manager/RepositoryManager.java +++ b/src/main/java/cn/citycraft/Yum/manager/RepositoryManager.java @@ -17,14 +17,14 @@ import org.bukkit.command.CommandSender; import org.bukkit.configuration.file.FileConfiguration; import com.google.common.base.Charsets; -import com.google.gson.JsonSyntaxException; -import com.google.gson.reflect.TypeToken; -import cn.citycraft.PluginHelper.gson.GsonLib; -import cn.citycraft.PluginHelper.gson.api.Gson; import cn.citycraft.Yum.manager.Repositories.PackageInfo; import cn.citycraft.Yum.manager.Repositories.Plugin; -import cn.citycraft.Yum.manager.Repositories.Repository;; +import cn.citycraft.Yum.manager.Repositories.Repository; +import cn.mcraft.gson.GsonLib; +import cn.mcraft.gson.api.Gson; +import cn.mcraft.gson.api.exception.JsonSyntaxException; +import cn.mcraft.gson.api.reflect.TypeToken;; /** * 仓库管理类