Skip to content

Commit deb8154

Browse files
committed
Generate javadoc jar for shade artifact and refine dokka usage in spec-kotlin
1 parent 9cc26e6 commit deb8154

File tree

3 files changed

+21
-4
lines changed

3 files changed

+21
-4
lines changed

scripts/noIntegration.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ FOLDER=`pwd`
66

77
set -e
88

9-
./mvnw clean dokka:javadocJar install ${@}
10-
${FOLDER}/scripts/generateDocs.sh ${@}
9+
./mvnw clean install ${@}
10+
${FOLDER}/scripts/generateDocs.sh ${@}

specs/spring-cloud-contract-spec-kotlin/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@
109109
</configuration>
110110
<executions>
111111
<execution>
112-
<phase>pre-site</phase>
112+
<phase>package</phase>
113113
<goals>
114-
<goal>dokka</goal>
114+
<goal>javadocJar</goal>
115115
</goals>
116116
</execution>
117117
</executions>

spring-cloud-contract-shade/pom.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,23 @@
306306
<failIfNoTests>false</failIfNoTests>
307307
</configuration>
308308
</plugin>
309+
<plugin>
310+
<groupId>org.apache.maven.plugins</groupId>
311+
<artifactId>maven-jar-plugin</artifactId>
312+
<executions>
313+
<execution>
314+
<id>empty-javadoc-jar</id>
315+
<phase>package</phase>
316+
<goals>
317+
<goal>jar</goal>
318+
</goals>
319+
<configuration>
320+
<classifier>javadoc</classifier>
321+
<classesDirectory>${basedir}/javadoc</classesDirectory>
322+
</configuration>
323+
</execution>
324+
</executions>
325+
</plugin>
309326
</plugins>
310327
</build>
311328
</project>

0 commit comments

Comments
 (0)