Skip to content

Commit 6c5319f

Browse files
committed
Major work towards 1.13 compat
1 parent 8eeab68 commit 6c5319f

336 files changed

Lines changed: 3679 additions & 2921 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

build.gradle

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ buildscript {
2626
}
2727

2828
dependencies {
29-
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.1'
30-
classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:3.0.1'
31-
classpath 'org.ajoberstar:gradle-git:0.12.0'
29+
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'
30+
classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:4.7.5'
31+
classpath 'org.ajoberstar:gradle-git:1.7.2'
3232
}
3333
}
3434

@@ -50,7 +50,7 @@ subprojects {
5050
apply plugin: 'maven'
5151
apply plugin: 'checkstyle'
5252
apply plugin: 'com.github.johnrengelman.shadow'
53-
apply plugin: 'com.jfrog.artifactory-upload'
53+
apply plugin: 'com.jfrog.artifactory'
5454

5555
group = 'com.sk89q.worldguard'
5656
version = '7.0.0-SNAPSHOT'
@@ -62,6 +62,7 @@ subprojects {
6262
checkstyle.configFile = new File(rootProject.projectDir, "config/checkstyle/checkstyle.xml")
6363

6464
repositories {
65+
mavenLocal()
6566
mavenCentral()
6667
maven { url "http://repo.spongepowered.org/maven/" }
6768
maven { url "https://hub.spigotmc.org/nexus/content/groups/public" }
@@ -101,6 +102,10 @@ subprojects {
101102
classifier 'dist'
102103
dependencies {
103104
include(dependency('org.khelekore:prtree:1.5.0'))
105+
include(dependency('com.sk89q:squirrelid:0.1.0'))
106+
include(dependency('org.flywaydb:flyway-core:3.0'))
107+
include(dependency('com.googlecode.json-simple:json-simple:1.1.1'))
108+
include(dependency('net.sf.opencsv:opencsv:2.0'))
104109
}
105110
exclude 'GradleStart**'
106111
exclude '.cache'

config/checkstyle/checkstyle.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
<property name="max" value="2"/>
2828
</module>
2929
<module name="SuperFinalize"/> <!-- We don't actually use this -->
30-
<module name="JUnitTestCase"/> <!-- Checks tearDown(), setUp() etc. -->
3130

3231
<!-- Style -->
3332
<module name="LeftCurly"> <!-- Left brace never goes on another line -->

config/checkstyle/import-control.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
<subpackage name="worldguard">
1515
<allow pkg="org.khelekore"/>
1616
<allow pkg="org.flywaydb"/>
17+
<allow pkg="org.yaml"/>
18+
<allow pkg="org.json"/>
1719

1820
<subpackage name="bukkit">
1921
<allow pkg="org.bukkit"/>

gradle/wrapper/gradle-wrapper.jar

3.32 KB
Binary file not shown.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#Fri Nov 13 12:12:21 EST 2015
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.8-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-2.0-bin.zip

gradlew

Lines changed: 43 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 4 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

worldguard-core/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@ apply plugin: 'eclipse'
22
apply plugin: 'idea'
33

44
dependencies {
5-
compile 'com.sk89q.worldedit:worldedit-core:6.1.1-SNAPSHOT'
5+
compile 'com.sk89q.worldedit:worldedit-core:7.0.0-SNAPSHOT'
66
compile 'com.sk89q.intake:intake:4.2-SNAPSHOT'
77
compile 'com.sk89q:squirrelid:0.1.0'
88
compile 'org.flywaydb:flyway-core:3.0'
99
compile 'org.khelekore:prtree:1.5.0'
10+
compile 'net.sf.opencsv:opencsv:2.0'
11+
compile 'com.googlecode.json-simple:json-simple:1.1.1'
12+
compile 'com.google.code.findbugs:jsr305:1.3.9'
1013
}
1114

1215
sourceSets {
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE module PUBLIC
3+
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
4+
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
5+
<module name="Checker">
6+
<!-- Tabs are strictly banned -->
7+
<module name="FileTabCharacter"/>
8+
9+
<module name="TreeWalker">
10+
<!-- Important basics -->
11+
<!-- <module name="PackageDeclaration"/> Unlikely that we would miss this in a PR -->
12+
<module name="OuterTypeFilename"/> <!-- TypeName -> TypeName.java -->
13+
14+
<!--
15+
Control package usage, so people don't insert Bukkit into WE where it shouldn't belong, etc.
16+
It is a bit draconian, so update as necessary!
17+
-->
18+
<module name="ImportControl">
19+
<property name="file" value="worldguard-core/config/checkstyle/import-control.xml"/>
20+
</module>
21+
22+
<!-- Code -->
23+
<module name="HideUtilityClassConstructor"/> <!-- Utility classes should not have a constructor -->
24+
<module name="CovariantEquals"/>
25+
<module name="EqualsHashCode"/> <!-- equals() and hashCode() go together -->
26+
<module name="NestedTryDepth"> <!-- SHOULD not need to adjust this -->
27+
<property name="max" value="2"/>
28+
</module>
29+
<module name="SuperFinalize"/> <!-- We don't actually use this -->
30+
31+
<!-- Style -->
32+
<module name="LeftCurly"> <!-- Left brace never goes on another line -->
33+
<property name="option" value="eol"/>
34+
</module> <!-- We don't check right brace -->
35+
<module name="DefaultComesLast"/> <!-- default case in switch should be last -->
36+
<module name="GenericWhitespace"/>
37+
38+
<!-- Naming -->
39+
<module name="ClassTypeParameterName">
40+
<property name="format" value="^[A-Z][a-zA-Z0-9]*$"/>
41+
</module>
42+
<module name="LocalFinalVariableName"/>
43+
<module name="LocalVariableName">
44+
<property name="format" value="^[a-z_][a-zA-Z0-9]*$"/>
45+
</module>
46+
<module name="MemberName">
47+
<property name="format" value="^[a-z_][a-zA-Z0-9]*$"/>
48+
</module>
49+
<module name="MethodName">
50+
<property name="format" value="^[a-z][a-zA-Z0-9]*$"/>
51+
</module>
52+
<!-- <module name="PackageName"/> Unlikely that we would miss this in a PR -->
53+
<module name="ParameterName"/>
54+
<!-- <module name="TypeName"/> Unlikely that we would miss this in a PR -->
55+
</module>
56+
57+
<!-- Require the header, something that many people forget and we hate to fix -->
58+
<!-- You should configure the header in your IDE -->
59+
<module name="Header">
60+
<property name="headerFile" value="config/checkstyle/header.txt"/>
61+
<property name="fileExtensions" value="java"/>
62+
</module>
63+
</module>
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<!--
2+
~ WorldGuard, a suite of tools for Minecraft
3+
~ Copyright (C) sk89q <http://www.sk89q.com>
4+
~ Copyright (C) WorldGuard team and contributors
5+
~
6+
~ This program is free software: you can redistribute it and/or modify it
7+
~ under the terms of the GNU Lesser General Public License as published by the
8+
~ Free Software Foundation, either version 3 of the License, or
9+
~ (at your option) any later version.
10+
~
11+
~ This program is distributed in the hope that it will be useful, but WITHOUT
12+
~ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13+
~ FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
14+
~ for more details.
15+
~
16+
~ You should have received a copy of the GNU Lesser General Public License
17+
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
18+
-->
19+
20+
<!DOCTYPE import-control PUBLIC
21+
"-//Puppy Crawl//DTD Import Control 1.1//EN"
22+
"http://www.puppycrawl.com/dtds/import_control_1_1.dtd">
23+
24+
<import-control pkg="com.sk89q">
25+
<allow pkg="java"/>
26+
<allow pkg="javax"/>
27+
<allow pkg="org.junit"/>
28+
<allow pkg="junit"/>
29+
<allow pkg="org.mockito"/>
30+
<allow pkg="org.hamcrest"/>
31+
<allow pkg="com.sk89q"/>
32+
<allow pkg="org.enginehub"/>
33+
<allow pkg="org.yaml.snakeyaml"/>
34+
<allow pkg="au.com.bytecode.opencsv"/>
35+
<allow pkg="org.khelekore.prtree"/>
36+
<allow pkg="com.google.common"/>
37+
<allow pkg="com.jolbox.bonecp"/>
38+
<allow pkg="org.flywaydb.core"/>
39+
<allow pkg="org.json.simple"/>
40+
</import-control>

0 commit comments

Comments
 (0)