You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2022/10/27 18:52:21 UTC
[commons-numbers] branch master updated (07443607 -> 2124ee70)
This is an automated email from the ASF dual-hosted git repository.
aherbert pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-numbers.git
from 07443607 NUMBERS-70: Initial user guide
new e1631f65 bom formatting
new 07bc911b Correct xdoc block elements
new 2124ee70 Add a docs module for aggregate reports
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../src/main/resources-filtered/bom.xml | 2 +-
commons-numbers-docs/pom.xml | 205 +++++++++++++++++++++
.../src/site/site.xml | 4 +-
.../src}/site/xdoc/index.xml | 32 ++--
pom.xml | 8 +-
src/site/site.xml | 1 +
src/site/xdoc/index.xml | 28 +--
7 files changed, 239 insertions(+), 41 deletions(-)
create mode 100644 commons-numbers-docs/pom.xml
copy {commons-numbers-bom => commons-numbers-docs}/src/site/site.xml (91%)
copy {src => commons-numbers-docs/src}/site/xdoc/index.xml (67%)
[commons-numbers] 01/03: bom formatting
Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-numbers.git
commit e1631f659721095076acec1f85ce410d400c10aa
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Thu Oct 27 19:06:37 2022 +0100
bom formatting
---
commons-numbers-bom/src/main/resources-filtered/bom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commons-numbers-bom/src/main/resources-filtered/bom.xml b/commons-numbers-bom/src/main/resources-filtered/bom.xml
index 43c1adfd..8747c1ca 100644
--- a/commons-numbers-bom/src/main/resources-filtered/bom.xml
+++ b/commons-numbers-bom/src/main/resources-filtered/bom.xml
@@ -31,7 +31,7 @@
<dependencyManagement>
<dependencies>
- <dependency>
+ <dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-numbers-angle</artifactId>
<version>${version}</version>
[commons-numbers] 02/03: Correct xdoc block elements
Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-numbers.git
commit 07bc911bd33e1c0a0782f1267848775b369e6704
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Thu Oct 27 19:13:37 2022 +0100
Correct xdoc block elements
---
src/site/xdoc/index.xml | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/src/site/xdoc/index.xml b/src/site/xdoc/index.xml
index 8960b0be..08810be7 100644
--- a/src/site/xdoc/index.xml
+++ b/src/site/xdoc/index.xml
@@ -28,21 +28,21 @@
<section name="Apache Commons Numbers: Number types and utilities" href="summary">
<p>
Apache Commons Numbers provides implementations of number types and utilities.
- Features include
- <ul>
- <li>angles</li>
- <li>arrays</li>
- <li>combinatorics</li>
- <li>complex numbers</li>
- <li>core arithmetic</li>
- <li>fields</li>
- <li>fractions</li>
- <li>gamma functions</li>
- <li>primes</li>
- <li>quaternions</li>
- <li>root finding</li>
- </ul>
+ Features include:
</p>
+ <ul>
+ <li>angles</li>
+ <li>arrays</li>
+ <li>combinatorics</li>
+ <li>complex numbers</li>
+ <li>core arithmetic</li>
+ <li>fields</li>
+ <li>fractions</li>
+ <li>gamma functions</li>
+ <li>primes</li>
+ <li>quaternions</li>
+ <li>root finding</li>
+ </ul>
</section>
<section name="Download Apache Commons Numbers">
[commons-numbers] 03/03: Add a docs module for aggregate reports
Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-numbers.git
commit 2124ee7016191bf9ee30dda7ee18f2cc5e82c46c
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Thu Oct 27 19:52:09 2022 +0100
Add a docs module for aggregate reports
Add a top-level site link to the aggregate javadoc.
Update the parent junit dependency to junit-jupiter. This avoids
explicit inclusion of junit-jupiter-engine, etc, which are inherited and
documented in the aggregate javadoc report.
---
commons-numbers-docs/pom.xml | 205 +++++++++++++++++++++++++++
commons-numbers-docs/src/site/site.xml | 34 +++++
commons-numbers-docs/src/site/xdoc/index.xml | 53 +++++++
pom.xml | 8 +-
src/site/site.xml | 1 +
5 files changed, 295 insertions(+), 6 deletions(-)
diff --git a/commons-numbers-docs/pom.xml b/commons-numbers-docs/pom.xml
new file mode 100644
index 00000000..10463a8b
--- /dev/null
+++ b/commons-numbers-docs/pom.xml
@@ -0,0 +1,205 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<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/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-numbers-parent</artifactId>
+ <version>1.1-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>commons-numbers-docs</artifactId>
+ <!-- do not set packaging to pom, because otherwise we will receive
+ "Not executing Javadoc as the project is not a Java classpath-capable package" -->
+
+ <name>Apache Commons Numbers Documentation</name>
+ <description>Aggregator module to genenerate Apache Commons Numbers documentation.</description>
+
+ <properties>
+ <checkstyle.skip>true</checkstyle.skip>
+ <animal.sniffer.skip>true</animal.sniffer.skip>
+ <!-- Workaround to avoid duplicating config files. -->
+ <numbers.parent.dir>${basedir}/..</numbers.parent.dir>
+ <!-- Skip the standard build plugins to avoid processing this 'jar' as an artifact. -->
+ <maven.resources.skip>true</maven.resources.skip>
+ <maven.source.skip>true</maven.source.skip>
+ <maven.main.skip>true</maven.main.skip>
+ <maven.test.skip>true</maven.test.skip>
+ <maven.install.skip>true</maven.install.skip>
+ <maven.deploy.skip>true</maven.deploy.skip>
+ <!-- Simple site -->
+ <pmd.skip>true</pmd.skip>
+ <cpd.skip>true</cpd.skip>
+ <spotbugs.skip>true</spotbugs.skip>
+ <checkstyle.skip>true</checkstyle.skip>
+ <changes.jira.skip>true</changes.jira.skip>
+ <skipSurefireReport>true</skipSurefireReport>
+ </properties>
+
+ <!-- Depend on all other modules -->
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-numbers-angle</artifactId>
+ <version>1.1-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-numbers-arrays</artifactId>
+ <version>1.1-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-numbers-combinatorics</artifactId>
+ <version>1.1-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-numbers-complex</artifactId>
+ <version>1.1-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-numbers-core</artifactId>
+ <version>1.1-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-numbers-field</artifactId>
+ <version>1.1-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-numbers-fraction</artifactId>
+ <version>1.1-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-numbers-gamma</artifactId>
+ <version>1.1-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-numbers-primes</artifactId>
+ <version>1.1-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-numbers-quaternion</artifactId>
+ <version>1.1-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-numbers-rootfinder</artifactId>
+ <version>1.1-SNAPSHOT</version>
+ </dependency>
+ </dependencies >
+
+ <build>
+ <sourceDirectory>src</sourceDirectory>
+
+ <plugins>
+ <plugin>
+ <!-- This plugin has no skip property - use an invalid phase -->
+ <groupId>org.spdx</groupId>
+ <artifactId>spdx-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>build-spdx</id>
+ <goals>
+ <goal>createSPDX</goal>
+ </goals>
+ <phase>None</phase>
+ </execution>
+ </executions>
+ </plugin>
+
+ <!-- Create aggregate javadoc jar using 'mvn javadoc:aggregate-jar' -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <configuration>
+ <reportOutputDirectory>${project.build.directory}/apidocs</reportOutputDirectory>
+ <includeDependencySources>true</includeDependencySources>
+ <doctitle>Apache Commons Numbers ${project.version}</doctitle>
+ <windowtitle>Apache Commons Numbers ${project.version}</windowtitle>
+ <use>true</use>
+ <version>false</version>
+ <!-- Do not configure groups as modules do not have sub-packages -->
+ </configuration>
+ </plugin>
+
+ </plugins>
+ </build>
+
+ <reporting>
+ <plugins>
+ <!-- Create aggregate javadoc site report -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <configuration>
+ <reportOutputDirectory>${project.build.directory}/apidocs</reportOutputDirectory>
+ <includeDependencySources>true</includeDependencySources>
+ <doctitle>Apache Commons Numbers ${project.version}</doctitle>
+ <windowtitle>Apache Commons Numbers ${project.version}</windowtitle>
+ <use>true</use>
+ <version>false</version>
+ <!-- Do not configure groups as modules do not have sub-packages -->
+ </configuration>
+ <reportSets>
+ <reportSet>
+ <reports>
+ <report>aggregate</report>
+ </reports>
+ </reportSet>
+ </reportSets>
+ </plugin>
+
+ <!-- Create an aggregate report from the *parent* directory using:
+
+ mvn jacoco:report-aggregate
+
+ Requires that tests have already been run with the jacoco user agent.
+ If executed within this directory then jacoco does not collect the
+ executions from the module dependencies. -->
+ <plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <version>${commons.jacoco.version}</version>
+ <configuration>
+ <title>Apache Commons Numbers</title>
+ <footer>Code Coverage Report for Apache Commons Numbers ${project.version}</footer>
+ <includes>
+ <!-- Analyze class files only to exclude shaded agent JAR from report -->
+ <include>**/*.class</include>
+ </includes>
+ </configuration>
+ <reportSets>
+ <reportSet>
+ <reports>
+ <report>report-aggregate</report>
+ </reports>
+ </reportSet>
+ </reportSets>
+ </plugin>
+ </plugins>
+ </reporting>
+
+</project>
diff --git a/commons-numbers-docs/src/site/site.xml b/commons-numbers-docs/src/site/site.xml
new file mode 100644
index 00000000..950b7c75
--- /dev/null
+++ b/commons-numbers-docs/src/site/site.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<project name="Numbers">
+ <bannerRight>
+ <name>Apache Commons Numbers</name>
+ <!-- Use a full URL allows a correct banner for the modules. -->
+ <src>https://commons.apache.org/proper/commons-numbers/images/commons_numbers.small.png</src>
+ <href>https://commons.apache.org/proper/commons-numbers/index.html</href>
+ </bannerRight>
+
+ <body>
+ <menu name="Numbers Documentation">
+ <item name="Overview" href="index.html"/>
+ <item name="Latest API docs"
+ href="apidocs/index.html"/>
+ </menu>
+
+ </body>
+</project>
diff --git a/commons-numbers-docs/src/site/xdoc/index.xml b/commons-numbers-docs/src/site/xdoc/index.xml
new file mode 100644
index 00000000..e1c66165
--- /dev/null
+++ b/commons-numbers-docs/src/site/xdoc/index.xml
@@ -0,0 +1,53 @@
+<?xml version="1.0"?>
+
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<document>
+
+ <properties>
+ <title>Commons Numbers Documentation</title>
+ </properties>
+
+ <body>
+
+ <section name="Apache Commons Numbers: Number types and utilities" href="summary">
+ <p>
+ Apache Commons Numbers provides implementations of number types and utilities.
+ Features include:
+ </p>
+ <ul>
+ <li>angles</li>
+ <li>arrays</li>
+ <li>combinatorics</li>
+ <li>complex numbers</li>
+ <li>core arithmetic</li>
+ <li>fields</li>
+ <li>fractions</li>
+ <li>gamma functions</li>
+ <li>primes</li>
+ <li>quaternions</li>
+ <li>root finding</li>
+ </ul>
+ <p>
+ Browse the <a href="apidocs/index.html">Javadoc</a> for more information.
+ </p>
+ </section>
+
+ </body>
+
+</document>
diff --git a/pom.xml b/pom.xml
index eb6673f8..b5da877c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -118,6 +118,7 @@
<module>commons-numbers-field</module>
<module>commons-numbers-rootfinder</module>
<module>commons-numbers-bom</module>
+ <module>commons-numbers-docs</module>
</modules>
<scm>
@@ -196,12 +197,7 @@
<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
- <artifactId>junit-jupiter-engine</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.junit.jupiter</groupId>
- <artifactId>junit-jupiter-params</artifactId>
+ <artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
diff --git a/src/site/site.xml b/src/site/site.xml
index 02e20845..f444ee45 100644
--- a/src/site/site.xml
+++ b/src/site/site.xml
@@ -38,6 +38,7 @@
<!-- <item name="Wiki" -->
<!-- href="http://wiki.apache.org/commons/Numbers"/> -->
<item name="Developers Guide" href="/developers.html"/>
+ <item name="Javadoc" href="/commons-numbers-docs/apidocs/index.html" />
</menu>
<menu name="User Guide">