Skip to content

Commit 09f7eb1

Browse files
chore: change registration name to unleash-java-sdk (#317)
1 parent abcdcc2 commit 09f7eb1

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Unleash Client SDK for Java
22

3-
[![Build Status](https://github.com/Unleash/unleash-client-java/workflows/Build/badge.svg)](https://github.com/Unleash/unleash-client-java/actions)
3+
[![Build Status](https://github.com/Unleash/unleash-java-sdk/workflows/Build/badge.svg)](https://github.com/Unleash/unleash-java-sdk/actions)
44
[![Coverage Status](https://coveralls.io/repos/github/Unleash/unleash-client-java/badge.svg?branch=main)](https://coveralls.io/github/Unleash/unleash-client-java?branch=main)
55
[![Maven Central](https://img.shields.io/maven-central/v/io.getunleash/unleash-client-java)](https://mvnrepository.com/artifact/io.getunleash/unleash-client-java)
66

@@ -218,7 +218,7 @@ UnleashConfig unleashConfig = UnleashConfig.builder()
218218

219219
> Introduced in 3.2.2
220220
221-
Sometimes you want to know when Unleash updates internally. This can be achieved by registering a subscriber. An example on how to configure a custom subscriber is shown below. Have a look at [UnleashSubscriber.java](https://github.com/Unleash/unleash-client-java/blob/main/src/main/java/io/getunleash/event/UnleashSubscriber.java) to get a complete overview of all methods you can override.
221+
Sometimes you want to know when Unleash updates internally. This can be achieved by registering a subscriber. An example on how to configure a custom subscriber is shown below. Have a look at [UnleashSubscriber.java](https://github.com/Unleash/unleash-java-sdk/blob/main/src/main/java/io/getunleash/event/UnleashSubscriber.java) to get a complete overview of all methods you can override.
222222

223223

224224
```java
@@ -378,7 +378,7 @@ fakeUnleash.setVariant("t1", new Variant("a", (String) null, true, true));
378378
assertThat(fakeUnleash.getVariant("t1").getName(), is("a"));
379379
```
380380
381-
See more in [FakeUnleashTest.java](https://github.com/Unleash/unleash-client-java/blob/main/src/test/java/io/getunleash/FakeUnleashTest.java)
381+
See more in [FakeUnleashTest.java](https://github.com/Unleash/unleash-java-sdk/blob/main/src/test/java/io/getunleash/FakeUnleashTest.java)
382382
383383
## Development
384384

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
<name>io.getunleash:unleash-client-java</name>
2121
<description>A client library for Unleash</description>
22-
<url>https://github.com/Unleash/unleash-client-java</url>
22+
<url>https://github.com/Unleash/unleash-java-sdk</url>
2323
<inceptionYear>2014</inceptionYear>
2424

2525
<licenses>
@@ -49,9 +49,9 @@
4949
</developers>
5050

5151
<scm>
52-
<url>https://github.com/Unleash/unleash-client-java</url>
53-
<connection>scm:git:https://github.com/Unleash/unleash-client-java.git</connection>
54-
<developerConnection>scm:git:https://github.com/Unleash/unleash-client-java.git</developerConnection>
52+
<url>https://github.com/Unleash/unleash-java-sdk</url>
53+
<connection>scm:git:https://github.com/Unleash/unleash-java-sdk.git</connection>
54+
<developerConnection>scm:git:https://github.com/Unleash/unleash-java-sdk.git</developerConnection>
5555
</scm>
5656

5757
<dependencies>

src/main/java/io/getunleash/util/UnleashConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ public String getDefaultSdkVersion() {
741741
String version =
742742
Optional.ofNullable(getClass().getPackage().getImplementationVersion())
743743
.orElse("development");
744-
return "unleash-client-java:" + version;
744+
return "unleash-java-sdk:" + version;
745745
}
746746
}
747747
}

src/test/java/io/getunleash/util/UnleashConfigTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public void should_set_sdk_version() {
113113
UnleashConfig config =
114114
UnleashConfig.builder().appName("my-app").unleashAPI("http://unleash.org").build();
115115

116-
assertThat(config.getSdkVersion()).isEqualTo("unleash-client-java:development");
116+
assertThat(config.getSdkVersion()).isEqualTo("unleash-java-sdk:development");
117117
}
118118

119119
@Test
@@ -159,7 +159,7 @@ public void should_add_client_identification_headers_to_connection() throws IOEx
159159
assertThat(connection.getRequestProperty(UNLEASH_CONNECTION_ID_HEADER))
160160
.isEqualTo(unleashConfig.getConnectionId());
161161
assertThat(connection.getRequestProperty(UNLEASH_SDK_HEADER))
162-
.isEqualTo("unleash-client-java:development");
162+
.isEqualTo("unleash-java-sdk:development");
163163
assertThat(connection.getRequestProperty("User-Agent")).isEqualTo(appName);
164164
}
165165

0 commit comments

Comments
 (0)