|
56 | 56 | <artifactId>social-component-core</artifactId> |
57 | 57 | <type>test-jar</type> |
58 | 58 | </dependency> |
| 59 | + |
59 | 60 | </dependencies> |
60 | 61 | <build> |
61 | 62 | <finalName>${project.artifactId}</finalName> |
|
87 | 88 | </configuration> |
88 | 89 | </plugin> |
89 | 90 | <plugin> |
90 | | - <groupId>io.openapitools.swagger</groupId> |
| 91 | + <groupId>io.swagger.core.v3</groupId> |
91 | 92 | <artifactId>swagger-maven-plugin</artifactId> |
92 | 93 | <configuration> |
93 | | - <useResourcePackagesChildren>true</useResourcePackagesChildren> |
| 94 | + <outputFileName>social-javax</outputFileName> |
| 95 | + <outputPath>${project.build.directory}/swagger</outputPath> |
| 96 | + <outputFormat>YAML</outputFormat> |
94 | 97 | <resourcePackages> |
95 | | - <locations>io.meeds.social.rest.impl</locations> |
| 98 | + <package>io.meeds.social</package> |
| 99 | + <package>org.exoplatform.social.rest.impl</package> |
96 | 100 | </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> |
98 | 141 | <info> |
99 | 142 | <title>${rest.api.doc.title}</title> |
100 | 143 | <version>${rest.api.doc.version}</version> |
|
104 | 147 | <name>LGPL</name> |
105 | 148 | </license> |
106 | 149 | </info> |
107 | | - </swaggerConfig> |
| 150 | + </openApi> |
108 | 151 | </configuration> |
109 | 152 | </plugin> |
110 | 153 | </plugins> |
|
0 commit comments