Skip to content

Commit 60a1244

Browse files
Catlog Service module setup
1 parent b4ad3e5 commit 60a1244

19 files changed

+299
-71
lines changed

.github/workflows/catlog-service.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Catlog Service
2+
3+
on:
4+
push:
5+
paths:
6+
- catlog-service/**
7+
branches:
8+
- 'main'
9+
pull_request:
10+
branches: [main]
11+
12+
jobs:
13+
build:
14+
name: Build
15+
runs-on: ubuntu-latest
16+
env:
17+
working-directory: ./catlog-service
18+
DOCKER_IMAGE_NAME: ${{ secrets.DOCKERHUB_USERNAME }}/bookstore-catlog-service
19+
defaults:
20+
run:
21+
working-directory: ${{ env.working-directory }}
22+
steps:
23+
- uses: actions/checkout@v4
24+
25+
- name: Setup Java 21
26+
uses: actions/setup-java@v4
27+
with:
28+
java-version: '21'
29+
distribution: 'temurin'
30+
cache: 'maven'
31+
32+
- name: Make Maven wrapper executable
33+
run: chmod +x mvnw
34+
35+
- name: Build with Maven
36+
run: ./mvnw -ntp verify
37+
38+
39+
40+

.idea/checkstyle-idea.xml

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/encodings.xml

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jarRepositories.xml

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/workspace.xml

Lines changed: 70 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

catlog-service/.gitattributes

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +0,0 @@
1-
/mvnw text eol=lf
2-
*.cmd text eol=crlf

catlog-service/pom.xml

Lines changed: 56 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,17 @@
55
<parent>
66
<groupId>org.springframework.boot</groupId>
77
<artifactId>spring-boot-starter-parent</artifactId>
8-
<version>3.3.4</version>
8+
<version>3.4.1</version>
99
<relativePath/> <!-- lookup parent from repository -->
1010
</parent>
1111
<groupId>com.suresh</groupId>
1212
<artifactId>catlog-service</artifactId>
1313
<version>0.0.1-SNAPSHOT</version>
1414
<name>catlog-service</name>
1515
<description>Catlog Service</description>
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>
2916
<properties>
3017
<java.version>21</java.version>
18+
<spotless-maven-plugin.version>2.43.0</spotless-maven-plugin.version>
3119
</properties>
3220
<dependencies>
3321
<dependency>
@@ -50,6 +38,13 @@
5038
<groupId>org.flywaydb</groupId>
5139
<artifactId>flyway-core</artifactId>
5240
</dependency>
41+
<dependency>
42+
<groupId>org.springdoc</groupId>
43+
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
44+
<version>2.1.0</version>
45+
</dependency>
46+
47+
5348
<dependency>
5449
<groupId>org.flywaydb</groupId>
5550
<artifactId>flyway-database-postgresql</artifactId>
@@ -71,6 +66,7 @@
7166
<artifactId>postgresql</artifactId>
7267
<scope>runtime</scope>
7368
</dependency>
69+
7470
<dependency>
7571
<groupId>org.springframework.boot</groupId>
7672
<artifactId>spring-boot-configuration-processor</artifactId>
@@ -96,6 +92,11 @@
9692
<artifactId>postgresql</artifactId>
9793
<scope>test</scope>
9894
</dependency>
95+
<dependency>
96+
<groupId>io.rest-assured</groupId>
97+
<artifactId>rest-assured</artifactId>
98+
<scope>test</scope>
99+
</dependency>
99100
<dependency>
100101
<groupId>org.projectlombok</groupId>
101102
<artifactId>lombok</artifactId>
@@ -108,7 +109,6 @@
108109
<plugin>
109110
<groupId>org.springframework.boot</groupId>
110111
<artifactId>spring-boot-maven-plugin</artifactId>
111-
<version>3.2.5</version>
112112
<executions>
113113
<execution>
114114
<goals>
@@ -120,6 +120,47 @@
120120
<plugin>
121121
<groupId>io.github.git-commit-id</groupId>
122122
<artifactId>git-commit-id-maven-plugin</artifactId>
123+
<executions>
124+
<execution>
125+
<goals>
126+
<goal>revision</goal>
127+
</goals>
128+
</execution>
129+
</executions>
130+
<configuration>
131+
<failOnNoGitDirectory>false</failOnNoGitDirectory>
132+
<failOnUnableToExtractRepoInfo>false</failOnUnableToExtractRepoInfo>
133+
<generateGitPropertiesFile>true</generateGitPropertiesFile>
134+
<includeOnlyProperties>
135+
<includeOnlyProperty>^git.branch$</includeOnlyProperty>
136+
<includeOnlyProperty>^git.commit.id.abbrev$</includeOnlyProperty>
137+
<includeOnlyProperty>^git.commit.user.name$</includeOnlyProperty>
138+
<includeOnlyProperty>^git.commit.message.full$</includeOnlyProperty>
139+
</includeOnlyProperties>
140+
</configuration>
141+
</plugin>
142+
<plugin>
143+
<groupId>com.diffplug.spotless</groupId>
144+
<artifactId>spotless-maven-plugin</artifactId>
145+
<version>${spotless-maven-plugin.version}</version>
146+
<configuration>
147+
<java>
148+
<importOrder />
149+
<removeUnusedImports />
150+
<palantirJavaFormat>
151+
<version>2.35.0</version>
152+
</palantirJavaFormat>
153+
<formatAnnotations />
154+
</java>
155+
</configuration>
156+
<executions>
157+
<execution>
158+
<phase>compile</phase>
159+
<goals>
160+
<goal>check</goal>
161+
</goals>
162+
</execution>
163+
</executions>
123164
</plugin>
124165
</plugins>
125166
</build>

0 commit comments

Comments
 (0)