Skip to content

Heroku deployment #115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Apr 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
- name: Set up JDK 13s
uses: actions/setup-java@v13
with:
java-version: 1.8
java-version: 13
- name: Build with Maven
run: ./mvnw -B package --file pom.xml
17 changes: 0 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,11 @@ Status
------
![Java CI with Maven](https://github.com/Spring-Framework-Java-Apps/simpleworklist/workflows/Java%20CI%20with%20Maven/badge.svg?branch=master)

Setup local Test-System
-----------------------

1. Setup a PostgreSQL 10-Database
3. copy src/main/resources/worklist_sample.properties to _src/main/resources/worklist.properties
4. start project with: mvn clean spring-boot:run

Getting Things Done
-------------------
GTD® and Getting Things Done® are registered trademarks of the David Allen Company.
SimpleWorklist is not affiliated with or endorsed by the David Allen Company.

Setup a PostgreSQL 10-Database
------------------------------
* https://www.postgresql.org/download/
* Windows and macOS - Graphical installer by *BigSQL*: https://www.openscg.com/bigsql/postgresql/installers.jsp/
* Windows:
1. start cmd as admin
2. cd \PostgreSQL
3. pgc start
4. pgc pgadmin3

Developer Reminder
------------------
* Create serialVersionUID for Classes with "implements Serializable": use the JDK tool “serialver“
Expand Down
4 changes: 3 additions & 1 deletion etc/TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,7 @@ Fixed #103, Fixed #102
Fixed #107, Fixed #108

## 2.3.12
Fixed #106
Fixed #106, #Fixed 109, Fixed #110

Deployment to heroku

235 changes: 113 additions & 122 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,22 +121,10 @@
<artifactId>spring-boot-properties-migrator</artifactId>
<scope>runtime</scope>
</dependency>
<!--
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jdbc</artifactId>
</dependency>
-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<!--
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-solr</artifactId>
</dependency>
-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
Expand Down Expand Up @@ -326,6 +314,111 @@
<detachedMode>true</detachedMode>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack-dependencies</id>
<phase>pre-site</phase>
<goals>
<goal>analyze-only</goal>
<goal>analyze-dep-mgt</goal>
<goal>analyze-report</goal>
<goal>sources</goal>
<goal>resolve</goal>
<goal>resolve-plugins</goal>
<goal>collect</goal>
<goal>copy-dependencies</goal>
<goal>unpack-dependencies</goal>
<goal>build-classpath</goal>
</goals>
<configuration>
<overWriteReleases>true</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
<outputFile>${project.build.outputDirectory}/classpath.txt</outputFile>
<failOnWarning>false</failOnWarning>
<ignoredDependencies>
<ignoredDependency>org.apache.maven.plugins:maven-surefire-plugin</ignoredDependency>
<!--
<ignoredDependency>org.apache.maven.scm:maven-scm</ignoredDependency>
<ignoredDependency>org.apache.maven.scm:maven-scm-providers-git</ignoredDependency>
<ignoredDependency>org.apache.maven.scm:maven-scm-providers-standard</ignoredDependency>
<ignoredDependency>org.apache.maven.scm:maven-scm-providers</ignoredDependency>
<ignoredDependency>org.apache.maven.scm:maven-scm-managers</ignoredDependency>
-->
</ignoredDependencies>
<ignoredUsedUndeclaredDependencies>
<ignoredUsedUndeclaredDependency>org.apache.maven.plugins:maven-surefire-plugin</ignoredUsedUndeclaredDependency>
</ignoredUsedUndeclaredDependencies>
<ignoredUnusedDeclaredDependencies>
<ignoredUnusedDeclaredDependency>org.apache.maven.plugins:maven-surefire-plugin</ignoredUnusedDeclaredDependency>
</ignoredUnusedDeclaredDependencies>
</configuration>
</execution>
<execution>
<id>check-dependencies1</id>
<phase>pre-site</phase>
<goals>
<goal>list</goal>
<goal>list-repositories</goal>
<goal>properties</goal>
</goals>
</execution>
<execution>
<id>check-dependencies2</id>
<phase>pre-site</phase>
<goals>
<goal>analyze</goal>
<goal>analyze-dep-mgt</goal>
<goal>analyze-duplicate</goal>
<goal>analyze-report</goal>
</goals>
</execution>
<execution>
<id>check-dependencies3</id>
<phase>verify</phase>
<goals>
<goal>tree</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>site</phase>
<configuration>
<excludeGroupIds>org.webjars,org.jclouds,org.jboss.as,xml-resolver,commons-configuration,org.codehaus.plexus,commons-digester,junit,log4j,io.openliberty.features</excludeGroupIds>
<excludeArtifactIds>weld-probe-core,commons-configuration,jdk.tools,maven-antrun-plugin</excludeArtifactIds>
<failOnMissingClassifierArtifact>false</failOnMissingClassifierArtifact>
<reportSets>
<reportSet>
<reports>
<report>analyze-report</report>
</reports>
</reportSet>
</reportSets>
</configuration>
</execution>
<execution>
<id>get-dependency-sources</id>
<phase>pre-site</phase>
<goals>
<goal>sources</goal>
<goal>resolve</goal>
<goal>resolve-plugins</goal>
<goal>collect</goal>
<goal>copy-dependencies</goal>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<classifier>sources</classifier>
<excludeGroupIds>org.webjars</excludeGroupIds>
<excludeArtifactIds>weld-probe-core</excludeArtifactIds>
<failOnMissingClassifierArtifact>false</failOnMissingClassifierArtifact>
<outputDirectory>${project.build.directory}/dependencies/</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand All @@ -341,7 +434,10 @@
</activation>
<build>
<finalName>simpleworklist</finalName>
<defaultGoal>clean install dependency:sources dependency:resolve dependency:resolve-plugins dependency:tree spring-boot:run</defaultGoal>
<defaultGoal>clean spring-boot:run</defaultGoal>
<!--
<defaultGoal>clean install dependency:sources dependency:resolve dependency:resolve-plugins dependency:tree/defaultGoal>
-->
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
Expand All @@ -368,111 +464,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack-dependencies</id>
<phase>prepare-package</phase>
<goals>
<goal>analyze-only</goal>
<goal>analyze-dep-mgt</goal>
<goal>analyze-report</goal>
<goal>sources</goal>
<goal>resolve</goal>
<goal>resolve-plugins</goal>
<goal>collect</goal>
<goal>copy-dependencies</goal>
<goal>unpack-dependencies</goal>
<goal>build-classpath</goal>
</goals>
<configuration>
<overWriteReleases>true</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
<outputFile>${project.build.outputDirectory}/classpath.txt</outputFile>
<failOnWarning>false</failOnWarning>
<ignoredDependencies>
<ignoredDependency>org.apache.maven.plugins:maven-surefire-plugin</ignoredDependency>
<!--
<ignoredDependency>org.apache.maven.scm:maven-scm</ignoredDependency>
<ignoredDependency>org.apache.maven.scm:maven-scm-providers-git</ignoredDependency>
<ignoredDependency>org.apache.maven.scm:maven-scm-providers-standard</ignoredDependency>
<ignoredDependency>org.apache.maven.scm:maven-scm-providers</ignoredDependency>
<ignoredDependency>org.apache.maven.scm:maven-scm-managers</ignoredDependency>
-->
</ignoredDependencies>
<ignoredUsedUndeclaredDependencies>
<ignoredUsedUndeclaredDependency>org.apache.maven.plugins:maven-surefire-plugin</ignoredUsedUndeclaredDependency>
</ignoredUsedUndeclaredDependencies>
<ignoredUnusedDeclaredDependencies>
<ignoredUnusedDeclaredDependency>org.apache.maven.plugins:maven-surefire-plugin</ignoredUnusedDeclaredDependency>
</ignoredUnusedDeclaredDependencies>
</configuration>
</execution>
<execution>
<id>check-dependencies1</id>
<phase>verify</phase>
<goals>
<goal>list</goal>
<goal>list-repositories</goal>
<goal>properties</goal>
</goals>
</execution>
<execution>
<id>check-dependencies2</id>
<phase>verify</phase>
<goals>
<goal>analyze</goal>
<goal>analyze-dep-mgt</goal>
<goal>analyze-duplicate</goal>
<goal>analyze-report</goal>
</goals>
</execution>
<execution>
<id>check-dependencies3</id>
<phase>verify</phase>
<goals>
<goal>tree</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>site</phase>
<configuration>
<excludeGroupIds>org.webjars,org.jclouds,org.jboss.as,xml-resolver,commons-configuration,org.codehaus.plexus,commons-digester,junit,log4j,io.openliberty.features</excludeGroupIds>
<excludeArtifactIds>weld-probe-core,commons-configuration,jdk.tools,maven-antrun-plugin</excludeArtifactIds>
<failOnMissingClassifierArtifact>false</failOnMissingClassifierArtifact>
<reportSets>
<reportSet>
<reports>
<report>analyze-report</report>
</reports>
</reportSet>
</reportSets>
</configuration>
</execution>
<execution>
<id>get-dependency-sources</id>
<phase>prepare-package</phase>
<goals>
<goal>sources</goal>
<goal>resolve</goal>
<goal>resolve-plugins</goal>
<goal>collect</goal>
<goal>copy-dependencies</goal>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<classifier>sources</classifier>
<excludeGroupIds>org.webjars</excludeGroupIds>
<excludeArtifactIds>weld-probe-core</excludeArtifactIds>
<failOnMissingClassifierArtifact>false</failOnMissingClassifierArtifact>
<outputDirectory>${project.build.directory}/dependencies/</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
Expand Down
2 changes: 2 additions & 0 deletions setenv-sample.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ export MAIL_SMTP_USERNAME='mailuser'
export MAIL_SMTP_PASSWORD='mailuserpassword'
export MAIL_FROM='noreply@example.org'
export MAIL_URL_APP_HOST='localhost:5000'
export JPA_DLL_AUTO='update'
#export JPA_DLL_AUTO='create-drop'
2 changes: 1 addition & 1 deletion system.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
java.runtime.version=1.8
java.runtime.version=1.8