Skip to content

Commit ae3cbc4

Browse files
committed
heroku setup
1 parent 7c1ca71 commit ae3cbc4

File tree

3 files changed

+86
-8
lines changed

3 files changed

+86
-8
lines changed

pom.xml

Lines changed: 78 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
</properties>
6262

6363
<dependencies>
64+
<!--
6465
<dependency>
6566
<groupId>org.springframework.boot</groupId>
6667
<artifactId>spring-boot-starter-activemq</artifactId>
@@ -69,10 +70,12 @@
6970
<groupId>org.springframework.boot</groupId>
7071
<artifactId>spring-boot-starter-actuator</artifactId>
7172
</dependency>
73+
-->
7274
<dependency>
7375
<groupId>org.springframework.boot</groupId>
7476
<artifactId>spring-boot-starter-data-jpa</artifactId>
7577
</dependency>
78+
<!--
7679
<dependency>
7780
<groupId>org.springframework.boot</groupId>
7881
<artifactId>spring-boot-starter-integration</artifactId>
@@ -81,6 +84,7 @@
8184
<groupId>org.springframework.boot</groupId>
8285
<artifactId>spring-boot-starter-jersey</artifactId>
8386
</dependency>
87+
-->
8488
<dependency>
8589
<groupId>org.springframework.boot</groupId>
8690
<artifactId>spring-boot-starter-mail</artifactId>
@@ -101,10 +105,12 @@
101105
<groupId>org.springframework.boot</groupId>
102106
<artifactId>spring-boot-starter-web</artifactId>
103107
</dependency>
108+
<!--
104109
<dependency>
105110
<groupId>org.springframework.boot</groupId>
106111
<artifactId>spring-boot-starter-websocket</artifactId>
107112
</dependency>
113+
-->
108114
<!--
109115
<dependency>
110116
<groupId>de.codecentric</groupId>
@@ -120,11 +126,13 @@
120126
<artifactId>spring-boot-devtools</artifactId>
121127
<scope>runtime</scope>
122128
</dependency>
129+
<!--
123130
<dependency>
124131
<groupId>com.h2database</groupId>
125132
<artifactId>h2</artifactId>
126133
<scope>runtime</scope>
127134
</dependency>
135+
-->
128136
<dependency>
129137
<groupId>org.postgresql</groupId>
130138
<artifactId>postgresql</artifactId>
@@ -303,11 +311,13 @@
303311
<artifactId>spring-boot-starter-tomcat</artifactId>
304312
<scope>provided</scope>
305313
</dependency>
314+
<!--
306315
<dependency>
307316
<groupId>com.impossibl.pgjdbc-ng</groupId>
308317
<artifactId>pgjdbc-ng</artifactId>
309318
<version>0.8.2</version>
310319
</dependency>
320+
-->
311321
</dependencies>
312322

313323
<dependencyManagement>
@@ -708,13 +718,9 @@
708718
<goal>build-classpath</goal>
709719
</goals>
710720
<configuration>
711-
<!--
712-
<includes>**/*.class,**/*.properties</includes>
713-
-->
714-
<outputDirectory>${project.build.directory}/classes</outputDirectory>
715721
<overWriteReleases>false</overWriteReleases>
716722
<overWriteSnapshots>true</overWriteSnapshots>
717-
<outputFile>${project.build.directory}/classpath.txt</outputFile>
723+
<outputFile>${project.build.outputDirectory}/classpath.txt</outputFile>
718724
<failOnWarning>false</failOnWarning>
719725
<ignoredDependencies>
720726
<ignoredDependency>org.apache.maven.plugins:maven-surefire-plugin</ignoredDependency>
@@ -730,6 +736,14 @@
730736
<ignoredUnusedDeclaredDependencies>
731737
<ignoredUnusedDeclaredDependency>org.apache.maven.plugins:maven-surefire-plugin</ignoredUnusedDeclaredDependency>
732738
</ignoredUnusedDeclaredDependencies>
739+
<artifactItems>
740+
<artifactItem>
741+
<groupId>com.github.jsimone</groupId>
742+
<artifactId>webapp-runner</artifactId>
743+
<version>9.0.19.0</version>
744+
<destFileName>webapp-runner.jar</destFileName>
745+
</artifactItem>
746+
</artifactItems>
733747
</configuration>
734748
</execution>
735749
</executions>
@@ -816,6 +830,65 @@
816830
<profile>prod</profile>
817831
</profiles>
818832
</configuration>
833+
<executions>
834+
<execution>
835+
<goals>
836+
<goal>repackage</goal>
837+
<goal>build-info</goal>
838+
</goals>
839+
<configuration>
840+
<additionalProperties>
841+
<encoding.source>${project.build.sourceEncoding}</encoding.source>
842+
<encoding.reporting>${project.reporting.outputEncoding}</encoding.reporting>
843+
<java.source>${maven.compiler.source}</java.source>
844+
<java.target>${maven.compiler.target}</java.target>
845+
</additionalProperties>
846+
</configuration>
847+
</execution>
848+
</executions>
849+
</plugin>
850+
851+
<plugin>
852+
<groupId>org.apache.maven.plugins</groupId>
853+
<artifactId>maven-dependency-plugin</artifactId>
854+
<executions>
855+
<execution>
856+
<id>unpack-dependencies</id>
857+
<phase>package</phase>
858+
<goals>
859+
<goal>analyze-only</goal>
860+
<!--
861+
<goal>analyze-report</goal>
862+
<goal>unpack-dependencies</goal>
863+
-->
864+
<goal>build-classpath</goal>
865+
</goals>
866+
<configuration>
867+
<!--
868+
<includes>**/*.class,**/*.properties</includes>
869+
-->
870+
<outputDirectory>${project.build.directory}/classes</outputDirectory>
871+
<overWriteReleases>false</overWriteReleases>
872+
<overWriteSnapshots>true</overWriteSnapshots>
873+
<outputFile>${project.build.directory}/classpath.txt</outputFile>
874+
<failOnWarning>false</failOnWarning>
875+
<ignoredDependencies>
876+
<ignoredDependency>org.apache.maven.plugins:maven-surefire-plugin</ignoredDependency>
877+
<ignoredDependency>org.apache.maven.scm:maven-scm</ignoredDependency>
878+
<ignoredDependency>org.apache.maven.scm:maven-scm-providers-git</ignoredDependency>
879+
<ignoredDependency>org.apache.maven.scm:maven-scm-providers-standard</ignoredDependency>
880+
<ignoredDependency>org.apache.maven.scm:maven-scm-providers</ignoredDependency>
881+
<ignoredDependency>org.apache.maven.scm:maven-scm-managers</ignoredDependency>
882+
</ignoredDependencies>
883+
<ignoredUsedUndeclaredDependencies>
884+
<ignoredUsedUndeclaredDependency>org.apache.maven.plugins:maven-surefire-plugin</ignoredUsedUndeclaredDependency>
885+
</ignoredUsedUndeclaredDependencies>
886+
<ignoredUnusedDeclaredDependencies>
887+
<ignoredUnusedDeclaredDependency>org.apache.maven.plugins:maven-surefire-plugin</ignoredUnusedDeclaredDependency>
888+
</ignoredUnusedDeclaredDependencies>
889+
</configuration>
890+
</execution>
891+
</executions>
819892
</plugin>
820893
<plugin>
821894
<groupId>org.apache.maven.plugins</groupId>

src/main/java/org/woehlke/simpleworklist/SimpleworklistApplication.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,16 @@
33
import org.springframework.boot.SpringApplication;
44
import org.springframework.boot.autoconfigure.SpringBootApplication;
55
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
6+
import org.springframework.web.WebApplicationInitializer;
7+
import org.springframework.boot.builder.SpringApplicationBuilder;
68

79
@SpringBootApplication
8-
public class SimpleworklistApplication extends SpringBootServletInitializer {
10+
public class SimpleworklistApplication extends SpringBootServletInitializer implements WebApplicationInitializer {
11+
12+
@Override
13+
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
14+
return application.sources(SimpleworklistApplication.class);
15+
}
916

1017
public static void main(String[] args) {
1118
SpringApplication.run(SimpleworklistApplication.class, args);

src/main/java/org/woehlke/simpleworklist/oodm/enumerations/TaskState.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package org.woehlke.simpleworklist.oodm.enumerations;
22

3-
import io.micrometer.core.instrument.search.RequiredSearch;
4-
53
import javax.persistence.Enumerated;
64
import javax.persistence.Transient;
75
import java.io.Serializable;

0 commit comments

Comments
 (0)