Skip to content

Commit 4e47d4a

Browse files
committed
vo-added-more-deps-for-okhttp-retrofit-slf4j
1 parent 04e5f42 commit 4e47d4a

File tree

1 file changed

+106
-13
lines changed

1 file changed

+106
-13
lines changed

pom.xml

Lines changed: 106 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>io.github.venkat1701</groupId>
88
<artifactId>openapi-java-parser</artifactId>
9-
<version>1.0-SNAPSHOT</version>
9+
<version>1.0.0</version>
1010

1111
<properties>
1212
<maven.compiler.source>23</maven.compiler.source>
@@ -15,42 +15,81 @@
1515
</properties>
1616

1717
<dependencies>
18+
<dependency>
19+
<groupId>io.swagger.parser.v3</groupId>
20+
<artifactId>swagger-parser</artifactId>
21+
<version>2.1.25</version>
22+
</dependency>
1823
<dependency>
1924
<groupId>com.squareup.retrofit2</groupId>
2025
<artifactId>retrofit</artifactId>
2126
<version>2.11.0</version>
2227
</dependency>
2328
<dependency>
24-
<groupId>io.swagger.parser.v3</groupId>
25-
<artifactId>swagger-parser</artifactId>
26-
<version>2.1.16</version>
29+
<groupId>com.squareup.okhttp3</groupId>
30+
<artifactId>okhttp</artifactId>
31+
<version>4.9.3</version>
2732
</dependency>
2833
<dependency>
2934
<groupId>com.squareup.okhttp3</groupId>
30-
<artifactId>okhttp</artifactId>
35+
<artifactId>logging-interceptor</artifactId>
3136
<version>4.9.3</version>
3237
</dependency>
38+
<dependency>
39+
<groupId>com.squareup</groupId>
40+
<artifactId>javapoet</artifactId>
41+
<version>1.10.0</version>
42+
</dependency>
43+
<dependency>
44+
<groupId>commons-cli</groupId>
45+
<artifactId>commons-cli</artifactId>
46+
<version>1.9.0</version>
47+
</dependency>
3348
<dependency>
3449
<groupId>org.projectlombok</groupId>
3550
<artifactId>lombok</artifactId>
3651
<version>1.18.26</version>
3752
<scope>provided</scope>
3853
</dependency>
3954
<dependency>
40-
<groupId>com.squareup</groupId>
41-
<artifactId>javapoet</artifactId>
42-
<version>1.10.0</version>
55+
<groupId>com.google.code.gson</groupId>
56+
<artifactId>gson</artifactId>
57+
<version>2.10.1</version>
4358
</dependency>
4459
<dependency>
45-
<groupId>io.swagger.parser.v3</groupId>
46-
<artifactId>swagger-parser</artifactId>
47-
<version>2.1.25</version>
60+
<groupId>io.gsonfire</groupId>
61+
<artifactId>gson-fire</artifactId>
62+
<version>1.8.5</version>
63+
</dependency>
64+
<dependency>
65+
<groupId>javax.ws.rs</groupId>
66+
<artifactId>javax.ws.rs-api</artifactId>
67+
<version>2.1.1</version>
68+
<scope>provided</scope>
69+
</dependency>
70+
<dependency>
71+
<groupId>javax.annotation</groupId>
72+
<artifactId>javax.annotation-api</artifactId>
73+
<version>1.3.2</version>
74+
</dependency>
75+
<dependency>
76+
<groupId>org.slf4j</groupId>
77+
<artifactId>slf4j-api</artifactId>
78+
<version>2.0.7</version>
4879
</dependency>
4980
<dependency>
5081
<groupId>org.springframework.boot</groupId>
5182
<artifactId>spring-boot-starter-webflux</artifactId>
5283
<version>3.1.1</version>
5384
</dependency>
85+
<dependency>
86+
<groupId>org.junit.jupiter</groupId>
87+
<artifactId>junit-jupiter-api</artifactId>
88+
<version>5.9.1</version>
89+
<scope>test</scope>
90+
</dependency>
91+
92+
5493
</dependencies>
5594

5695
<build>
@@ -66,7 +105,7 @@
66105
<goal>generate</goal>
67106
</goals>
68107
<configuration>
69-
<inputSpec>${project.basedir}/ghes-3.7.yaml</inputSpec>
108+
<inputSpec>${project.basedir}/src/main/resources/openapi.yaml</inputSpec>
70109
<generatorName>java</generatorName>
71110
<output>${project.build.directory}/generated-sources</output>
72111
<apiPackage>com.example.api</apiPackage>
@@ -78,7 +117,61 @@
78117
</execution>
79118
</executions>
80119
</plugin>
120+
121+
<plugin>
122+
<groupId>org.apache.maven.plugins</groupId>
123+
<artifactId>maven-jar-plugin</artifactId>
124+
<version>3.2.0</version>
125+
<configuration>
126+
<archive>
127+
<manifest>
128+
<mainClass>io.github.venkat1701.build.cli.OpenApiProjectGeneratorCLI</mainClass>
129+
</manifest>
130+
</archive>
131+
</configuration>
132+
</plugin>
133+
134+
135+
136+
<!-- Maven Compiler Plugin -->
137+
<plugin>
138+
<groupId>org.apache.maven.plugins</groupId>
139+
<artifactId>maven-compiler-plugin</artifactId>
140+
<version>3.8.1</version>
141+
<configuration>
142+
<source>23</source>
143+
<target>23</target>
144+
</configuration>
145+
</plugin>
146+
<plugin>
147+
<groupId>org.apache.maven.plugins</groupId>
148+
<artifactId>maven-shade-plugin</artifactId>
149+
<version>3.3.0</version>
150+
<executions>
151+
<execution>
152+
<phase>package</phase>
153+
<goals>
154+
<goal>shade</goal>
155+
</goals>
156+
<configuration>
157+
<createDependencyReducedPom>true</createDependencyReducedPom>
158+
<transformers>
159+
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
160+
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
161+
<mainClass>io.github.venkat1701.build.cli.OpenApiProjectGeneratorCLI</mainClass>
162+
</transformer>
163+
</transformers>
164+
</configuration>
165+
</execution>
166+
</executions>
167+
</plugin>
168+
<!-- Maven Clean Plugin -->
169+
<plugin>
170+
<groupId>org.apache.maven.plugins</groupId>
171+
<artifactId>maven-clean-plugin</artifactId>
172+
<version>3.1.0</version>
173+
</plugin>
81174
</plugins>
82175
</build>
83176

84-
</project>
177+
</project>

0 commit comments

Comments
 (0)