Skip to content

Commit db21731

Browse files
committed
feat: add support for running the application with PostgreSQL.
This change adds 661Kb to the WAR file. Addressed to #1034
1 parent 4d5b0b0 commit db21731

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

pom.xml

+18
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,20 @@
222222
</exclusions>
223223
</dependency>
224224

225+
<!--
226+
Isn't being used by default but can be activated by overriding the following properties:
227+
- spring.datasource.url (jdbc:postgresql://localhost:5432/mystamps)
228+
- spring.datasource.username
229+
- spring.datasource.password
230+
- spring.datasource.driver-class-name (org.postgresql.Driver)
231+
-->
232+
<dependency>
233+
<groupId>org.postgresql</groupId>
234+
<artifactId>postgresql</artifactId>
235+
<version>${postgresql.version}</version>
236+
<scope>runtime</scope>
237+
</dependency>
238+
225239
<dependency>
226240
<groupId>org.thymeleaf.extras</groupId>
227241
<artifactId>thymeleaf-extras-springsecurity4</artifactId>
@@ -530,6 +544,10 @@
530544
<native2ascii.plugin.version>2.0.1</native2ascii.plugin.version>
531545
<owasp-plugin.version>3.0.2</owasp-plugin.version>
532546
<pmd.plugin.version>3.12.0</pmd.plugin.version>
547+
548+
<!-- Redefine default value from spring-boot-dependencies (https://github.com/spring-projects/spring-boot/blob/v1.5.21.RELEASE/spring-boot-dependencies/pom.xml) -->
549+
<postgresql.version>9.4.1212.jre7</postgresql.version>
550+
533551
<resources.plugin.version>3.1.0</resources.plugin.version>
534552
<robotframework-httprequest.version>0.0.15</robotframework-httprequest.version>
535553
<robotframework-plugin.version>1.4.7</robotframework-plugin.version>

0 commit comments

Comments
 (0)