You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by er...@apache.org on 2019/06/16 21:37:39 UTC

[commons-math] branch master updated (4b0f52c -> 418f2eb)

This is an automated email from the ASF dual-hosted git repository.

erans pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git.


    from 4b0f52c  Use "BrentSolver" implementation from "Commons Numbers".
     new df99665  Licence header.
     new 418f2eb  Upgrade to CP 48.

The 2 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:
 pom.xml                                            | 88 ++++++++++++++++------
 .../fitting/leastsquares/BevingtonProblem.java     | 16 ++++
 2 files changed, 80 insertions(+), 24 deletions(-)


[commons-math] 02/02: Upgrade to CP 48.

Posted by er...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

erans pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit 418f2eb7f469c80b0e125377b1669f9be068f6ff
Author: Gilles Sadowski <gi...@harfang.homelinux.org>
AuthorDate: Sun Jun 16 23:35:19 2019 +0200

    Upgrade to CP 48.
    
    Outdated profile removed: New version will target Java 8 (or later).
    Jacoco configuration removed (inherited from CP).
---
 pom.xml | 88 +++++++++++++++++++++++++++++++++++++++++++++++------------------
 1 file changed, 64 insertions(+), 24 deletions(-)

diff --git a/pom.xml b/pom.xml
index e89f2ca..4043875 100644
--- a/pom.xml
+++ b/pom.xml
@@ -19,7 +19,7 @@
   <parent>
     <groupId>org.apache.commons</groupId>
     <artifactId>commons-parent</artifactId>
-    <version>47</version>
+    <version>48</version>
   </parent>
   <modelVersion>4.0.0</modelVersion>
   <groupId>org.apache.commons</groupId>
@@ -492,16 +492,6 @@
     <math.clirr.version>2.8</math.clirr.version>
     <math.mathjax.version>2.7.2</math.mathjax.version>
 
-    <!-- Temporary fix to support Java 8 -->
-    <commons.jacoco.version>0.8.0</commons.jacoco.version>
-    <commons.jacoco.classRatio>0.96</commons.jacoco.classRatio>
-    <commons.jacoco.instructionRatio>0.8</commons.jacoco.instructionRatio>
-    <commons.jacoco.methodRatio>0.8</commons.jacoco.methodRatio>
-    <commons.jacoco.branchRatio>0.8</commons.jacoco.branchRatio>
-    <commons.jacoco.complexityRatio>0.8</commons.jacoco.complexityRatio>
-    <commons.jacoco.lineRatio>0.85</commons.jacoco.lineRatio>
-    <commons.jacoco.haltOnFailure>false</commons.jacoco.haltOnFailure>
-
     <commons.site.path>math</commons.site.path>
     <commons.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-math</commons.scmPubUrl>
     <commons.scmPubCheckoutDirectory>site-content</commons.scmPubCheckoutDirectory>
@@ -651,10 +641,63 @@
         <artifactId>maven-javadoc-plugin</artifactId>
         <configuration>
           <!-- Enable MathJax -->
-          <additionalOptions>${doclint.javadoc.qualifier} ${allowscript.javadoc.qualifier} -header '&lt;script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/${math.mathjax.version}/MathJax.js?config=TeX-AMS-MML_HTMLorMML"&gt;&lt;/script&gt;'</additionalOptions>
+          <additionalOptions>-Xdoclint:all --allow-script-in-comments -header '&lt;script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/${math.mathjax.version}/MathJax.js?config=TeX-AMS-MML_HTMLorMML"&gt;&lt;/script&gt;'</additionalOptions>
           <!-- <aggregate>true</aggregate> -->
         </configuration>
       </plugin>
+      <plugin>
+        <groupId>org.apache.rat</groupId>
+        <artifactId>apache-rat-plugin</artifactId>
+        <version>${commons.rat.version}</version>
+        <configuration>
+        <!--
+          Needed for command-line access, e.g mvn apache-rat:rat and mvn apache-rat:check
+          Below should agree with config in <reporting> section, so the site
+          gets consistent output.
+        -->
+           <excludes>
+
+            <!-- MANIFEST files cannot have any comments, so we can't put license header -->
+            <exclude>src/test/maxima/special/RealFunctionValidation/MANIFEST.txt</exclude>
+
+            <!-- the following are test data files with specific syntax that cannot include
+                 Apache header (and the contained data is public, it is not owned by Apache) -->
+            <exclude>src/test/resources/org/apache/commons/math4/distribution/testData.txt</exclude>
+            <exclude>src/test/resources/org/apache/commons/math4/random/emptyFile.txt</exclude>
+            <exclude>src/test/resources/org/apache/commons/math4/stat/data/PiDigits.txt</exclude>
+            <exclude>src/test/resources/org/apache/commons/math4/stat/data/NumAcc3.txt</exclude>
+            <exclude>src/test/resources/org/apache/commons/math4/stat/data/Lew.txt</exclude>
+            <exclude>src/test/resources/org/apache/commons/math4/stat/data/NumAcc2.txt</exclude>
+            <exclude>src/test/resources/org/apache/commons/math4/stat/data/NumAcc1.txt</exclude>
+            <exclude>src/test/resources/org/apache/commons/math4/stat/data/Lottery.txt</exclude>
+            <exclude>src/test/resources/org/apache/commons/math4/stat/data/NumAcc4.txt</exclude>
+            <exclude>src/test/resources/org/apache/commons/math4/stat/data/Michelso.txt</exclude>
+            <exclude>src/test/resources/org/apache/commons/math4/stat/data/Mavro.txt</exclude>
+            <exclude>src/test/resources/org/apache/commons/math4/geometry/euclidean/threed/issue-1211.bsp</exclude>
+            <exclude>src/test/resources/org/apache/commons/math4/geometry/euclidean/threed/pentomino-N-bad-orientation.ply</exclude>
+            <exclude>src/test/resources/org/apache/commons/math4/geometry/euclidean/threed/pentomino-N-hole.ply</exclude>
+            <exclude>src/test/resources/org/apache/commons/math4/geometry/euclidean/threed/pentomino-N-out-of-plane.ply</exclude>
+            <exclude>src/test/resources/org/apache/commons/math4/geometry/euclidean/threed/pentomino-N-too-close.ply</exclude>
+            <exclude>src/test/resources/org/apache/commons/math4/geometry/euclidean/threed/pentomino-N.ply</exclude>
+
+            <!-- direction numbers for Sobol generation from Frances Y. Kuo and Stephen Joe,
+                 available under a BSD-style license (see LICENSE.txt) -->
+            <exclude>src/main/resources/assets/org/apache/commons/math4/random/new-joe-kuo-6.21201</exclude>
+
+            <!-- text file explaining reference to a public domain image -->
+            <exclude>src/userguide/resources/references.txt</exclude>
+
+            <!-- version 0.8 of apache-rat-plugin does not exclude properly
+                 some default development tools files (see RAT-126) -->
+            <exclude>bin/**</exclude>
+            <exclude>.gitignore</exclude>
+            <exclude>.git/**</exclude>
+            <exclude>.checkstyle</exclude>
+            <exclude>.ekstazi/**</exclude>
+
+          </excludes>
+        </configuration>
+      </plugin>
     </plugins>
   </build>
 
@@ -695,14 +738,19 @@
         <artifactId>apache-rat-plugin</artifactId>
         <version>${commons.rat.version}</version>
         <configuration>
-          <excludes>
+        <!--
+          Needed for command-line access, e.g mvn apache-rat:rat and mvn apache-rat:check
+          Below should agree with config in <build> section, so the site
+          gets consistent output.
+        -->
+           <excludes>
 
             <!-- MANIFEST files cannot have any comments, so we can't put license header -->
             <exclude>src/test/maxima/special/RealFunctionValidation/MANIFEST.txt</exclude>
 
             <!-- the following are test data files with specific syntax that cannot include
                  Apache header (and the contained data is public, it is not owned by Apache) -->
-            <exclude>src/test/resources/org/apache/commons/math4/random/testData.txt</exclude>
+            <exclude>src/test/resources/org/apache/commons/math4/distribution/testData.txt</exclude>
             <exclude>src/test/resources/org/apache/commons/math4/random/emptyFile.txt</exclude>
             <exclude>src/test/resources/org/apache/commons/math4/stat/data/PiDigits.txt</exclude>
             <exclude>src/test/resources/org/apache/commons/math4/stat/data/NumAcc3.txt</exclude>
@@ -722,7 +770,7 @@
 
             <!-- direction numbers for Sobol generation from Frances Y. Kuo and Stephen Joe,
                  available under a BSD-style license (see LICENSE.txt) -->
-            <exclude>src/main/resources/assets/org/apache/commons/math4/random/new-joe-kuo-6.1000</exclude>
+            <exclude>src/main/resources/assets/org/apache/commons/math4/random/new-joe-kuo-6.21201</exclude>
 
             <!-- text file explaining reference to a public domain image -->
             <exclude>src/userguide/resources/references.txt</exclude>
@@ -803,7 +851,7 @@
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-javadoc-plugin</artifactId>
         <configuration>
-          <additionalOptions>${mathjax.javadoc.qualifier} -header '&lt;script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"&gt;&lt;/script&gt;'</additionalOptions>
+          <additionalOptions>-Xdoclint:all --allow-script-in-comments -header '&lt;script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/${math.mathjax.version}/MathJax.js?config=TeX-AMS-MML_HTMLorMML"&gt;&lt;/script&gt;'</additionalOptions>
         </configuration>
       </plugin>
     </plugins>
@@ -1000,13 +1048,5 @@
         </plugins>
       </build>
     </profile>
-    <profile>
-      <id>mathjax-java8</id>
-      <activation><jdk>[1.8,)</jdk></activation>
-      <properties>
-        <!-- MathJax requires additional Javadoc qualifier for Java8+ -->
-        <allowscript.javadoc.qualifier>--allow-script-in-comments</allowscript.javadoc.qualifier>
-      </properties>
-    </profile>
   </profiles>
 </project>


[commons-math] 01/02: Licence header.

Posted by er...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

erans pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit df996651078f32869fe5fa8efac87a32561a0867
Author: Gilles Sadowski <gi...@harfang.homelinux.org>
AuthorDate: Sun Jun 16 23:34:01 2019 +0200

    Licence header.
---
 .../math4/fitting/leastsquares/BevingtonProblem.java     | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/src/test/java/org/apache/commons/math4/fitting/leastsquares/BevingtonProblem.java b/src/test/java/org/apache/commons/math4/fitting/leastsquares/BevingtonProblem.java
index f14c428..b897365 100644
--- a/src/test/java/org/apache/commons/math4/fitting/leastsquares/BevingtonProblem.java
+++ b/src/test/java/org/apache/commons/math4/fitting/leastsquares/BevingtonProblem.java
@@ -1,3 +1,19 @@
+/*
+ * 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.
+ */
 package org.apache.commons.math4.fitting.leastsquares;
 
 import org.apache.commons.math4.analysis.MultivariateMatrixFunction;