Skip to content

Commit

Permalink
Improve plugin.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Pear <[email protected]>
  • Loading branch information
TheRealPear committed Jun 26, 2024
1 parent d8004a6 commit 2d5927b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
26 changes: 25 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
<artifactId>Events</artifactId>
<version>1.0.0-SNAPSHOT</version>
<name>Events</name>
<description>Manage PvP tournament events</description>
<url>https://pgm.dev</url>

<properties>
<project.mainClass>dev.pgm.events.EventsPlugin</project.mainClass>
</properties>

<repositories>
<repository>
Expand Down Expand Up @@ -49,6 +55,24 @@
</configuration>
</plugin>

<!-- Exposes git information to the build environment -->
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
<version>4.9.10</version>
<executions>
<execution>
<goals>
<goal>revision</goal>
</goals>
</execution>
</executions>
<configuration>
<failOnNoGitDirectory>false</failOnNoGitDirectory>
<failOnUnableToExtractRepoInfo>false</failOnUnableToExtractRepoInfo>
</configuration>
</plugin>

<!-- Validates that code is properly formatted with Google's code style -->
<plugin>
<groupId>com.coveo</groupId>
Expand Down Expand Up @@ -107,8 +131,8 @@
</plugins>
<resources>
<resource>
<filtering>true</filtering>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
Expand Down
8 changes: 5 additions & 3 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: Events
main: dev.pgm.events.EventsPlugin
version: 1.0.0-SNAPSHOT
depend: [PGM]
description: ${project.description}
main: ${project.mainClass}
version: ${project.version} (git-${git.commit.id.abbrev})
website: ${project.url}
depend: [PGM]

0 comments on commit 2d5927b

Please sign in to comment.