Skip to content

Commit ec4fb25

Browse files
committed
feat: change JMH fork group ID to io.codspeed.jmh
Prepares for MavenCentral publishing by using a unique group ID (`io.codspeed.jmh` instead of `org.openjdk.jmh`) and dropping the `-codspeed.N` version suffix. Refs: COD-2400
1 parent eea523f commit ec4fb25

25 files changed

Lines changed: 80 additions & 72 deletions

File tree

AGENTS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ pre-commit run --all-files
7070

7171
### Publishing JMH Fork
7272

73-
The JMH fork uses versioning scheme `1.37.0-codspeed.N`. When updating versions:
73+
The JMH fork is published under group ID `io.codspeed.jmh`. When updating versions:
7474

7575
```bash
76-
cd jmh-fork && mvn versions:set -DnewVersion=1.37.0-codspeed.2
76+
cd jmh-fork && mvn versions:set -DnewVersion=1.37.1
7777
```
7878

7979
Then update the version reference in root `build.gradle.kts`.
@@ -111,7 +111,7 @@ The repository combines Maven and Gradle via Gradle's composite build feature:
111111
## Modifying JMH Fork
112112

113113
1. Make changes in `jmh-fork/`
114-
2. Bump version: `cd jmh-fork && mvn versions:set -DnewVersion=X.Y.Z-codspeed.N`
114+
2. Bump version: `cd jmh-fork && mvn versions:set -DnewVersion=X.Y.Z`
115115
3. Publish locally: `cd jmh-fork && mvn clean install -DskipTests -q`
116116
4. Update version reference in root `build.gradle.kts` if needed
117117
5. Test both Gradle and Maven examples to verify compatibility

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
## Bumping the JMH fork version
44

5-
The JMH fork uses a versioning scheme like `1.37.0-codspeed.N`. To bump the version across all modules:
5+
The JMH fork is published under group ID `io.codspeed.jmh`. To bump the version across all modules:
66

77
```bash
8-
cd jmh-fork && mvn versions:set -DnewVersion=1.37.0-codspeed.2
8+
cd jmh-fork && mvn versions:set -DnewVersion=0.2.0
99
```
1010

1111
This updates all `pom.xml` files in the multi-module project. After bumping, also update the version reference in `build.gradle.kts`.

examples/example-gradle/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ group = "io.codspeed"
77
version = "1.0-SNAPSHOT"
88

99
jmh {
10-
jmhVersion.set("1.37.0-codspeed.1")
10+
jmhVersion.set("0.1.0")
1111
}
1212

1313
sourceSets {

examples/example-maven/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@
1212
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1313
<maven.compiler.source>21</maven.compiler.source>
1414
<maven.compiler.target>21</maven.compiler.target>
15-
<jmh.version>1.37.0-codspeed.1</jmh.version>
15+
<jmh.version>0.1.0</jmh.version>
1616
</properties>
1717

1818
<dependencies>
1919
<dependency>
20-
<groupId>org.openjdk.jmh</groupId>
20+
<groupId>io.codspeed.jmh</groupId>
2121
<artifactId>jmh-core</artifactId>
2222
<version>${jmh.version}</version>
2323
</dependency>
2424
<dependency>
25-
<groupId>org.openjdk.jmh</groupId>
25+
<groupId>io.codspeed.jmh</groupId>
2626
<artifactId>jmh-generator-annprocess</artifactId>
2727
<version>${jmh.version}</version>
2828
<scope>provided</scope>

jmh-fork/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ subprojects {
22
apply(plugin = "java-library")
33
apply(plugin = "maven-publish")
44

5-
group = "org.openjdk.jmh"
6-
version = "1.37.0-codspeed.1"
5+
group = "io.codspeed.jmh"
6+
version = "0.1.0"
77

88
repositories {
99
mavenCentral()

jmh-fork/jmh-archetypes/jmh-groovy-benchmark-archetype/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<modelVersion>4.0.0</modelVersion>
44

55
<parent>
6-
<groupId>org.openjdk.jmh</groupId>
6+
<groupId>io.codspeed.jmh</groupId>
77
<artifactId>jmh-archetypes</artifactId>
8-
<version>1.37.0-codspeed.1</version>
8+
<version>0.1.0</version>
99
</parent>
1010

1111
<artifactId>jmh-groovy-benchmark-archetype</artifactId>

jmh-fork/jmh-archetypes/jmh-groovy-benchmark-archetype/src/main/resources/archetype-resources/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
4545

4646
<dependencies>
4747
<dependency>
48-
<groupId>org.openjdk.jmh</groupId>
48+
<groupId>io.codspeed.jmh</groupId>
4949
<artifactId>jmh-core</artifactId>
5050
<version>\${jmh.version}</version>
5151
</dependency>
@@ -168,7 +168,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
168168
</executions>
169169
<dependencies>
170170
<dependency>
171-
<groupId>org.openjdk.jmh</groupId>
171+
<groupId>io.codspeed.jmh</groupId>
172172
<artifactId>jmh-generator-bytecode</artifactId>
173173
<version>\${jmh.version}</version>
174174
</dependency>

jmh-fork/jmh-archetypes/jmh-java-benchmark-archetype/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ questions.
2828
<modelVersion>4.0.0</modelVersion>
2929

3030
<parent>
31-
<groupId>org.openjdk.jmh</groupId>
31+
<groupId>io.codspeed.jmh</groupId>
3232
<artifactId>jmh-archetypes</artifactId>
33-
<version>1.37.0-codspeed.1</version>
33+
<version>0.1.0</version>
3434
</parent>
3535

3636
<artifactId>jmh-java-benchmark-archetype</artifactId>

jmh-fork/jmh-archetypes/jmh-java-benchmark-archetype/src/main/resources/archetype-resources/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ THE POSSIBILITY OF SUCH DAMAGE.
4747

4848
<dependencies>
4949
<dependency>
50-
<groupId>org.openjdk.jmh</groupId>
50+
<groupId>io.codspeed.jmh</groupId>
5151
<artifactId>jmh-core</artifactId>
5252
<version>\${jmh.version}</version>
5353
</dependency>
5454
<dependency>
55-
<groupId>org.openjdk.jmh</groupId>
55+
<groupId>io.codspeed.jmh</groupId>
5656
<artifactId>jmh-generator-annprocess</artifactId>
5757
<version>\${jmh.version}</version>
5858
<scope>provided</scope>

jmh-fork/jmh-archetypes/jmh-kotlin-benchmark-archetype/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<modelVersion>4.0.0</modelVersion>
44

55
<parent>
6-
<groupId>org.openjdk.jmh</groupId>
6+
<groupId>io.codspeed.jmh</groupId>
77
<artifactId>jmh-archetypes</artifactId>
8-
<version>1.37.0-codspeed.1</version>
8+
<version>0.1.0</version>
99
</parent>
1010

1111
<artifactId>jmh-kotlin-benchmark-archetype</artifactId>

0 commit comments

Comments
 (0)