Skip to content

Commit 99aa9d8

Browse files
authored
build: standardise XML and Maven POM layout (#12)
1 parent 8d32b78 commit 99aa9d8

2 files changed

Lines changed: 46 additions & 20 deletions

File tree

‎.editorconfig‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Shared TFMC XML formatting; see Docs/POM-CONVENTIONS.md.
2+
[*.xml]
3+
charset = utf-8
4+
end_of_line = lf
5+
indent_style = space
6+
indent_size = 4
7+
insert_final_newline = true
8+
trim_trailing_whitespace = true

‎pom.xml‎

Lines changed: 38 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,23 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0"
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66

77
<groupId>net.tfminecraft</groupId>
88
<artifactId>cooking</artifactId>
99
<version>0.1.6-ALPHA</version>
1010

1111
<properties>
12-
<simplefactions.version>2.8.7</simplefactions.version>
12+
<maven.compiler.release>21</maven.compiler.release>
13+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
14+
<interactiblefurniture.version>0.1.4-BETA</interactiblefurniture.version>
1315
<rpcharacters.version>1.1.7</rpcharacters.version>
16+
<simplefactions.version>2.8.7</simplefactions.version>
1417
<tfmccore.version>1.0.0</tfmccore.version>
15-
<interactiblefurniture.version>0.1.4-BETA</interactiblefurniture.version>
1618
<tlibs.version>1.1.1</tlibs.version>
17-
<maven.compiler.release>21</maven.compiler.release>
18-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1919
</properties>
2020

21-
<repositories>
22-
<repository>
23-
<id>spigot-snapshots</id>
24-
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
25-
</repository>
26-
</repositories>
27-
2821
<dependencies>
2922
<dependency>
3023
<groupId>local</groupId>
@@ -46,7 +39,10 @@
4639
<scope>provided</scope>
4740
<exclusions>
4841
<!-- The server supplies TLibs and its integrations. -->
49-
<exclusion><groupId>*</groupId><artifactId>*</artifactId></exclusion>
42+
<exclusion>
43+
<groupId>*</groupId>
44+
<artifactId>*</artifactId>
45+
</exclusion>
5046
</exclusions>
5147
</dependency>
5248
<dependency>
@@ -62,7 +58,10 @@
6258
<version>${interactiblefurniture.version}</version>
6359
<scope>provided</scope>
6460
<exclusions>
65-
<exclusion><groupId>*</groupId><artifactId>*</artifactId></exclusion>
61+
<exclusion>
62+
<groupId>*</groupId>
63+
<artifactId>*</artifactId>
64+
</exclusion>
6665
</exclusions>
6766
</dependency>
6867
<dependency>
@@ -71,7 +70,10 @@
7170
<version>${tfmccore.version}</version>
7271
<scope>provided</scope>
7372
<exclusions>
74-
<exclusion><groupId>*</groupId><artifactId>*</artifactId></exclusion>
73+
<exclusion>
74+
<groupId>*</groupId>
75+
<artifactId>*</artifactId>
76+
</exclusion>
7577
</exclusions>
7678
</dependency>
7779
<dependency>
@@ -80,7 +82,10 @@
8082
<version>${rpcharacters.version}</version>
8183
<scope>provided</scope>
8284
<exclusions>
83-
<exclusion><groupId>*</groupId><artifactId>*</artifactId></exclusion>
85+
<exclusion>
86+
<groupId>*</groupId>
87+
<artifactId>*</artifactId>
88+
</exclusion>
8489
</exclusions>
8590
</dependency>
8691
<dependency>
@@ -117,7 +122,10 @@
117122
<version>${simplefactions.version}</version>
118123
<scope>provided</scope>
119124
<exclusions>
120-
<exclusion><groupId>*</groupId><artifactId>*</artifactId></exclusion>
125+
<exclusion>
126+
<groupId>*</groupId>
127+
<artifactId>*</artifactId>
128+
</exclusion>
121129
</exclusions>
122130
</dependency>
123131
<dependency>
@@ -139,17 +147,28 @@
139147
</dependency>
140148
</dependencies>
141149

150+
<repositories>
151+
<repository>
152+
<id>spigot-snapshots</id>
153+
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
154+
</repository>
155+
</repositories>
156+
142157
<build>
143158
<resources>
144159
<resource>
145160
<directory>src/main/resources</directory>
146161
<filtering>true</filtering>
147-
<includes><include>plugin.yml</include></includes>
162+
<includes>
163+
<include>plugin.yml</include>
164+
</includes>
148165
</resource>
149166
<resource>
150167
<directory>src/main/resources</directory>
151168
<filtering>false</filtering>
152-
<excludes><exclude>plugin.yml</exclude></excludes>
169+
<excludes>
170+
<exclude>plugin.yml</exclude>
171+
</excludes>
153172
</resource>
154173
</resources>
155174
<plugins>
@@ -165,5 +184,4 @@
165184
</plugin>
166185
</plugins>
167186
</build>
168-
169187
</project>

0 commit comments

Comments
 (0)