Skip to content

Commit

Permalink
refactor: change java client name (#19519)
Browse files Browse the repository at this point in the history
## Description

<!-- Describe the goal and purpose of this PR. -->
<!-- -->
<!-- For structural or foundational CI changes request review from
@cmur2 -->

Changed java client name, created a simple pom.xml under
`zeebe/client/java` to redirect old artifact into the new one

## Related issues

closes #19482
  • Loading branch information
nicpuppa committed Jun 20, 2024
2 parents d40c49a + 3470ce3 commit 9e5f5fb
Show file tree
Hide file tree
Showing 39 changed files with 68 additions and 41 deletions.
2 changes: 1 addition & 1 deletion .idea/scopes/apache_license_scope.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ run the command: `mvn clean install -Dquickly` in the root folder.

> [!NOTE]
> All Java modules in Zeebe are built and tested with JDK 21. Most modules use language level
> 21, exceptions are: zeebe-bpmn-model, zeebe-client-java, zeebe-gateway-protocol,
> 21, exceptions are: zeebe-bpmn-model, camunda-client-java, zeebe-gateway-protocol,
> zeebe-gateway-protocol-impl, zeebe-protocol and zeebe-protocol-jackson which use language level 8
>
> The Go client and zbctl are built and tested with Go 1.22
Expand Down
4 changes: 2 additions & 2 deletions bom/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ section of your pom.
Once imported, you can easily add the dependencies you need to the `dependencies` section of your pom.

For example, you can use it to import the
[Zeebe Java Client](https://docs.camunda.io/docs/apis-clients/java-client/).
[Camunda Java Client](https://docs.camunda.io/docs/apis-clients/java-client/).

```xml
<dependencies>
<dependency>
<groupId>io.camunda</groupId>
<artifactId>zeebe-client-java</artifactId>
<artifactId>camunda-client-java</artifactId>
</dependency>
</dependencies>
```
Expand Down
2 changes: 1 addition & 1 deletion bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@

<dependency>
<groupId>io.camunda</groupId>
<artifactId>zeebe-client-java</artifactId>
<artifactId>camunda-client-java</artifactId>
<version>${project.version}</version>
</dependency>

Expand Down
4 changes: 2 additions & 2 deletions clients/java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
<relativePath>../../parent/pom.xml</relativePath>
</parent>

<artifactId>zeebe-client-java</artifactId>
<artifactId>camunda-client-java</artifactId>
<packaging>jar</packaging>

<name>Zeebe Client Java</name>
<name>Camunda Client Java</name>

<licenses>
<license>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public static ManagedChannel buildChannel(final ZeebeClientConfiguration config)

configureConnectionSecurity(config, channelBuilder);
channelBuilder.keepAliveTime(config.getKeepAlive().toMillis(), TimeUnit.MILLISECONDS);
channelBuilder.userAgent("zeebe-client-java/" + VersionUtil.getVersion());
channelBuilder.userAgent("camunda-client-java/" + VersionUtil.getVersion());
channelBuilder.maxInboundMessageSize(config.getMaxMessageSize());

if (config.useDefaultRetryPolicy()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ private HttpAsyncClientBuilder defaultClientBuilder() {
return HttpAsyncClients.custom()
.setConnectionManager(connectionManager)
.setDefaultHeaders(Collections.singletonList(acceptHeader))
.setUserAgent("zeebe-client-java/" + VersionUtil.getVersion())
.setUserAgent("camunda-client-java/" + VersionUtil.getVersion())
.evictExpiredConnections()
.setCharCodingConfig(CharCodingConfig.custom().setCharset(StandardCharsets.UTF_8).build())
.evictIdleConnections(TimeValue.ofSeconds(30))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ private ZeebeClientCredentials fetchCredentials() throws IOException {
connection.setDoOutput(true);
connection.setReadTimeout(toIntExact(readTimeout.toMillis()));
connection.setConnectTimeout(toIntExact(connectionTimeout.toMillis()));
connection.setRequestProperty("User-Agent", "zeebe-client-java/" + VersionUtil.getVersion());
connection.setRequestProperty("User-Agent", "camunda-client-java/" + VersionUtil.getVersion());

try (final OutputStream os = connection.getOutputStream()) {
final byte[] input = payload.getBytes(StandardCharsets.UTF_8);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public final class DeploymentEventImpl implements DeploymentEvent {
private static final String UNKNOWN_METADATA_WARN_MSG =
"Expected metadata in deployment response, but encountered an unknown type of metadata."
+ " This might happen when you've updated your Zeebe cluster, but not your Zeebe client."
+ " You may have to update the version of your zeebe-client-java dependency to resolve the issue.";
+ " You may have to update the version of your camunda-client-java dependency to resolve the issue.";

private final long key;
private final String tenantId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ private void mockCredentials(final String token, final String scope) {
WireMock.post(WireMock.urlPathEqualTo("/oauth/token"))
.withHeader("Content-Type", equalTo("application/x-www-form-urlencoded"))
.withHeader("Accept", equalTo("application/json"))
.withHeader("User-Agent", matching("zeebe-client-java/\\d+\\.\\d+\\.\\d+.*"))
.withHeader("User-Agent", matching("camunda-client-java/\\d+\\.\\d+\\.\\d+.*"))
.withRequestBody(equalTo(encodedBody))
.willReturn(
WireMock.aResponse()
Expand Down
2 changes: 1 addition & 1 deletion dist/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@

<dependency>
<groupId>io.camunda</groupId>
<artifactId>zeebe-client-java</artifactId>
<artifactId>camunda-client-java</artifactId>
</dependency>

<dependency>
Expand Down
2 changes: 1 addition & 1 deletion operate/common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<!-- ZEEBE -->
<dependency>
<groupId>io.camunda</groupId>
<artifactId>zeebe-client-java</artifactId>
<artifactId>camunda-client-java</artifactId>
</dependency>

<dependency>
Expand Down
2 changes: 1 addition & 1 deletion operate/data-generator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<!-- ZEEBE -->
<dependency>
<groupId>io.camunda</groupId>
<artifactId>zeebe-client-java</artifactId>
<artifactId>camunda-client-java</artifactId>
</dependency>

<dependency>
Expand Down
2 changes: 1 addition & 1 deletion operate/qa/backup-restore-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

<dependency>
<groupId>io.camunda</groupId>
<artifactId>zeebe-client-java</artifactId>
<artifactId>camunda-client-java</artifactId>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
7 changes: 3 additions & 4 deletions operate/qa/data-generator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,19 @@
<name>Operate QA Data Generator</name>

<dependencies>

<dependency>
<groupId>io.camunda</groupId>
<artifactId>operate-importer</artifactId>
<artifactId>camunda-client-java</artifactId>
</dependency>

<dependency>
<groupId>io.camunda</groupId>
<artifactId>operate-qa-util</artifactId>
<artifactId>operate-importer</artifactId>
</dependency>

<dependency>
<groupId>io.camunda</groupId>
<artifactId>zeebe-client-java</artifactId>
<artifactId>operate-qa-util</artifactId>
</dependency>

<!-- ELASTICSEARCH -->
Expand Down
2 changes: 1 addition & 1 deletion operate/qa/integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
</dependency>
<dependency>
<groupId>io.camunda</groupId>
<artifactId>zeebe-client-java</artifactId>
<artifactId>camunda-client-java</artifactId>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion operate/qa/migration-tests/test-fixture-110/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</dependency>
<dependency>
<groupId>io.camunda</groupId>
<artifactId>zeebe-client-java</artifactId>
<artifactId>camunda-client-java</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
Expand Down
2 changes: 1 addition & 1 deletion operate/qa/migration-tests/test-fixture-800/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

<dependency>
<groupId>io.camunda</groupId>
<artifactId>zeebe-client-java</artifactId>
<artifactId>camunda-client-java</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
Expand Down
3 changes: 2 additions & 1 deletion operate/qa/util/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<!-- ZEEBE -->
<dependency>
<groupId>io.camunda</groupId>
<artifactId>zeebe-client-java</artifactId>
<artifactId>camunda-client-java</artifactId>
</dependency>

<dependency>
Expand Down Expand Up @@ -135,6 +135,7 @@
<configuration>
<ignoredUsedUndeclaredDependencies>
<dependency>jakarta.annotation:jakarta.annotation-api</dependency>
<dependency>io.camunda:zeebe-client-java</dependency>
</ignoredUsedUndeclaredDependencies>
</configuration>
</plugin>
Expand Down
2 changes: 1 addition & 1 deletion operate/webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

<dependency>
<groupId>io.camunda</groupId>
<artifactId>zeebe-client-java</artifactId>
<artifactId>camunda-client-java</artifactId>
</dependency>

<dependency>
Expand Down
15 changes: 15 additions & 0 deletions parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,14 @@
<version>${project.version}</version>
</dependency>

<!-- camunda java client -->

<dependency>
<groupId>io.camunda</groupId>
<artifactId>camunda-client-java</artifactId>
<version>${project.version}</version>
</dependency>

<!-- sibling projects -->

<dependency>
Expand Down Expand Up @@ -1220,6 +1228,12 @@
<groupId>io.zeebe</groupId>
<artifactId>zeebe-test-container</artifactId>
<version>${version.zeebe-test-container}</version>
<exclusions>
<exclusion>
<groupId>io.camunda</groupId>
<artifactId>zeebe-client-java</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
Expand Down Expand Up @@ -2889,6 +2903,7 @@
<dep>org.apache.maven.surefire:surefire-junit47</dep>
<dep>org.apache.maven.surefire:surefire-junit-platform</dep>
<dep>org.codehaus.plexus:plexus-utils</dep>
<dep>io.camunda:zeebe-client-java</dep>
</ignoredUnusedDeclaredDependencies>
</configuration>
<executions>
Expand Down
2 changes: 1 addition & 1 deletion spring-boot-starter-camunda-sdk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

<dependency>
<groupId>io.camunda</groupId>
<artifactId>zeebe-client-java</artifactId>
<artifactId>camunda-client-java</artifactId>
</dependency>

<dependency>
Expand Down
2 changes: 1 addition & 1 deletion tasklist/common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<!-- ZEEBE -->
<dependency>
<groupId>io.camunda</groupId>
<artifactId>zeebe-client-java</artifactId>
<artifactId>camunda-client-java</artifactId>
</dependency>

<dependency>
Expand Down
2 changes: 1 addition & 1 deletion tasklist/data-generator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<!-- ZEEBE -->
<dependency>
<groupId>io.camunda</groupId>
<artifactId>zeebe-client-java</artifactId>
<artifactId>camunda-client-java</artifactId>
</dependency>

<!-- ELASTICSEARCH -->
Expand Down
2 changes: 1 addition & 1 deletion tasklist/qa/backup-restore-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@

<dependency>
<groupId>io.camunda</groupId>
<artifactId>zeebe-client-java</artifactId>
<artifactId>camunda-client-java</artifactId>
<scope>test</scope>
</dependency>

Expand Down
2 changes: 1 addition & 1 deletion tasklist/qa/integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@

<dependency>
<groupId>io.camunda</groupId>
<artifactId>zeebe-client-java</artifactId>
<artifactId>camunda-client-java</artifactId>
<scope>test</scope>
</dependency>

Expand Down
2 changes: 1 addition & 1 deletion tasklist/qa/migration-tests/test-fixture-810/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

<dependency>
<groupId>io.camunda</groupId>
<artifactId>zeebe-client-java</artifactId>
<artifactId>camunda-client-java</artifactId>
</dependency>

<dependency>
Expand Down
2 changes: 1 addition & 1 deletion tasklist/qa/util/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<!-- ZEEBE -->
<dependency>
<groupId>io.camunda</groupId>
<artifactId>zeebe-client-java</artifactId>
<artifactId>camunda-client-java</artifactId>
</dependency>

<dependency>
Expand Down
2 changes: 1 addition & 1 deletion tasklist/webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<!-- ZEEBE -->
<dependency>
<groupId>io.camunda</groupId>
<artifactId>zeebe-client-java</artifactId>
<artifactId>camunda-client-java</artifactId>
</dependency>

<!-- SPRING BOOT -->
Expand Down
2 changes: 1 addition & 1 deletion testing/camunda-process-test-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

<dependency>
<groupId>io.camunda</groupId>
<artifactId>zeebe-client-java</artifactId>
<artifactId>camunda-client-java</artifactId>
<scope>test</scope>
</dependency>

Expand Down
2 changes: 1 addition & 1 deletion zeebe/benchmarks/project/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@

<dependency>
<groupId>io.camunda</groupId>
<artifactId>zeebe-client-java</artifactId>
<artifactId>camunda-client-java</artifactId>
</dependency>

<dependency>
Expand Down
2 changes: 1 addition & 1 deletion zeebe/broker/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@

<dependency>
<groupId>io.camunda</groupId>
<artifactId>zeebe-client-java</artifactId>
<artifactId>camunda-client-java</artifactId>
<scope>test</scope>
</dependency>

Expand Down
11 changes: 11 additions & 0 deletions zeebe/clients/java/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>io.camunda</groupId>
<artifactId>zeebe-client-java</artifactId>
<version>8.6.0-SNAPSHOT</version>
<distributionManagement>
<relocation>
<artifactId>camunda-client-java</artifactId>
</relocation>
</distributionManagement>
</project>
2 changes: 1 addition & 1 deletion zeebe/gateway-grpc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@

<dependency>
<groupId>io.camunda</groupId>
<artifactId>zeebe-client-java</artifactId>
<artifactId>camunda-client-java</artifactId>
<scope>test</scope>
</dependency>

Expand Down
1 change: 1 addition & 0 deletions zeebe/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
<module>gateway</module>
<module>gateway-grpc</module>
<module>gateway-rest</module>
<module>clients/java</module>
<module>exporter-api</module>
<module>exporter-test</module>
<module>protocol-asserts</module>
Expand Down
2 changes: 1 addition & 1 deletion zeebe/qa/integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

<dependency>
<groupId>io.camunda</groupId>
<artifactId>zeebe-client-java</artifactId>
<artifactId>camunda-client-java</artifactId>
<scope>test</scope>
</dependency>

Expand Down
2 changes: 1 addition & 1 deletion zeebe/qa/update-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

<dependency>
<groupId>io.camunda</groupId>
<artifactId>zeebe-client-java</artifactId>
<artifactId>camunda-client-java</artifactId>
<scope>test</scope>
</dependency>

Expand Down
Loading

0 comments on commit 9e5f5fb

Please sign in to comment.