Skip to content
This repository was archived by the owner on Sep 23, 2026. It is now read-only.

Commit f80222a

Browse files
authored
build: standardise XML and Maven POM layout (#5)
1 parent 4ce348d commit f80222a

2 files changed

Lines changed: 25 additions & 13 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: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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>me.plugins</groupId>
@@ -10,15 +10,9 @@
1010

1111
<properties>
1212
<maven.compiler.release>21</maven.compiler.release>
13+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1314
</properties>
1415

15-
<repositories>
16-
<repository>
17-
<id>spigot-snapshots</id>
18-
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
19-
</repository>
20-
</repositories>
21-
2216
<dependencies>
2317
<dependency>
2418
<groupId>local</groupId>
@@ -68,7 +62,7 @@
6862
<version>1.21.10-R0.1-SNAPSHOT</version>
6963
<scope>provided</scope>
7064
</dependency>
71-
<dependency>
65+
<dependency>
7266
<groupId>local</groupId>
7367
<artifactId>MythicMobs</artifactId>
7468
<version>5.8.0</version>
@@ -77,17 +71,28 @@
7771
</dependency>
7872
</dependencies>
7973

74+
<repositories>
75+
<repository>
76+
<id>spigot-snapshots</id>
77+
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
78+
</repository>
79+
</repositories>
80+
8081
<build>
8182
<resources>
8283
<resource>
8384
<directory>src/main/resources</directory>
8485
<filtering>true</filtering>
85-
<includes><include>plugin.yml</include></includes>
86+
<includes>
87+
<include>plugin.yml</include>
88+
</includes>
8689
</resource>
8790
<resource>
8891
<directory>src/main/resources</directory>
8992
<filtering>false</filtering>
90-
<excludes><exclude>plugin.yml</exclude></excludes>
93+
<excludes>
94+
<exclude>plugin.yml</exclude>
95+
</excludes>
9196
</resource>
9297
</resources>
9398
<plugins>
@@ -98,5 +103,4 @@
98103
</plugin>
99104
</plugins>
100105
</build>
101-
102-
</project>
106+
</project>

0 commit comments

Comments
 (0)