Skip to content

Commit a9bd4d2

Browse files
authored
Set Paper API version and specify Mojang mappings (#10)
1 parent f4237f1 commit a9bd4d2

2 files changed

Lines changed: 28 additions & 15 deletions

File tree

pom.xml

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<maven.compiler.release>21</maven.compiler.release>
1313
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1414
<project.bukkit.main>tc.oc.occ.idly.Idly</project.bukkit.main>
15+
<project.paper.api>1.21.11</project.paper.api>
1516
<project.author>applenick</project.author>
1617
</properties>
1718

@@ -38,7 +39,7 @@
3839
<dependency>
3940
<groupId>dev.pgm.paper</groupId>
4041
<artifactId>paper-api</artifactId>
41-
<version>1.8_1.21.10-SNAPSHOT</version>
42+
<version>1.8_1.21.11-SNAPSHOT</version>
4243
<scope>provided</scope>
4344
</dependency>
4445

@@ -98,21 +99,16 @@
9899
</compilerArgs>
99100
</configuration>
100101
</plugin>
101-
<!-- Exposes git information to the build environment -->
102102
<plugin>
103-
<groupId>pl.project13.maven</groupId>
104-
<artifactId>git-commit-id-plugin</artifactId>
105-
<version>4.9.10</version>
106-
<executions>
107-
<execution>
108-
<goals>
109-
<goal>revision</goal>
110-
</goals>
111-
</execution>
112-
</executions>
103+
<groupId>org.apache.maven.plugins</groupId>
104+
<artifactId>maven-jar-plugin</artifactId>
105+
<version>3.4.1</version>
113106
<configuration>
114-
<failOnNoGitDirectory>false</failOnNoGitDirectory>
115-
<failOnUnableToExtractRepoInfo>false</failOnUnableToExtractRepoInfo>
107+
<archive>
108+
<manifestEntries>
109+
<paperweight-mappings-namespace>mojang</paperweight-mappings-namespace>
110+
</manifestEntries>
111+
</archive>
116112
</configuration>
117113
</plugin>
118114
<plugin>
@@ -146,7 +142,23 @@
146142
</execution>
147143
</executions>
148144
</plugin>
149-
<!-- Validates that code is properly formatted with Google's code style -->
145+
<plugin>
146+
<groupId>io.github.git-commit-id</groupId>
147+
<artifactId>git-commit-id-maven-plugin</artifactId>
148+
<version>9.0.2</version>
149+
<executions>
150+
<execution>
151+
<goals>
152+
<goal>revision</goal>
153+
</goals>
154+
<phase>initialize</phase>
155+
</execution>
156+
</executions>
157+
<configuration>
158+
<failOnNoGitDirectory>false</failOnNoGitDirectory>
159+
<failOnUnableToExtractRepoInfo>false</failOnUnableToExtractRepoInfo>
160+
</configuration>
161+
</plugin>
150162
<plugin>
151163
<groupId>com.spotify.fmt</groupId>
152164
<artifactId>fmt-maven-plugin</artifactId>

src/main/resources/plugin.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ name: ${project.name}
22
description: ${project.description}
33
main: ${project.bukkit.main}
44
version: ${project.version} (git-${git.commit.id.abbrev})
5+
api-version: ${project.paper.api}
56
author: ${project.author}
67
depend: [PGM]

0 commit comments

Comments
 (0)