Skip to content

Commit

Permalink
Multimodule support
Browse files Browse the repository at this point in the history
  • Loading branch information
C0rWin committed Oct 25, 2016
1 parent 3139232 commit 42530e2
Show file tree
Hide file tree
Showing 193 changed files with 158 additions and 75 deletions.
21 changes: 21 additions & 0 deletions commons-rng-core/clirr-ignored.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?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.
-->

<differences>

</differences>
27 changes: 27 additions & 0 deletions commons-rng-core/findbugs-exclude-filter.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?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.
-->

<!--
This file contains some false positive bugs detected by findbugs. Their
false positive nature has been analyzed individually and they have been
put here to instruct findbugs it must ignore them.
-->
<FindBugsFilter>


</FindBugsFilter>
57 changes: 57 additions & 0 deletions commons-rng-core/pmd-ruleset.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?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.
-->
<ruleset name="commons-rng-customized"
xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd">
<description>
This ruleset checks the code for discouraged programming constructs.
</description>

<rule ref="rulesets/java/basic.xml"/>

<rule ref="rulesets/java/braces.xml"/>

<rule ref="rulesets/java/comments.xml">
<exclude name="CommentSize"/>
</rule>
<rule ref="rulesets/java/comments.xml/CommentSize">
<properties>
<property name="maxLines" value="200"/>
<property name="maxLineLength" value="256"/>
</properties>
</rule>

<rule ref="rulesets/java/empty.xml"/>

<rule ref="rulesets/java/finalizers.xml"/>

<rule ref="rulesets/java/imports.xml"/>

<rule ref="rulesets/java/typeresolution.xml"/>

<rule ref="rulesets/java/clone.xml"/>

<rule ref="rulesets/java/unnecessary.xml">
<!-- We do use extra parentheses there as most people do not recall operator precedence,
this means even if the parentheses are useless for the compiler, we don't consider
them useless for the developer. This is the reason why we disable this rule. -->
<exclude name="UselessParentheses"/>
</rule>

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

<parent>
<groupId>org.apache.commons</groupId>
<artifactId>commons-rng</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>

<groupId>org.apache.commons</groupId>
<artifactId>commons-rng-core</artifactId>
<version>1.0-SNAPSHOT</version>
<name>Apache Commons RNG Core</name>
<url>http://maven.apache.org</url>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<inceptionYear>2016</inceptionYear>
<description>The Apache Commons RNG Core module includes implementations of random numbers generators.</description>

<scm>
<connection>scm:git:http://git-wip-us.apache.org/repos/asf/commons-rng.git</connection>
<developerConnection>scm:git:https://git-wip-us.apache.org/repos/asf/commons-rng.git</developerConnection>
<url>https://git-wip-us.apache.org/repos/asf?p=commons-rng.git</url>
</scm>

</project>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
96 changes: 21 additions & 75 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0"?>
<?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
Expand All @@ -14,10 +14,7 @@
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">
--><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">
<parent>
<groupId>org.apache.commons</groupId>
<artifactId>commons-parent</artifactId>
Expand All @@ -26,12 +23,12 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.commons</groupId>
<artifactId>commons-rng</artifactId>
<packaging>jar</packaging>
<packaging>pom</packaging>
<version>1.0-SNAPSHOT</version>
<name>Apache Commons RNG</name>
<name>Apache Commons Parent RNG</name>

<inceptionYear>2016</inceptionYear>
<description>The Apache Commons RNG project provides implementations of random numbers generators.</description>
<description>The Apache Commons RNG parent project.</description>

<url>http://commons.apache.org/proper/commons-rng/</url>

Expand Down Expand Up @@ -220,68 +217,12 @@
</configuration>
</plugin>

<!-- <plugin> -->
<!-- <artifactId>maven-antrun-plugin</artifactId> -->
<!-- <executions> -->
<!-- <execution> -->
<!-- <phase>package</phase> -->
<!-- <configuration> -->
<!-- <target> -->
<!-- <jar destfile="${project.build.directory}/${project.artifactId}-${project.version}-tools.jar"> -->
<!-- <metainf dir="${basedir}" includes="NOTICE.txt,LICENSE.txt" /> -->
<!-- <manifest> -->
<!-- <attribute name="Specification-Title" value="${project.name} Tools" /> -->
<!-- <attribute name="Implementation-Title" value="${project.name} Tools" /> -->
<!-- <attribute name="Implementation-Vendor" value="${project.organization.name}" /> -->
<!-- <attribute name="Implementation-Version" value="${project.version}" /> -->
<!-- <attribute name="Implementation-Vendor-Id" value="org.apache" /> -->
<!-- <attribute name="Implementation-Build" value="${implementation.build}"/> -->
<!-- <attribute name="X-Compile-Source-JDK" value="${maven.compiler.source}" /> -->
<!-- <attribute name="X-Compile-Target-JDK" value="${maven.compiler.target}" /> -->
<!-- </manifest> -->
<!-- <fileset dir="${project.build.directory}/test-classes" -->
<!-- includes="org/apache/commons/rng/PerfTestUtils*" /> -->
<!-- </jar> -->
<!-- </target> -->
<!-- </configuration> -->
<!-- <goals> -->
<!-- <goal>run</goal> -->
<!-- </goals> -->
<!-- </execution> -->
<!-- </executions> -->
<!-- </plugin> -->
<!-- Attaches the commons-rng tools JAR to the Maven lifecycle
to ensure they will be signed and deployed as normal -->
<!-- <plugin> -->
<!-- <groupId>org.codehaus.mojo</groupId> -->
<!-- <artifactId>build-helper-maven-plugin</artifactId> -->
<!-- <version>1.7</version> -->
<!-- <executions> -->
<!-- <execution> -->
<!-- <id>attach-artifacts</id> -->
<!-- <phase>package</phase> -->
<!-- <goals> -->
<!-- <goal>attach-artifact</goal> -->
<!-- </goals> -->
<!-- <configuration> -->
<!-- <artifacts> -->
<!-- <artifact> -->
<!-- <file>${project.build.directory}/${project.artifactId}-${project.version}-tools.jar</file> -->
<!-- <type>jar</type> -->
<!-- <classifier>tools</classifier> -->
<!-- </artifact> -->
<!-- </artifacts> -->
<!-- </configuration> -->
<!-- </execution> -->
<!-- </executions> -->
<!-- </plugin> -->

<!-- MathJax -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<additionalparam>-header &apos;&lt;script type=&quot;text/javascript&quot; src=&quot;http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML&quot;&gt;&lt;/script&gt;&apos;</additionalparam>
<additionalparam>-header '&lt;script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"&gt;&lt;/script&gt;'</additionalparam>
</configuration>
</plugin>
<plugin>
Expand All @@ -306,8 +247,8 @@
<version>${rng.checkstyle.version}</version>
<configuration>
<includeTestSourceDirectory>false</includeTestSourceDirectory>
<configLocation>checkstyle.xml</configLocation>
<headerLocation>license-header.txt</headerLocation>
<configLocation>/checkstyle.xml</configLocation>
<headerLocation>/license-header.txt</headerLocation>
<logViolationsToConsole>false</logViolationsToConsole>
<failOnViolation>false</failOnViolation>
<resourceExcludes>NOTICE.txt,LICENSE.txt</resourceExcludes>
Expand Down Expand Up @@ -383,10 +324,10 @@
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${rng.checkstyle.version}</version>
<configuration>
<configLocation>checkstyle.xml</configLocation>
<configLocation>/checkstyle.xml</configLocation>
<enableRulesSummary>false</enableRulesSummary>
<includeResources>false</includeResources>
<headerLocation>${basedir}/license-header.txt</headerLocation>
<headerLocation>/license-header.txt</headerLocation>
</configuration>
<reportSets>
<reportSet>
Expand Down Expand Up @@ -429,7 +370,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<additionalparam>-Xdoclint:none -header &apos;&lt;script type=&quot;text/javascript&quot; src=&quot;http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML&quot;&gt;&lt;/script&gt;&apos;</additionalparam>
<additionalparam>-Xdoclint:none -header '&lt;script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"&gt;&lt;/script&gt;'</additionalparam>
</configuration>
</plugin>
</plugins>
Expand Down Expand Up @@ -486,18 +427,18 @@
<configuration>
<tasks>
<exec executable="svn">
<arg line="checkout --depth immediates ${commons.scmPubUrl} ${commons.scmPubCheckoutDirectory}" />
<arg line="checkout --depth immediates ${commons.scmPubUrl} ${commons.scmPubCheckoutDirectory}"/>
</exec>

<exec executable="svn">
<arg line="update --set-depth exclude ${commons.scmPubCheckoutDirectory}/javadocs" />
<arg line="update --set-depth exclude ${commons.scmPubCheckoutDirectory}/javadocs"/>
</exec>

<pathconvert pathsep=" " property="dirs">
<dirset dir="${commons.scmPubCheckoutDirectory}" includes="*" />
<dirset dir="${commons.scmPubCheckoutDirectory}" includes="*"/>
</pathconvert>
<exec executable="svn">
<arg line="update --set-depth infinity ${dirs}" />
<arg line="update --set-depth infinity ${dirs}"/>
</exec>
</tasks>
</configuration>
Expand Down Expand Up @@ -667,4 +608,9 @@
</build>
</profile>
</profiles>
</project>

<modules>
<module>commons-rng-core</module>
</modules>

</project>

0 comments on commit 42530e2

Please sign in to comment.