Auto DevOps postgres img doesn't support ssl but is needed by heroku java buildpack

Summary

When you use Auto DevOps with a spring boot application, heroku java buildpack is used. This buildpack sets the sslmode to required which conflicts with the choosen postgres image, which doesn't support it.

The error message:

Caused by: org.postgresql.util.PSQLException: The server does not support SSL.

There is a forum thread from Jan 2018 which states the issue as well (which helped me in understanding the issue quite quick) https://forum.gitlab.com/t/auto-devops-postgres-database-ssl-error/13987

Steps to reproduce

Use Auto DevOps on a Repository with a spring boot application.

What is the current bug behavior?

Auto DevOps can't deploy a spring boot application in its default settings.

What is the expected correct behavior?

Auto DevOps should just work on a common / typical stack.

Relevant logs and/or screenshots

Caused by: org.postgresql.util.PSQLException: The server does not support SSL.
	at org.postgresql.core.v3.ConnectionFactoryImpl.enableSSL(ConnectionFactoryImpl.java:425) ~[postgresql-42.2.5.jre7.jar!/:42.2.5.jre7]
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:94) ~[postgresql-42.2.5.jre7.jar!/:42.2.5.jre7]
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:192) ~[postgresql-42.2.5.jre7.jar!/:42.2.5.jre7]
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49) ~[postgresql-42.2.5.jre7.jar!/:42.2.5.jre7]
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:195) ~[postgresql-42.2.5.jre7.jar!/:42.2.5.jre7]
Assignee Loading
Time tracking Loading