Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0d88bfc

Browse files
author
Ivan Franchin
committed
Refactor docker-compose.yml and book-api pom.xml
1 parent 63e7a96 commit 0d88bfc

File tree

2 files changed

+35
-12
lines changed

2 files changed

+35
-12
lines changed

‎book-api/pom.xml

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,35 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
34
<modelVersion>4.0.0</modelVersion>
45
<parent>
56
<groupId>org.springframework.boot</groupId>
67
<artifactId>spring-boot-starter-parent</artifactId>
78
<version>3.4.0</version>
8-
<relativePath/> <!-- lookup parent from repository -->
9+
<relativePath/> <!-- lookup parent from repository -->
910
</parent>
10-
1111
<groupId>com.ivanfranchin</groupId>
1212
<artifactId>book-api</artifactId>
1313
<version>0.0.1-SNAPSHOT</version>
1414
<name>book-api</name>
1515
<description>Demo project for Spring Boot</description>
16-
16+
<url/>
17+
<licenses>
18+
<license/>
19+
</licenses>
20+
<developers>
21+
<developer/>
22+
</developers>
23+
<scm>
24+
<connection/>
25+
<developerConnection/>
26+
<tag/>
27+
<url/>
28+
</scm>
1729
<properties>
1830
<java.version>21</java.version>
1931
<springdoc-openapi.version>2.7.0</springdoc-openapi.version>
2032
</properties>
21-
2233
<dependencies>
2334
<dependency>
2435
<groupId>org.springframework.boot</groupId>
@@ -68,6 +79,18 @@
6879

6980
<build>
7081
<plugins>
82+
<plugin>
83+
<groupId>org.apache.maven.plugins</groupId>
84+
<artifactId>maven-compiler-plugin</artifactId>
85+
<configuration>
86+
<annotationProcessorPaths>
87+
<path>
88+
<groupId>org.projectlombok</groupId>
89+
<artifactId>lombok</artifactId>
90+
</path>
91+
</annotationProcessorPaths>
92+
</configuration>
93+
</plugin>
7194
<plugin>
7295
<groupId>org.springframework.boot</groupId>
7396
<artifactId>spring-boot-maven-plugin</artifactId>

‎docker-compose.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
services:
22

33
postgres:
4-
image: postgres:17.2
5-
container_name: postgres
4+
image: 'postgres:17.2'
5+
container_name: 'postgres'
66
ports:
7-
- "5432:5432"
7+
- '5432:5432'
88
environment:
9-
- POSTGRES_DB=bookdb
10-
- POSTGRES_PASSWORD=postgres
11-
- POSTGRES_USER=postgres
9+
- 'POSTGRES_DB=bookdb'
10+
- 'POSTGRES_PASSWORD=postgres'
11+
- 'POSTGRES_USER=postgres'
1212
healthcheck:
13-
test: "pg_isready -U postgres"
13+
test: 'pg_isready -U postgres'

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /