Skip to content

Commit 0b3dd09

Browse files
committed
Update versions and include checkstyle
1 parent f9c9e4a commit 0b3dd09

2 files changed

Lines changed: 143 additions & 19 deletions

File tree

pom.xml

Lines changed: 38 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,17 @@
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66

7-
<groupId>de.paul2708</groupId>
8-
<artifactId>FuseMemory</artifactId>
9-
<version>1.0-SNAPSHOT</version>
7+
<groupId>de.paul2708.wlosp</groupId>
8+
<artifactId>memory</artifactId>
9+
<version>0.0.1-SNAPSHOT</version>
10+
11+
<properties>
12+
<maven.compiler.target>14</maven.compiler.target>
13+
<maven.compiler.source>14</maven.compiler.source>
14+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15+
16+
<spigot.version>1.16.1-R0.1-SNAPSHOT</spigot.version>
17+
</properties>
1018

1119
<repositories>
1220
<repository>
@@ -16,33 +24,21 @@
1624
</repositories>
1725

1826
<dependencies>
19-
<!-- Spigot API -->
2027
<dependency>
2128
<groupId>org.spigotmc</groupId>
2229
<artifactId>spigot-api</artifactId>
23-
<version>1.8.8-R0.1-SNAPSHOT</version>
30+
<version>${spigot.version}</version>
2431
<scope>provided</scope>
2532
</dependency>
2633
</dependencies>
2734

2835
<build>
2936
<plugins>
30-
<!-- Compiler -->
31-
<plugin>
32-
<groupId>org.apache.maven.plugins</groupId>
33-
<artifactId>maven-compiler-plugin</artifactId>
34-
<version>2.3.2</version>
35-
<configuration>
36-
<source>1.8</source>
37-
<target>1.8</target>
38-
</configuration>
39-
</plugin>
40-
41-
<!-- Shade JAR -->
37+
<!-- Shade -->
4238
<plugin>
4339
<groupId>org.apache.maven.plugins</groupId>
4440
<artifactId>maven-shade-plugin</artifactId>
45-
<version>2.3</version>
41+
<version>3.2.2</version>
4642
<executions>
4743
<execution>
4844
<phase>package</phase>
@@ -51,11 +47,34 @@
5147
</goals>
5248
<configuration>
5349
<createDependencyReducedPom>false</createDependencyReducedPom>
50+
<finalName>memory</finalName>
5451
</configuration>
5552
</execution>
5653
</executions>
5754
</plugin>
55+
<!-- Checkstyle -->
56+
<plugin>
57+
<groupId>org.apache.maven.plugins</groupId>
58+
<artifactId>maven-checkstyle-plugin</artifactId>
59+
<version>3.1.0</version>
60+
<dependencies>
61+
<dependency>
62+
<groupId>com.puppycrawl.tools</groupId>
63+
<artifactId>checkstyle</artifactId>
64+
<version>8.14</version>
65+
</dependency>
66+
</dependencies>
67+
<executions>
68+
<execution>
69+
<id>validate</id>
70+
<phase>none</phase>
71+
</execution>
72+
</executions>
73+
<configuration>
74+
<configLocation>src/test/resources/checkstyle.xml</configLocation>
75+
<linkXRef>false</linkXRef>
76+
</configuration>
77+
</plugin>
5878
</plugins>
5979
</build>
60-
6180
</project>

src/test/resources/checkstyle.xml

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE module PUBLIC "-//Checkstyle//DTD Check Configuration 1.3//EN"
3+
"https://checkstyle.org/dtds/configuration_1_3.dtd">
4+
5+
<!--
6+
This configuration file was written by the eclipse-cs plugin configuration editor
7+
-->
8+
<!--
9+
Checkstyle-Configuration: Checkstyle rules
10+
Description: none
11+
-->
12+
<module name="Checker">
13+
<property name="severity" value="error"/>
14+
<module name="TreeWalker">
15+
<property name="tabWidth" value="4"/>
16+
<module name="SuppressWarningsHolder"/>
17+
<module name="JavadocType">
18+
<property name="scope" value="package"/>
19+
</module>
20+
<module name="JavadocMethod">
21+
<property name="scope" value="package"/>
22+
<property name="allowUndeclaredRTE" value="true"/>
23+
<property name="suppressLoadErrors" value="true"/>
24+
</module>
25+
<module name="JavadocVariable">
26+
<property name="scope" value="public"/>
27+
</module>
28+
<module name="ConstantName"/>
29+
<module name="LocalFinalVariableName"/>
30+
<module name="LocalVariableName"/>
31+
<module name="MemberName"/>
32+
<module name="MethodName"/>
33+
<module name="ParameterName"/>
34+
<module name="StaticVariableName"/>
35+
<module name="TypeName"/>
36+
<module name="IllegalImport"/>
37+
<module name="RedundantImport"/>
38+
<module name="UnusedImports"/>
39+
<module name="ExecutableStatementCount">
40+
<property name="max" value="20"/>
41+
<property name="tokens" value="CTOR_DEF"/>
42+
</module>
43+
<module name="ExecutableStatementCount">
44+
<property name="max" value="100"/>
45+
<property name="tokens" value="METHOD_DEF"/>
46+
</module>
47+
<module name="MethodLength"/>
48+
<module name="AnonInnerLength">
49+
<property name="max" value="60"/>
50+
</module>
51+
<module name="ParameterNumber"/>
52+
<module name="EmptyForIteratorPad"/>
53+
<module name="NoWhitespaceAfter">
54+
<property name="tokens" value="INC,DEC,UNARY_MINUS,UNARY_PLUS,BNOT,LNOT,DOT"/>
55+
</module>
56+
<module name="WhitespaceAround">
57+
<property name="tokens"
58+
value="ASSIGN, BAND, BAND_ASSIGN, BOR, BOR_ASSIGN, BSR, BSR_ASSIGN, BXOR, BXOR_ASSIGN, COLON, DIV, DIV_ASSIGN, EQUAL, GE, GT, LAND, LCURLY, LE, LITERAL_ASSERT, LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_FOR, LITERAL_IF, LITERAL_RETURN, LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE, LOR, LT, MINUS, MINUS_ASSIGN, MOD, MOD_ASSIGN, NOT_EQUAL, PLUS, PLUS_ASSIGN, QUESTION, RCURLY, SL, SLIST, SL_ASSIGN, SR, SR_ASSIGN, STAR, STAR_ASSIGN, TYPE_EXTENSION_AND"/>
59+
</module>
60+
<module name="NoWhitespaceBefore"/>
61+
<module name="OperatorWrap"/>
62+
<module name="ParenPad"/>
63+
<module name="WhitespaceAfter"/>
64+
<module name="RedundantModifier"/>
65+
<module name="AvoidNestedBlocks"/>
66+
<module name="EmptyBlock"/>
67+
<module name="LeftCurly"/>
68+
<module name="NeedBraces"/>
69+
<module name="RightCurly"/>
70+
<module name="FinalClass"/>
71+
<module name="HideUtilityClassConstructor"/>
72+
<module name="InterfaceIsType"/>
73+
<module name="VisibilityModifier">
74+
<property name="packageAllowed" value="true"/>
75+
<property name="protectedAllowed" value="true"/>
76+
</module>
77+
<module name="UpperEll"/>
78+
<module name="ArrayTypeStyle"/>
79+
<module name="EmptyStatement"/>
80+
<module name="IllegalCatch"/>
81+
<module name="IllegalThrows"/>
82+
<module name="InnerAssignment"/>
83+
<module name="MissingSwitchDefault"/>
84+
<module name="SimplifyBooleanExpression"/>
85+
<module name="SimplifyBooleanReturn"/>
86+
<module name="StringLiteralEquality"/>
87+
<module name="ModifierOrder"/>
88+
<module name="ClassTypeParameterName"/>
89+
<module name="MethodTypeParameterName"/>
90+
<module name="PackageName"/>
91+
<module name="OuterTypeNumber"/>
92+
<module name="MethodParamPad"/>
93+
<module name="TypecastParenPad"/>
94+
<module name="CovariantEquals"/>
95+
<module name="DefaultComesLast"/>
96+
<module name="MultipleVariableDeclarations"/>
97+
<module name="PackageDeclaration"/>
98+
<module name="ParameterAssignment"/>
99+
<module name="LineLength">
100+
<property name="max" value="120"/>
101+
</module>
102+
</module>
103+
<module name="SuppressWarningsFilter"/>
104+
<module name="FileLength"/>
105+
</module>

0 commit comments

Comments
 (0)