diff options
| author | Pinapelz <yukais@pinapelz.com> | 2023-11-23 01:04:30 -0800 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2023-11-23 01:04:30 -0800 |
| commit | 0535a1944b5f7889b84cb53d6bb85de96e4325b3 (patch) | |
| tree | 834791ce7852022833273327f30f5cd522671eea | |
| parent | ce058c793450d9a833028c2f2b8b09484c02c498 (diff) | |
add additional supplemental files for heroku deployment
Signed-off-by: Pinapelz <yukais@pinapelz.com>
| -rw-r--r-- | Procfile | 2 | ||||
| -rw-r--r-- | pom.xml | 28 | ||||
| -rw-r--r-- | system.properties | 1 |
3 files changed, 27 insertions, 4 deletions
@@ -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 @@ -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 |
