From 07c4de331ef8ec2929b63182cf0862dd89c9a5f6 Mon Sep 17 00:00:00 2001 From: Default Date: Thu, 3 Mar 2022 10:11:08 +0100 Subject: [PATCH] better project setup --- .gitignore | 3 +- .idea/artifacts/Sharehealth.xml | 9 ++++ .idea/compiler.xml | 1 - .idea/misc.xml | 7 --- Sharehealth.iml | 63 +++++++++++---------------- pom.xml | 76 --------------------------------- scripts/deploy.py | 2 +- src/main/resources/plugin.yml | 2 +- 8 files changed, 39 insertions(+), 124 deletions(-) create mode 100644 .idea/artifacts/Sharehealth.xml delete mode 100644 pom.xml diff --git a/.gitignore b/.gitignore index 425fc23..d7ac67e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ # User-specific stuff out/ -target/ \ No newline at end of file +target/ +server/ \ No newline at end of file diff --git a/.idea/artifacts/Sharehealth.xml b/.idea/artifacts/Sharehealth.xml new file mode 100644 index 0000000..1c936fb --- /dev/null +++ b/.idea/artifacts/Sharehealth.xml @@ -0,0 +1,9 @@ + + + $PROJECT_DIR$/out/artifacts/Sharehealth + + + + + + \ No newline at end of file diff --git a/.idea/compiler.xml b/.idea/compiler.xml index 5f8f690..a7f0b3b 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -6,7 +6,6 @@ - diff --git a/.idea/misc.xml b/.idea/misc.xml index c8bca51..30d2c01 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -5,13 +5,6 @@ - - - diff --git a/Sharehealth.iml b/Sharehealth.iml index 4f1dd74..3d59562 100644 --- a/Sharehealth.iml +++ b/Sharehealth.iml @@ -1,10 +1,10 @@ - + - ADVENTURE + SPIGOT @@ -12,48 +12,37 @@ - - - + + - - - + - + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/pom.xml b/pom.xml deleted file mode 100644 index 16fcb83..0000000 --- a/pom.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - 4.0.0 - - com.benjocraeft - sharehealth - 1.0 - jar - - Sharehealth - - This plugin makes all players on the server share their health, if one dies, everybody dies. - - - 1.8 - UTF-8 - - https://mc.benjocraeft.com - - - - - 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 - - - false - - - - - - - - src/main/resources - true - - - - - - - papermc-repo - https://papermc.io/repo/repository/maven-public/ - - - sonatype - https://oss.sonatype.org/content/groups/public/ - - - - - - io.papermc.paper - paper-api - 1.18.1-R0.1-SNAPSHOT - provided - - - diff --git a/scripts/deploy.py b/scripts/deploy.py index 6bb1a33..2978047 100644 --- a/scripts/deploy.py +++ b/scripts/deploy.py @@ -1,3 +1,3 @@ import shutil -shutil.copy2("target/sharehealth-1.0.jar", "server") +shutil.copy2("out/artifacts/Sharehealth/Sharehealth.jar", "server/plugins") diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 8f1cf54..b487d82 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,5 +1,5 @@ name: Sharehealth -version: '${project.version}' +version: 1.0 main: com.benjocraeft.sharehealth.Sharehealth api-version: 1.18 prefix: Sharehealth