Skip to content

Commit cd9778f

Browse files
committed
Kotlin enums are always marked as required if used in Java controllers. Fixes #2622
1 parent 42de831 commit cd9778f

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

springdoc-openapi-tests/springdoc-openapi-kotlin-webmvc-tests/pom.xml

+30
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,36 @@
7878
</dependency>
7979
</dependencies>
8080
</plugin>
81+
<plugin>
82+
<groupId>org.apache.maven.plugins</groupId>
83+
<artifactId>maven-compiler-plugin</artifactId>
84+
<executions>
85+
<!-- Replacing default-compile as it is treated specially by Maven -->
86+
<execution>
87+
<id>default-compile</id>
88+
<phase>none</phase>
89+
</execution>
90+
<!-- Replacing default-testCompile as it is treated specially by Maven -->
91+
<execution>
92+
<id>default-testCompile</id>
93+
<phase>none</phase>
94+
</execution>
95+
<execution>
96+
<id>java-compile</id>
97+
<phase>compile</phase>
98+
<goals>
99+
<goal>compile</goal>
100+
</goals>
101+
</execution>
102+
<execution>
103+
<id>java-test-compile</id>
104+
<phase>test-compile</phase>
105+
<goals>
106+
<goal>testCompile</goal>
107+
</goals>
108+
</execution>
109+
</executions>
110+
</plugin>
81111
</plugins>
82112
</build>
83113
</project>

0 commit comments

Comments
 (0)