Skip to content

Commit

Permalink
fix: revert previous version scheme (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew authored Jan 21, 2025
1 parent 65de6c3 commit ee7d20a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/io/getunleash/util/UnleashConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ public String getDefaultSdkVersion() {
String version =
Optional.ofNullable(getClass().getPackage().getImplementationVersion())
.orElse("development");
return "unleash-java@" + version;
return "unleash-client-java:" + version;
}
}
}
4 changes: 2 additions & 2 deletions src/test/java/io/getunleash/util/UnleashConfigTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public void should_set_sdk_version() {
UnleashConfig config =
UnleashConfig.builder().appName("my-app").unleashAPI("http://unleash.org").build();

assertThat(config.getSdkVersion()).isEqualTo("unleash-java@development");
assertThat(config.getSdkVersion()).isEqualTo("unleash-client-java:development");
}

@Test
Expand Down Expand Up @@ -160,7 +160,7 @@ public void should_add_client_identification_headers_to_connection() throws IOEx
assertThat(connection.getRequestProperty(UNLEASH_INSTANCE_ID_HEADER)).isEqualTo(instanceId);
assertThat(connection.getRequestProperty(UNLEASH_CONNECTION_ID_HEADER)).hasSize(36);
assertThat(connection.getRequestProperty(UNLEASH_SDK_HEADER))
.isEqualTo("unleash-java@development");
.isEqualTo("unleash-client-java:development");
assertThat(connection.getRequestProperty("User-Agent")).isEqualTo(appName);
}

Expand Down

0 comments on commit ee7d20a

Please sign in to comment.