mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
Shade libs
This commit is contained in:
parent
efeecd423e
commit
a872bd0f61
@ -22,18 +22,18 @@ is to provide a lag-free and smooth experience.
|
|||||||
|
|
||||||
|
|
||||||
# Maven
|
# Maven
|
||||||
We're now on maven!
|
We're now on maven! (Unofficial Maven Repo)
|
||||||
```xml
|
```xml
|
||||||
<!-- Repository -->
|
<!-- Repository -->
|
||||||
<repository>
|
<repository>
|
||||||
<id>intellectualsites</id>
|
<id>xephi-repo</id>
|
||||||
<url>http://ci.xephi.fr/plugin/repository/everything/</url>
|
<url>http://ci.xephi.fr/plugin/repository/everything/</url>
|
||||||
</repository>
|
</repository>
|
||||||
<!-- Dependency -->
|
<!-- Dependency -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.intellectualcrafters</groupId>
|
<groupId>com.intellectualcrafters</groupId>
|
||||||
<artifactId>PlotSquared</artifactId>
|
<artifactId>plotsquared</artifactId>
|
||||||
<version>3.2.24</version>
|
<version>3.2.27-SNAPSHOT</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
23
pom.xml
23
pom.xml
@ -52,7 +52,7 @@
|
|||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<finalName>${project.name}-Universal-${project.version}</finalName>
|
<finalName>${project.name}-Bukkit-${project.version}</finalName>
|
||||||
<sourceDirectory>src/main/java</sourceDirectory>
|
<sourceDirectory>src/main/java</sourceDirectory>
|
||||||
|
|
||||||
<resources>
|
<resources>
|
||||||
@ -73,7 +73,12 @@
|
|||||||
</resources>
|
</resources>
|
||||||
|
|
||||||
<plugins>
|
<plugins>
|
||||||
<!-- TODO: split the project into more modules -->
|
<!--
|
||||||
|
TODO: split the project into more modules
|
||||||
|
TODO: fix sponge compilation
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Invalid
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-jar-plugin</artifactId>
|
<artifactId>maven-jar-plugin</artifactId>
|
||||||
<version>2.6</version>
|
<version>2.6</version>
|
||||||
@ -107,7 +112,6 @@
|
|||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
|
|
||||||
<!-- Invalid
|
|
||||||
<execution>
|
<execution>
|
||||||
<id>api</id>
|
<id>api</id>
|
||||||
<goals>
|
<goals>
|
||||||
@ -123,9 +127,9 @@
|
|||||||
</excludes>
|
</excludes>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
-->
|
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
-->
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
@ -134,6 +138,9 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
<source>1.7</source>
|
<source>1.7</source>
|
||||||
<target>${javaVersion}</target>
|
<target>${javaVersion}</target>
|
||||||
|
<excludes>
|
||||||
|
<exclude>**/com/plotsquared/sponge/**</exclude>
|
||||||
|
</excludes>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
@ -149,6 +156,14 @@
|
|||||||
<pattern>com.google.gson</pattern>
|
<pattern>com.google.gson</pattern>
|
||||||
<shadedPattern>com.plotsquared.libs.gson</shadedPattern>
|
<shadedPattern>com.plotsquared.libs.gson</shadedPattern>
|
||||||
</relocation>
|
</relocation>
|
||||||
|
<relocation>
|
||||||
|
<pattern>javax.websocket</pattern>
|
||||||
|
<shadedPattern>com.plotsquared.libs.websocket</shadedPattern>
|
||||||
|
</relocation>
|
||||||
|
<relocation>
|
||||||
|
<pattern>org.apache.commons.math3</pattern>
|
||||||
|
<shadedPattern>com.plotsquared.libs.math3</shadedPattern>
|
||||||
|
</relocation>
|
||||||
</relocations>
|
</relocations>
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
|
@ -42,7 +42,7 @@ public class PlotHandler {
|
|||||||
if (!plot.isMerged()) {
|
if (!plot.isMerged()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
for (Plot current : MainUtil.getConnectedPlots(plot);) {
|
for (Plot current : MainUtil.getConnectedPlots(plot)) {
|
||||||
if (current.owner.equals(uuid)) {
|
if (current.owner.equals(uuid)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user