Refactor to move microbenchmark to a separate module
diff --git a/bval-jsr/pom.xml b/bval-jsr/pom.xml
index 7c9cb1d..06bde7c 100644
--- a/bval-jsr/pom.xml
+++ b/bval-jsr/pom.xml
@@ -269,31 +269,6 @@
<scope>test</scope>
</dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-validator</artifactId>
- <version>6.1.5.Final</version>
- <scope>test</scope>
- </dependency>
-
- <dependency>
- <groupId>org.openjdk.jmh</groupId>
- <artifactId>jmh-core</artifactId>
- <version>1.25.2</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.openjdk.jmh</groupId>
- <artifactId>jmh-generator-annprocess</artifactId>
- <version>1.25.2</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>com.github.biboudis</groupId>
- <artifactId>jmh-profilers</artifactId>
- <version>0.1.4</version>
- <scope>test</scope>
- </dependency>
</dependencies>
<build>
diff --git a/bval-perf/pom.xml b/bval-perf/pom.xml
new file mode 100644
index 0000000..c5ab7ce
--- /dev/null
+++ b/bval-perf/pom.xml
@@ -0,0 +1,98 @@
+<?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.
+-->
+<!--
+ Maven release plugin requires the project tag to be on a single line.
+-->
+<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.bval</groupId>
+ <artifactId>bval-parent</artifactId>
+ <version>2.0.5-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>bval-perf</artifactId>
+ <name>Apache BVal :: bval-perf</name>
+ <packaging>jar</packaging>
+
+ <description>Some small micro benchmarks</description>
+
+ <dependencies>
+
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>bval-jsr</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ <!-- Testing dependencies -->
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>bval-jsr</artifactId>
+ <version>${project.version}</version>
+ <classifier>tests</classifier>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-validator</artifactId>
+ <version>6.1.5.Final</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.openjdk.jmh</groupId>
+ <artifactId>jmh-core</artifactId>
+ <version>1.25.2</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.openjdk.jmh</groupId>
+ <artifactId>jmh-generator-annprocess</artifactId>
+ <version>1.25.2</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.github.biboudis</groupId>
+ <artifactId>jmh-profilers</artifactId>
+ <version>0.1.4</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>9</source>
+ <target>9</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/bval-jsr/src/test/java/org/apache/bval/jsr/Jsr303Benchmark.java b/bval-perf/src/test/java/org/apache/bval/jsr/Jsr303Benchmark.java
similarity index 99%
rename from bval-jsr/src/test/java/org/apache/bval/jsr/Jsr303Benchmark.java
rename to bval-perf/src/test/java/org/apache/bval/jsr/Jsr303Benchmark.java
index ec397bd..d4acb4b 100644
--- a/bval-jsr/src/test/java/org/apache/bval/jsr/Jsr303Benchmark.java
+++ b/bval-perf/src/test/java/org/apache/bval/jsr/Jsr303Benchmark.java
@@ -27,7 +27,6 @@
import org.openjdk.jmh.annotations.Scope;
import org.openjdk.jmh.annotations.State;
import org.openjdk.jmh.profile.JavaFlightRecorderProfiler;
-import org.openjdk.jmh.profile.Profiler;
import org.openjdk.jmh.runner.Runner;
import org.openjdk.jmh.runner.RunnerException;
import org.openjdk.jmh.runner.options.Options;
diff --git a/pom.xml b/pom.xml
index 643f1e4..60437ab 100644
--- a/pom.xml
+++ b/pom.xml
@@ -756,6 +756,7 @@
<module>bval-extras</module>
<module>bval-tck</module>
<module>bundle</module>
+ <module>bval-perf</module>
</modules>
</project>