aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2023-11-23 01:04:30 -0800
committerPinapelz <yukais@pinapelz.com>2023-11-23 01:04:30 -0800
commit0535a1944b5f7889b84cb53d6bb85de96e4325b3 (patch)
tree834791ce7852022833273327f30f5cd522671eea
parentce058c793450d9a833028c2f2b8b09484c02c498 (diff)
add additional supplemental files for heroku deployment
Signed-off-by: Pinapelz <yukais@pinapelz.com>
-rw-r--r--Procfile2
-rw-r--r--pom.xml28
-rw-r--r--system.properties1
3 files changed, 27 insertions, 4 deletions
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 @@
<defaultGoal>clean package</defaultGoal>
<plugins>
<plugin>
- <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
+ <version>3.3.0</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-shade-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
- <id>copy-dependencies</id>
<phase>package</phase>
- <goals><goal>copy-dependencies</goal></goals>
+ <goals>
+ <goal>shade</goal>
+ </goals>
+ <configuration>
+ <transformers>
+ <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
+ <mainClass>Main</mainClass>
+ </transformer>
+ </transformers>
+ <createDependencyReducedPom>false</createDependencyReducedPom>
+ <shadedArtifactAttached>true</shadedArtifactAttached>
+ </configuration>
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.8</source>
+ <target>1.8</target>
+ </configuration>
+ </plugin>
</plugins>
<resources>
<resource>
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
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage