Skip to content

Commit

Permalink
[issue-1351] - Adding a build module and a build/docs module
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiobrz committed Jan 18, 2025
1 parent 9c7f5aa commit b6cd599
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 0 deletions.
82 changes: 82 additions & 0 deletions build/docs/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.arquillian.cube</groupId>
<artifactId>arquillian-cube-build</artifactId>
<version>2.0.0.Alpha1</version>
</parent>
<artifactId>arquillian-cube-build-docs</artifactId>
<packaging>pom</packaging>
<name>Arquillian Cube: Build documentation</name>

<properties>
<project.root.dir>${basedir}/../..</project.root.dir>
<documentation.sources.directory>${project.build.directory}/compiled-sources-docs</documentation.sources.directory>
</properties>

<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<mkdir dir="${documentation.sources.directory}"/>
<copy todir="${documentation.sources.directory}">
<fileset dir="${project.build.directory}/../../../docs/" includes="*.adoc"/>
</copy>
<copy file="${project.build.directory}/../../../README.adoc" tofile="${documentation.sources.directory}/index.adoc"/>
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<version>2.2.6</version>
<executions>
<execution>
<id>output-html-user-guide</id>
<phase>package</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
<configuration>
<backend>html5</backend>
<attributes>
<toc>left</toc>
<linkcss>false</linkcss>
<attribute-missing>warn</attribute-missing>
<sectnums>true</sectnums>
<!-- Attribute used to differentiate between built-tin rendering a GitHub project landing page readme vs building a page for publishing -->
<!-- Example: -->
<!-- ifdef::generated-doc[] -->
<!-- ... -->
<!-- endif::generated-doc[] -->
<generated-doc>true</generated-doc>
<project_version>${project.version}</project_version>
<project_root_dir>${project.root.dir}</project_root_dir>
</attributes>
<sourceDirectory>${documentation.sources.directory}</sourceDirectory>
<sourceDocumentName>index.adoc</sourceDocumentName>
<logHandler>
<failIf>
<severity>WARN</severity>
</failIf>
</logHandler>
<enableVerbose>true</enableVerbose>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
17 changes: 17 additions & 0 deletions build/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.arquillian.cube</groupId>
<artifactId>arquillian-cube-parent</artifactId>
<version>2.0.0.Alpha1</version>
</parent>

<artifactId>arquillian-cube-build</artifactId>
<name>Arquillian Cube: Build Parent</name>
<packaging>pom</packaging>

<modules>
<module>docs</module>
</modules>
</project>
2 changes: 2 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
<module>arquillian-cube-kubernetes-starter</module>
<module>arquillian-cube-openshift-starter</module>
<module>jkube-maven-plugin-build</module>
<!-- build modules -->
<module>build</module>
</modules>

<developers>
Expand Down

0 comments on commit b6cd599

Please sign in to comment.