Skip to content

Commit eb19543

Browse files
authored
Merge pull request #297 from hadryyassine/yh/fix_jmh_benchmark_demo
fix (jmh) : Explicitly configure JMH annotation processor in binary-tree benchmark
2 parents 9bb3aad + e1adeed commit eb19543

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

jmh/benchmark-binary-tree/pom.xml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,6 @@ THE POSSIBILITY OF SUCH DAMAGE.
6666
<artifactId>jmh-core</artifactId>
6767
<version>${jmh.version}</version>
6868
</dependency>
69-
<dependency>
70-
<groupId>org.openjdk.jmh</groupId>
71-
<artifactId>jmh-generator-annprocess</artifactId>
72-
<version>${jmh.version}</version>
73-
<scope>provided</scope>
74-
</dependency>
7569
</dependencies>
7670

7771
<build>
@@ -84,6 +78,14 @@ THE POSSIBILITY OF SUCH DAMAGE.
8478
<compilerVersion>${javac.target}</compilerVersion>
8579
<source>${javac.target}</source>
8680
<target>${javac.target}</target>
81+
<annotationProcessorPaths>
82+
<path>
83+
<groupId>org.openjdk.jmh</groupId>
84+
<artifactId>jmh-generator-annprocess</artifactId>
85+
<version>${jmh.version}</version>
86+
</path>
87+
</annotationProcessorPaths>
88+
<fork>true</fork>
8789
</configuration>
8890
</plugin>
8991
<plugin>

0 commit comments

Comments
 (0)