Skip to content

Commit 4ad6471

Browse files
committed
more easy setup
1 parent 5bdf2c7 commit 4ad6471

File tree

4 files changed

+50
-107
lines changed

4 files changed

+50
-107
lines changed

chronicle-queue/pom.xml

+23-68
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,29 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0"
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5-
<modelVersion>4.0.0</modelVersion>
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
66

7-
<parent>
8-
<groupId>com.open-elements.logging</groupId>
9-
<artifactId>java-logger-benchmark</artifactId>
10-
<version>1.0-SNAPSHOT</version>
11-
</parent>
12-
13-
<artifactId>chronicle-queue</artifactId>
7+
<parent>
8+
<groupId>com.open-elements.logging</groupId>
9+
<artifactId>java-logger-benchmark</artifactId>
1410
<version>1.0-SNAPSHOT</version>
15-
16-
<properties>
17-
<!-- Required JVM args for Java 17+ -->
18-
<jvm.requiredArgs>
19-
--add-exports=java.base/jdk.internal.misc=ALL-UNNAMED
20-
--add-exports=java.base/jdk.internal.ref=ALL-UNNAMED
21-
--add-exports=java.base/jdk.internal.util=ALL-UNNAMED
22-
--add-exports=java.base/sun.nio.ch=ALL-UNNAMED
23-
--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
24-
--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
25-
--add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED
26-
--add-opens=java.base/java.io=ALL-UNNAMED
27-
--add-opens=java.base/java.lang=ALL-UNNAMED
28-
--add-opens=java.base/java.lang.reflect=ALL-UNNAMED
29-
--add-opens=java.base/java.util=ALL-UNNAMED
30-
--add-opens=jdk.compiler/com.sun.tools.javac=ALL-UNNAMED
31-
</jvm.requiredArgs>
32-
</properties>
33-
34-
<dependencies>
35-
<dependency>
36-
<groupId>${groupId}</groupId>
37-
<artifactId>logger-api</artifactId>
38-
<version>${version}</version>
39-
</dependency>
40-
<dependency>
41-
<groupId>net.openhft</groupId>
42-
<artifactId>chronicle-queue</artifactId>
43-
<version>5.24ea25</version>
44-
</dependency>
45-
46-
<dependency>
47-
<groupId>org.slf4j</groupId>
48-
<artifactId>slf4j-simple</artifactId>
49-
<version>2.0.7</version>
50-
<scope>test</scope>
51-
</dependency>
52-
53-
<dependency>
54-
<groupId>org.junit.jupiter</groupId>
55-
<artifactId>junit-jupiter</artifactId>
56-
<version>RELEASE</version>
57-
<scope>test</scope>
58-
</dependency>
59-
</dependencies>
60-
61-
<build>
62-
<plugins>
63-
<plugin>
64-
<groupId>org.apache.maven.plugins</groupId>
65-
<artifactId>maven-surefire-plugin</artifactId>
66-
<version>3.1.2</version>
67-
<configuration>
68-
<argLine>${jvm.requiredArgs}</argLine>
69-
</configuration>
70-
</plugin>
71-
</plugins>
72-
</build>
11+
</parent>
12+
13+
<artifactId>chronicle-queue</artifactId>
14+
<version>1.0-SNAPSHOT</version>
15+
16+
<dependencies>
17+
<dependency>
18+
<groupId>${groupId}</groupId>
19+
<artifactId>logger-api</artifactId>
20+
<version>${version}</version>
21+
</dependency>
22+
<dependency>
23+
<groupId>net.openhft</groupId>
24+
<artifactId>chronicle-queue</artifactId>
25+
<version>5.24ea25</version>
26+
</dependency>
27+
</dependencies>
7328

7429
</project>

jmh-benchmarks/pom.xml

+2-39
Original file line numberDiff line numberDiff line change
@@ -57,48 +57,11 @@
5757
<phase>test</phase>
5858
</execution>
5959
</executions>
60-
</plugin>
61-
62-
<plugin>
63-
<groupId>org.apache.maven.plugins</groupId>
64-
<artifactId>maven-compiler-plugin</artifactId>
65-
<version>3.8.1</version>
6660
<configuration>
67-
<source>17</source>
68-
<target>17</target>
69-
<annotationProcessorPaths>
70-
<path>
71-
<groupId>org.openjdk.jmh</groupId>
72-
<artifactId>jmh-generator-annprocess</artifactId>
73-
<version>1.37</version>
74-
</path>
75-
</annotationProcessorPaths>
61+
<resultFormat>text</resultFormat>
62+
<resultsFile>target/jmh.txt</resultsFile>
7663
</configuration>
7764
</plugin>
78-
79-
<plugin>
80-
<groupId>org.apache.maven.plugins</groupId>
81-
<artifactId>maven-shade-plugin</artifactId>
82-
<version>3.5.0</version>
83-
<executions>
84-
<execution>
85-
<phase>package</phase>
86-
<goals>
87-
<goal>shade</goal>
88-
</goals>
89-
<configuration>
90-
<finalName>benchmarks</finalName>
91-
<transformers>
92-
<transformer
93-
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
94-
<mainClass>org.openjdk.jmh.Main</mainClass>
95-
</transformer>
96-
</transformers>
97-
</configuration>
98-
</execution>
99-
</executions>
100-
</plugin>
10165
</plugins>
10266
</build>
103-
10467
</project>

pom.xml

+21
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,25 @@
2424
<module>jmh-benchmarks</module>
2525
</modules>
2626

27+
<build>
28+
<plugins>
29+
<plugin>
30+
<groupId>org.apache.maven.plugins</groupId>
31+
<artifactId>maven-compiler-plugin</artifactId>
32+
<version>3.8.1</version>
33+
<configuration>
34+
<source>17</source>
35+
<target>17</target>
36+
<annotationProcessorPaths>
37+
<path>
38+
<groupId>org.openjdk.jmh</groupId>
39+
<artifactId>jmh-generator-annprocess</artifactId>
40+
<version>1.37</version>
41+
</path>
42+
</annotationProcessorPaths>
43+
</configuration>
44+
</plugin>
45+
</plugins>
46+
</build>
47+
2748
</project>

slf4j-simple-logger/pom.xml

+4
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@
5353
<phase>test</phase>
5454
</execution>
5555
</executions>
56+
<configuration>
57+
<resultFormat>text</resultFormat>
58+
<resultsFile>target/jmh.txt</resultsFile>
59+
</configuration>
5660
</plugin>
5761
</plugins>
5862
</build>

0 commit comments

Comments
 (0)