Skip to content

Commit 55540c6

Browse files
committed
Enhanced the Plugin to invoke the required function and parse representations
1 parent b923230 commit 55540c6

File tree

5 files changed

+448
-111
lines changed

5 files changed

+448
-111
lines changed

omod-1.8/pom.xml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,23 @@
7171
</plugin>
7272
<plugin>
7373
<groupId>com.mycila</groupId>
74-
<artifactId>license-maven-plugin</artifactId>
75-
<configuration>
74+
<artifactId>license-maven-plugin</artifactId> <configuration>
7675
<header>${project.parent.basedir}/license-header.txt</header>
7776
</configuration>
7877
</plugin>
78+
<plugin>
79+
<groupId>org.openmrs.plugin</groupId>
80+
<artifactId>openapi-generator-maven-plugin</artifactId>
81+
<version>1.0-SNAPSHOT</version>
82+
<executions>
83+
<execution>
84+
<phase>process-classes</phase>
85+
<goals>
86+
<goal>openapi</goal>
87+
</goals>
88+
</execution>
89+
</executions>
90+
</plugin>
7991
</plugins>
8092
</build>
8193
</project>

omod/pom.xml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -211,21 +211,6 @@
211211
<groupId>org.jacoco</groupId>
212212
<artifactId>jacoco-maven-plugin</artifactId>
213213
</plugin>
214-
<!-- OpenAPI Generator Maven Plugin -->
215-
<plugin>
216-
<groupId>org.openmrs.plugin</groupId>
217-
<artifactId>openapi-generator-maven-plugin</artifactId>
218-
<version>1.0-SNAPSHOT</version>
219-
<executions>
220-
<execution>
221-
<id>say-hello</id>
222-
<phase>process-classes</phase>
223-
<goals>
224-
<goal>hello</goal>
225-
</goals>
226-
</execution>
227-
</executions>
228-
</plugin>
229214
</plugins>
230215
</build>
231216

tools/openapi-generator-maven-plugin/pom.xml

Lines changed: 79 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,92 @@
4040
<groupId>org.apache.maven</groupId>
4141
<artifactId>maven-core</artifactId>
4242
<version>3.8.6</version>
43-
<scope>provided</scope>
44-
</dependency>
43+
<scope>provided</scope> </dependency>
4544

4645
<!-- JavaParser for extracting Javadoc -->
4746
<dependency>
4847
<groupId>com.github.javaparser</groupId>
4948
<artifactId>javaparser-core</artifactId>
5049
<version>3.25.5</version>
5150
</dependency>
51+
52+
<!-- Swagger dependencies needed by OpenMRS webservices -->
53+
<dependency>
54+
<groupId>io.swagger</groupId>
55+
<artifactId>swagger-core</artifactId>
56+
<version>1.6.2</version>
57+
</dependency>
58+
59+
<dependency>
60+
<groupId>io.swagger</groupId>
61+
<artifactId>swagger-models</artifactId>
62+
<version>1.6.2</version>
63+
</dependency>
64+
65+
<dependency>
66+
<groupId>io.swagger</groupId>
67+
<artifactId>swagger-annotations</artifactId>
68+
<version>1.6.2</version>
69+
</dependency>
70+
71+
<!-- OpenAPI 3.0 dependencies for specification generation -->
72+
<dependency>
73+
<groupId>io.swagger.core.v3</groupId>
74+
<artifactId>swagger-core</artifactId>
75+
<version>2.2.8</version>
76+
</dependency>
77+
78+
<dependency>
79+
<groupId>io.swagger.core.v3</groupId>
80+
<artifactId>swagger-models</artifactId>
81+
<version>2.2.8</version>
82+
</dependency>
83+
84+
<dependency>
85+
<groupId>io.swagger.core.v3</groupId>
86+
<artifactId>swagger-annotations</artifactId>
87+
<version>2.2.8</version>
88+
</dependency>
89+
90+
<!-- JSON processing for OpenAPI output -->
91+
<dependency>
92+
<groupId>com.fasterxml.jackson.core</groupId>
93+
<artifactId>jackson-databind</artifactId>
94+
<version>2.15.2</version>
95+
</dependency>
96+
97+
<dependency>
98+
<groupId>com.fasterxml.jackson.dataformat</groupId>
99+
<artifactId>jackson-dataformat-yaml</artifactId>
100+
<version>2.15.2</version>
101+
</dependency>
102+
103+
<!-- OpenMRS dependencies needed for runtime reflection -->
104+
<dependency>
105+
<groupId>org.openmrs.api</groupId>
106+
<artifactId>openmrs-api</artifactId>
107+
<version>2.7.0</version>
108+
</dependency>
109+
110+
<dependency>
111+
<groupId>org.openmrs.module</groupId>
112+
<artifactId>webservices.rest-omod-common</artifactId>
113+
<version>2.50.0-SNAPSHOT</version>
114+
</dependency>
115+
116+
<!-- Spring Web - needed by Swagger libraries and OpenMRS REST resources -->
117+
<dependency>
118+
<groupId>org.springframework</groupId>
119+
<artifactId>spring-web</artifactId>
120+
<version>5.3.30</version>
121+
</dependency>
122+
123+
<!-- Servlet API - needed by Spring Web -->
124+
<dependency>
125+
<groupId>javax.servlet</groupId>
126+
<artifactId>servlet-api</artifactId>
127+
<version>2.5</version>
128+
</dependency>
52129
</dependencies>
53130

54131
<build>

tools/openapi-generator-maven-plugin/src/main/java/org/openmrs/plugin/HelloMojo.java

Lines changed: 0 additions & 92 deletions
This file was deleted.

0 commit comments

Comments
 (0)