diff --git a/.gitignore b/.gitignore index b0ae95e..4b6d263 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,10 @@ # Eclipse .classpath .project -.settings/ +.settings # IntelliJ -.idea/ +.idea *.iml *.iws out @@ -13,6 +13,7 @@ out .DS_Store # Maven -log/ -target/ -dependency-reduced-pom.xml \ No newline at end of file +log +target +dependency-reduced-pom.xml +jars \ No newline at end of file diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..4a69bec --- /dev/null +++ b/build.sh @@ -0,0 +1,10 @@ +echo "Building NPCLib jars..." +ls jars >> /dev/null 2>&1 || mkdir jars + +echo "Building NPCLib-API.jar..." +mvn clean install >> /dev/null 2>&1 && cp ./api/target/*.jar ./jars && echo "Finished building NPCLib-API.jar." || echo "Failed building NPCLib-API.jar. Please rebuild manually!" + +echo "Building NPCLib-Plugin.jar..." +mvn clean install -Pplugin >> /dev/null 2>&1 && cp ./target/*.jar ./jars && echo "Finished building NPCLib-Plugin.jar." || echo "Failed building NPCLib-Plugin.jar. Please rebuild manually!" + +echo "Finished building NPCLib jars!" \ No newline at end of file diff --git a/plugin/pom.xml b/plugin/pom.xml index 0edcbb1..1360fe7 100644 --- a/plugin/pom.xml +++ b/plugin/pom.xml @@ -14,7 +14,7 @@ ../target - NPCLib-v${project.parent.version} + NPCLib-Plugin-v${project.parent.version} src/main/resources diff --git a/pom.xml b/pom.xml index c4410b8..84e0342 100644 --- a/pom.xml +++ b/pom.xml @@ -25,6 +25,23 @@ + + + spigot-repo + https://hub.spigotmc.org/nexus/content/repositories/snapshots/ + + + + + + + org.spigotmc + spigot-api + 1.12.2-R0.1-SNAPSHOT + provided + + + clean install @@ -53,27 +70,21 @@ - - - spigot-repo - https://hub.spigotmc.org/nexus/content/repositories/snapshots/ - - - - - - - org.spigotmc - spigot-api - 1.12.2-R0.1-SNAPSHOT - provided - - - commons nms api - plugin + + + + plugin + + commons + nms + api + plugin + + + \ No newline at end of file