Skip to content

Commit

Permalink
chore: create javadoc and source jar for modules without sources
Browse files Browse the repository at this point in the history
Having javadoc and sources artifact is a maven central requirement.
  • Loading branch information
mcollovati committed Nov 29, 2023
1 parent adb382b commit 03500b7
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 0 deletions.
19 changes: 19 additions & 0 deletions deployment-react/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,23 @@
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>distribution</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<includeDependencySources>true</includeDependencySources>
<dependencySourceIncludes>
<dependencySourceInclude>${project.groupId}:quarkus-hilla-commons-deployment</dependencySourceInclude>
</dependencySourceIncludes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
19 changes: 19 additions & 0 deletions deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,23 @@
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>distribution</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<includeDependencySources>true</includeDependencySources>
<dependencySourceIncludes>
<dependencySourceInclude>${project.groupId}:quarkus-hilla-commons-deployment</dependencySourceInclude>
</dependencySourceIncludes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@
</goals>
<configuration>
<attach>true</attach>
<forceCreation>true</forceCreation>
</configuration>
</execution>
</executions>
Expand Down
22 changes: 22 additions & 0 deletions runtime-react/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,20 @@
<!--
There should be no newlines in the classes list, otherwise the filter silently
fails at runtime
@formatter:off
-->
<resources>dev/hilla/ConditionalOnFeatureFlag.class,dev/hilla/EndpointControllerConfiguration.class,dev/hilla/FeatureFlagCondition.class,dev/hilla/startup/EndpointsValidator.class,dev/hilla/push/PushConfigurer.class</resources>
<!-- @formatter:on -->
</artifact>
<artifact>
<key>dev.hilla:endpoint</key>
<!--
There should be no newlines in the classes list, otherwise the filter silently
fails at runtime
@formatter:off
-->
<resources>dev/hilla/ConditionalOnFeatureFlag.class,dev/hilla/EndpointControllerConfiguration.class,dev/hilla/FeatureFlagCondition.class,dev/hilla/startup/EndpointsValidator.class,dev/hilla/push/PushConfigurer.class</resources>
<!-- @formatter:on -->
</artifact>
</removedResources>
</configuration>
Expand Down Expand Up @@ -182,5 +186,23 @@ Files.move(codeStartFolder.resolve("src/main/java"), javaSrcFolder, new CopyOpti
</plugins>
</build>
</profile>
<profile>
<id>distribution</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<includeDependencySources>true</includeDependencySources>
<dependencySourceIncludes>
<dependencySourceInclude>${project.groupId}:quarkus-hilla-commons
</dependencySourceInclude>
</dependencySourceIncludes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
22 changes: 22 additions & 0 deletions runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,20 @@
<!--
There should be no newlines in the classes list, otherwise the filter silently
fails at runtime
@formatter:off
-->
<resources>dev/hilla/ConditionalOnFeatureFlag.class,dev/hilla/EndpointControllerConfiguration.class,dev/hilla/FeatureFlagCondition.class,dev/hilla/startup/EndpointsValidator.class,dev/hilla/push/PushConfigurer.class</resources>
<!-- @formatter:on -->
</artifact>
<artifact>
<key>dev.hilla:endpoint</key>
<!--
There should be no newlines in the classes list, otherwise the filter silently
fails at runtime
@formatter:off
-->
<resources>dev/hilla/ConditionalOnFeatureFlag.class,dev/hilla/EndpointControllerConfiguration.class,dev/hilla/FeatureFlagCondition.class,dev/hilla/startup/EndpointsValidator.class,dev/hilla/push/PushConfigurer.class</resources>
<!-- @formatter:on -->
</artifact>
</removedResources>
</configuration>
Expand Down Expand Up @@ -182,5 +186,23 @@ Files.move(codeStartFolder.resolve("src/main/java"), javaSrcFolder, new CopyOpti
</plugins>
</build>
</profile>
<profile>
<id>distribution</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<includeDependencySources>true</includeDependencySources>
<dependencySourceIncludes>
<dependencySourceInclude>${project.groupId}:quarkus-hilla-commons
</dependencySourceInclude>
</dependencySourceIncludes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit 03500b7

Please sign in to comment.