incloud 7boss gson...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092 2015-10-22 21:02:01 +08:00
parent 82c9bc702e
commit 3968bdb493
2 changed files with 16 additions and 5 deletions

11
pom.xml
View File

@ -33,6 +33,7 @@
<artifactSet> <artifactSet>
<includes> <includes>
<include>cn.citycraft:PluginHelper</include> <include>cn.citycraft:PluginHelper</include>
<include>cn.mcraft:Gson</include>
</includes> </includes>
</artifactSet> </artifactSet>
<relocations> <relocations>
@ -40,6 +41,10 @@
<pattern>cn.citycraft.PluginHelper</pattern> <pattern>cn.citycraft.PluginHelper</pattern>
<shadedPattern>${project.groupId}.${project.artifactId}</shadedPattern> <shadedPattern>${project.groupId}.${project.artifactId}</shadedPattern>
</relocation> </relocation>
<relocation>
<pattern>cn.mcraft</pattern>
<shadedPattern>${project.groupId}.${project.artifactId}</shadedPattern>
</relocation>
</relocations> </relocations>
</configuration> </configuration>
<executions> <executions>
@ -81,5 +86,11 @@
<type>jar</type> <type>jar</type>
<version>1.0</version> <version>1.0</version>
</dependency> </dependency>
<dependency>
<groupId>cn.mcraft</groupId>
<artifactId>Gson</artifactId>
<type>jar</type>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies> </dependencies>
</project> </project>

View File

@ -17,14 +17,14 @@ import org.bukkit.command.CommandSender;
import org.bukkit.configuration.file.FileConfiguration; import org.bukkit.configuration.file.FileConfiguration;
import com.google.common.base.Charsets; 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.PackageInfo;
import cn.citycraft.Yum.manager.Repositories.Plugin; 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;;
/** /**
* 仓库管理类 * 仓库管理类