From ad820a1ab94e0b78183bbc3f85cd6f494ec93934 Mon Sep 17 00:00:00 2001 From: YouHaveTrouble Date: Thu, 21 Mar 2024 22:19:09 +0100 Subject: [PATCH] Refactor plugin.yml and pom.xml to use Maven variables The plugin.yml and pom.xml files were refactored to utilize Maven variables for elements including project name, version, description, and URL. This simplifies the process of updating these values, as they now only need to be modified in one location. This change enhances maintainability and code readability. --- pom.xml | 168 +++++++++++++++++----------------- src/main/resources/plugin.yml | 6 +- 2 files changed, 87 insertions(+), 87 deletions(-) diff --git a/pom.xml b/pom.xml index 146e840..18e9f12 100644 --- a/pom.xml +++ b/pom.xml @@ -2,99 +2,99 @@ - 4.0.0 + 4.0.0 - me.youhavetrouble - YardWatch - 1.0 - jar + me.youhavetrouble + YardWatch + 1.0 + jar - YardWatch + YardWatch Implementation of YardWatchAPI for common protection plugins - 17 - UTF-8 - + 17 + UTF-8 + https://youhavetrouble.me - - - org.apache.maven.plugins - maven-compiler-plugin - 3.8.1 - - ${java.version} - ${java.version} - - - - org.apache.maven.plugins - maven-shade-plugin - 3.2.4 - - - package - - shade - - - - - - - - src/main/resources - true - - - + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + + ${java.version} + ${java.version} + + + + org.apache.maven.plugins + maven-shade-plugin + 3.2.4 + + + package + + shade + + + + + + + + src/main/resources + true + + + - - - papermc-repo - https://repo.papermc.io/repository/maven-public/ - - - sonatype - https://oss.sonatype.org/content/groups/public/ - - - jitpack.io - https://jitpack.io - - - sk89q-repo - https://maven.enginehub.org/repo/ - - + + + papermc-repo + https://repo.papermc.io/repository/maven-public/ + + + sonatype + https://oss.sonatype.org/content/groups/public/ + + + jitpack.io + https://jitpack.io + + + sk89q-repo + https://maven.enginehub.org/repo/ + + - - - com.destroystokyo.paper - paper-api - 1.13-R0.1-SNAPSHOT - provided - - - com.sk89q.worldguard - worldguard-bukkit - 7.0.4-SNAPSHOT - - - org.bstats - bstats-bukkit - - - provided - - - com.github.YouHaveTrouble - YardWatchAPI - 2.0.0 - compile - + + + com.destroystokyo.paper + paper-api + 1.13-R0.1-SNAPSHOT + provided + + + com.sk89q.worldguard + worldguard-bukkit + 7.0.4-SNAPSHOT + + + org.bstats + bstats-bukkit + + + provided + + + com.github.YouHaveTrouble + YardWatchAPI + 2.0.0 + compile + - + diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 5948376..1d3351f 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,4 +1,4 @@ -name: YardWatch +name: '${project.artifactId}' version: '${project.version}' main: me.youhavetrouble.yardwatch.YardWatch api-version: '1.13' @@ -8,5 +8,5 @@ softdepend: - "Towny" authors: - "YouHaveTrouble" -description: "Implementation of YardWatchAPI for common protection plugins" -website: "https://youhavetrouble.me" +description: '${project.description}' +website: '${project.url}'