Skip to content

Commit d4552c3

Browse files
committed
Fix swagger configuration
1 parent bea38b7 commit d4552c3

2 files changed

Lines changed: 49 additions & 6 deletions

File tree

component/service/pom.xml

Lines changed: 48 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
<artifactId>social-component-core</artifactId>
5757
<type>test-jar</type>
5858
</dependency>
59+
5960
</dependencies>
6061
<build>
6162
<finalName>${project.artifactId}</finalName>
@@ -87,14 +88,56 @@
8788
</configuration>
8889
</plugin>
8990
<plugin>
90-
<groupId>io.openapitools.swagger</groupId>
91+
<groupId>io.swagger.core.v3</groupId>
9192
<artifactId>swagger-maven-plugin</artifactId>
9293
<configuration>
93-
<useResourcePackagesChildren>true</useResourcePackagesChildren>
94+
<outputFileName>social-javax</outputFileName>
95+
<outputPath>${project.build.directory}/swagger</outputPath>
96+
<outputFormat>YAML</outputFormat>
9497
<resourcePackages>
95-
<locations>io.meeds.social.rest.impl</locations>
98+
<package>io.meeds.social</package>
99+
<package>org.exoplatform.social.rest.impl</package>
96100
</resourcePackages>
97-
<swaggerConfig>
101+
<prettyPrint>TRUE</prettyPrint>
102+
</configuration>
103+
</plugin>
104+
<plugin>
105+
<groupId>io.github.kbuntrock</groupId>
106+
<artifactId>openapi-maven-plugin</artifactId>
107+
<configuration>
108+
<outputDirectory>${project.build.directory}/swagger</outputDirectory>
109+
<apis>
110+
<api>
111+
<filename>social-spring.yaml</filename>
112+
<locations>
113+
<location>io.meeds.social.category</location>
114+
<location>io.meeds.social.cms</location>
115+
<location>io.meeds.social.coediting</location>
116+
<!-- do not analyze databind as the plugin does not support a parameter in the service -->
117+
<!--location>io.meeds.social.databind</location-->
118+
<location>io.meeds.social.navigation</location>
119+
<location>io.meeds.social.observer</location>
120+
<location>io.meeds.social.resource</location>
121+
<location>io.meeds.social.rest.impl</location>
122+
<location>io.meeds.social.security</location>
123+
<location>io.meeds.social.space</location>
124+
<location>io.meeds.social.translation</location>
125+
<location>org.exoplatform.social.rest.impl</location>
126+
</locations>
127+
</api>
128+
</apis>
129+
</configuration>
130+
</plugin>
131+
<plugin>
132+
<groupId>com.rameshkp</groupId>
133+
<artifactId>openapi-merger-maven-plugin</artifactId>
134+
<configuration>
135+
<inputDir>${project.build.directory}/swagger</inputDir>
136+
<outputDir>${project.build.directory}/</outputDir>
137+
<outputFileFormat>YAML</outputFileFormat>
138+
<outputFileName>social</outputFileName>
139+
<openApi>
140+
<version>3.0.3</version>
98141
<info>
99142
<title>${rest.api.doc.title}</title>
100143
<version>${rest.api.doc.version}</version>
@@ -104,7 +147,7 @@
104147
<name>LGPL</name>
105148
</license>
106149
</info>
107-
</swaggerConfig>
150+
</openApi>
108151
</configuration>
109152
</plugin>
110153
</plugins>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<artifactId>maven-parent-pom</artifactId>
2424
<groupId>io.meeds</groupId>
25-
<version>28-M02</version>
25+
<version>28-SNAPSHOT</version>
2626
<relativePath />
2727
</parent>
2828
<groupId>io.meeds.social</groupId>

0 commit comments

Comments
 (0)