Skip to content

Commit

Permalink
Splits project into multiple modules
Browse files Browse the repository at this point in the history
  • Loading branch information
jqno committed Jan 25, 2022
1 parent 13b4a3d commit 3c170a3
Show file tree
Hide file tree
Showing 353 changed files with 1,125 additions and 411 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
cache-id: "jdk8"
java: 8
dist: temurin
flags: "-DdisableStaticAnalysis"
flags: ""
- title: "Supported JDK 11"
continue-on-error: false
cache-id: "jdk11"
Expand Down
File renamed without changes.
43 changes: 43 additions & 0 deletions equalsverifier-11/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?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>nl.jqno.equalsverifier</groupId>
<artifactId>equalsverifier-parent</artifactId>
<version>3.8.4-SNAPSHOT</version>
</parent>
<packaging>jar</packaging>

<artifactId>equalsverifier-11</artifactId>
<name>EqualsVerifier | JDK 11</name>

<properties>
<maven.compiler.release>11</maven.compiler.release>
</properties>

<dependencies>
<dependency>
<groupId>nl.jqno.equalsverifier</groupId>
<artifactId>equalsverifier-test-plumbing</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.8.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-base</artifactId>
<version>17.0.1</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>

37 changes: 37 additions & 0 deletions equalsverifier-16/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?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>nl.jqno.equalsverifier</groupId>
<artifactId>equalsverifier-parent</artifactId>
<version>3.8.4-SNAPSHOT</version>
</parent>
<packaging>jar</packaging>

<artifactId>equalsverifier-16</artifactId>
<name>EqualsVerifier | JDK 16</name>

<properties>
<maven.compiler.release>16</maven.compiler.release>
</properties>

<dependencies>
<dependency>
<groupId>nl.jqno.equalsverifier</groupId>
<artifactId>equalsverifier-test-plumbing</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.8.2</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>

37 changes: 37 additions & 0 deletions equalsverifier-17/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?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>nl.jqno.equalsverifier</groupId>
<artifactId>equalsverifier-parent</artifactId>
<version>3.8.4-SNAPSHOT</version>
</parent>
<packaging>jar</packaging>

<artifactId>equalsverifier-17</artifactId>
<name>EqualsVerifier | JDK 17</name>

<properties>
<maven.compiler.release>17</maven.compiler.release>
</properties>

<dependencies>
<dependency>
<groupId>nl.jqno.equalsverifier</groupId>
<artifactId>equalsverifier-test-plumbing</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.8.2</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
import java.util.Objects;

public class SealedClasses {
public static sealed abstract class SealedParent permits SealedChild {

public abstract static sealed class SealedParent permits SealedChild {

private final int i;

public SealedParent(int i) {
Expand All @@ -19,10 +21,10 @@ public boolean equals(Object obj) {
public int hashCode() {
return Objects.hash(i);
}

}

public static final class SealedChild extends SealedParent {

private final int j;

public SealedChild(int i, int j) {
Expand Down
137 changes: 137 additions & 0 deletions equalsverifier-aggregator/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
<?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>nl.jqno.equalsverifier</groupId>
<artifactId>equalsverifier-parent</artifactId>
<version>3.8.4-SNAPSHOT</version>
</parent>

<artifactId>equalsverifier-aggregator</artifactId>
<name>EqualsVerifier | aggregator</name>

<profiles>
<profile>
<id>static-analysis</id>
<activation>
<property>
<name>!disableStaticAnalysis</name>
</property>
</activation>

<build>
<plugins>
<plugin>
<!--
Unfortunately AntRun plugin is still needed because Maven plugin doesn't support
`check` goal over multiple modules. See also:
https://groups.google.com/g/jacoco/c/V58UApeNA0s
-->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.0.0</version>
<dependencies>
<dependency>
<groupId>org.jacoco</groupId>
<artifactId>org.jacoco.ant</artifactId>
<version>0.8.7</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>jacoco-check-and-report</id>
<phase>verify</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<taskdef name="report" classname="org.jacoco.ant.ReportTask" classpathref="maven.plugin.classpath" />
<report>
<executiondata>
<fileset dir="${project.basedir}/..">
<include name="*/target/jacoco.exec"/>
</fileset>
</executiondata>
<structure name="EqualsVerifier: internal coverage">
<classfiles>
<fileset dir="${project.basedir}/..">
<include name="*/target/classes/**/*.class"/>
</fileset>
</classfiles>
<sourcefiles encoding="UTF-8">
<fileset dir="${project.basedir}/../equalsverifier-core/src/main/java"/>
</sourcefiles>
</structure>
<check failonviolation="true" violationsproperty="violation">
<rule element="BUNDLE">
<limit counter="INSTRUCTION" value="COVEREDRATIO" minimum="${analysis.jacoco.threshold}" />
</rule>
</check>
<html destdir="${project.build.directory}/jacoco-internal" />
</report>
<report>
<executiondata>
<fileset dir="${project.basedir}/..">
<include name="*/target/jacoco.exec"/>
</fileset>
</executiondata>
<structure name="EqualsVerifier: external coverage">
<classfiles>
<fileset dir="${project.basedir}/..">
<include name="*/target/test-classes/nl/jqno/equalsverifier/coverage/*.class"/>
</fileset>
</classfiles>
<sourcefiles encoding="UTF-8">
<fileset dir="${project.basedir}/../equalsverifier-test-core/src/test/java"/>
</sourcefiles>
</structure>
<check failonviolation="true" violationsproperty="violation">
<rule element="BUNDLE">
<limit counter="INSTRUCTION" value="COVEREDRATIO" minimum="1.00" />
</rule>
</check>
<html destdir="${project.build.directory}/jacoco-external" />
</report>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>nl.jqno.equalsverifier</groupId>
<artifactId>equalsverifier-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>nl.jqno.equalsverifier</groupId>
<artifactId>equalsverifier-test-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>nl.jqno.equalsverifier</groupId>
<artifactId>equalsverifier-11</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>nl.jqno.equalsverifier</groupId>
<artifactId>equalsverifier-16</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>nl.jqno.equalsverifier</groupId>
<artifactId>equalsverifier-17</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</profile>
</profiles>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<component
xmlns="http://maven.apache.org/ASSEMBLY-COMPONENT/2.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY-COMPONENT/2.1.0 http://maven.apache.org/xsd/assembly-component-2.1.0.xsd">

<moduleSets>
<moduleSet>
<useAllReactorProjects>true</useAllReactorProjects>
<includes>
<include>nl.jqno.equalsverifier:equalsverifier-core</include>
</includes>
<binaries>
<unpack>true</unpack>
<includeDependencies>false</includeDependencies>
<unpackOptions>
<excludes>
<exclude>/META-INF/**</exclude>
</excludes>
</unpackOptions>
</binaries>
</moduleSet>
<moduleSet>
<useAllReactorProjects>true</useAllReactorProjects>
<includes>
<include>nl.jqno.equalsverifier:equalsverifier-16</include>
</includes>
<binaries>
<outputDirectory>META-INF/versions/16</outputDirectory>
<unpack>true</unpack>
<includeDependencies>false</includeDependencies>
<unpackOptions>
<excludes>
<exclude>/META-INF/**</exclude>
</excludes>
</unpackOptions>
</binaries>
</moduleSet>
<moduleSet>
<useAllReactorProjects>true</useAllReactorProjects>
<includes>
<include>nl.jqno.equalsverifier:equalsverifier-17</include>
</includes>
<binaries>
<outputDirectory>META-INF/versions/17</outputDirectory>
<unpack>true</unpack>
<includeDependencies>false</includeDependencies>
<unpackOptions>
<excludes>
<exclude>/META-INF/**</exclude>
</excludes>
</unpackOptions>
</binaries>
</moduleSet>
</moduleSets>
</component>

Loading

0 comments on commit 3c170a3

Please sign in to comment.