From d952ca8b17df5fef15bf633c899693b91096e291 Mon Sep 17 00:00:00 2001 From: osvein Date: Thu, 14 May 2015 18:51:39 +0200 Subject: [PATCH] Use Maven --- .classpath | 11 ---- .gitignore | 11 +++- .project | 17 ------ pom.xml | 55 +++++++++++++++++++ .../no/atc/floyd/bukkit/kit/KitObject.java | 0 .../no/atc/floyd/bukkit/kit/KitPlugin.java | 0 src/{ => main/resources}/plugin.yml | 22 ++++---- 7 files changed, 74 insertions(+), 42 deletions(-) delete mode 100644 .classpath delete mode 100644 .project create mode 100644 pom.xml rename src/{ => main/java}/no/atc/floyd/bukkit/kit/KitObject.java (100%) rename src/{ => main/java}/no/atc/floyd/bukkit/kit/KitPlugin.java (100%) rename src/{ => main/resources}/plugin.yml (57%) diff --git a/.classpath b/.classpath deleted file mode 100644 index b029d8c..0000000 --- a/.classpath +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/.gitignore b/.gitignore index a8caa29..565179f 100644 --- a/.gitignore +++ b/.gitignore @@ -11,8 +11,13 @@ # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml hs_err_pid* -bin/ -lib/ +# Maven output +target # Markdown previews -.*.md.html \ No newline at end of file +.*.md.html +# Eclipse metadata +.classpath +.project +.settings/ + diff --git a/.project b/.project deleted file mode 100644 index b5d6fe4..0000000 --- a/.project +++ /dev/null @@ -1,17 +0,0 @@ - - - KitPlugin - - - - - - org.eclipse.jdt.core.javabuilder - - - - - - org.eclipse.jdt.core.javanature - - diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..6efe54c --- /dev/null +++ b/pom.xml @@ -0,0 +1,55 @@ + + 4.0.0 + no.atc.floyd.bukkit.kit + kitplugin + 1.31 + + + no.atc + super-pom-bukkit + 1.2 + + + KitPlugin + https://github.com/Ano-Tech-Computers/KitPlugin + Dispense kits to players + + + + MIT License + LICENSE + repo + Permissive open source + + + + + + warehouse14 + https://raw.githubusercontent.com/Ano-Tech-Computers/Warehouse14/maven + + + + + + org.bukkit + bukkit + + + + + + + src/main/resources + true + + + + + org.apache.maven.plugins + maven-compiler-plugin + + + + diff --git a/src/no/atc/floyd/bukkit/kit/KitObject.java b/src/main/java/no/atc/floyd/bukkit/kit/KitObject.java similarity index 100% rename from src/no/atc/floyd/bukkit/kit/KitObject.java rename to src/main/java/no/atc/floyd/bukkit/kit/KitObject.java diff --git a/src/no/atc/floyd/bukkit/kit/KitPlugin.java b/src/main/java/no/atc/floyd/bukkit/kit/KitPlugin.java similarity index 100% rename from src/no/atc/floyd/bukkit/kit/KitPlugin.java rename to src/main/java/no/atc/floyd/bukkit/kit/KitPlugin.java diff --git a/src/plugin.yml b/src/main/resources/plugin.yml similarity index 57% rename from src/plugin.yml rename to src/main/resources/plugin.yml index 73cf3b0..38230e2 100644 --- a/src/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,11 +1,11 @@ -name: KitPlugin -main: no.atc.floyd.bukkit.kit.KitPlugin -version: 1.31 -website: http://minecraft.atc.no/plugins -author: FloydATC -description: > - Dispense kits to players -commands: - kit: - description: Show a list of kit names or get a named kit - usage: / [] [] +name: "${project.name}" +main: no.atc.floyd.bukkit.kit.KitPlugin +version: "${project.version}" +website: "${project.url}" +author: FloydATC +description: "${project.description}" + +commands: + kit: + description: Show a list of kit names or get a named kit + usage: / [] []