From 0535a1944b5f7889b84cb53d6bb85de96e4325b3 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Thu, 23 Nov 2023 01:04:30 -0800 Subject: add additional supplemental files for heroku deployment Signed-off-by: Pinapelz --- Procfile | 2 +- pom.xml | 28 +++++++++++++++++++++++++--- system.properties | 1 + 3 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 system.properties diff --git a/Procfile b/Procfile index a3d21af..b05acea 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -worker: java $JAVA_OPTS -cp target/classes:target/dependency/* src/main/java/Main.java \ No newline at end of file +worker: java $JAVA_OPTS -jar target/DiscordBot-1.0-SNAPSHOT-shaded.jar $JAR_OPTS \ No newline at end of file diff --git a/pom.xml b/pom.xml index ddccf53..c1feb7b 100644 --- a/pom.xml +++ b/pom.xml @@ -68,17 +68,39 @@ clean package - org.apache.maven.plugins maven-dependency-plugin + 3.3.0 + + + org.apache.maven.plugins + maven-shade-plugin 3.1.0 - copy-dependencies package - copy-dependencies + + shade + + + + + Main + + + false + true + + + org.apache.maven.plugins + maven-compiler-plugin + + 1.8 + 1.8 + + diff --git a/system.properties b/system.properties new file mode 100644 index 0000000..0dc726c --- /dev/null +++ b/system.properties @@ -0,0 +1 @@ +java.runtime.version=17 \ No newline at end of file -- cgit v1.2.3