Skip to content

Commit aa4c87e

Browse files
authored
chore: bump common API version to 3.3.1 (#79)
* adjust test as BaseEppoClient no longer accesses the configuration through the requester * use v3.3.1 * prep for release
1 parent 542b195 commit aa4c87e

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ java {
1111
}
1212

1313
group = 'cloud.eppo'
14-
version = '3.0.2-SNAPSHOT'
14+
version = '3.1.0'
1515
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
1616

1717
import org.apache.tools.ant.filters.ReplaceTokens
@@ -31,7 +31,7 @@ repositories {
3131

3232
dependencies {
3333
// Re-export classes and interfaces that will be used upstream
34-
api 'cloud.eppo:sdk-common-jvm:3.0.2'
34+
api 'cloud.eppo:sdk-common-jvm:3.3.1'
3535

3636
implementation 'com.github.zafarkhaja:java-semver:0.10.2'
3737
implementation 'com.fasterxml.jackson.core:jackson-databind:2.17.1'
@@ -40,7 +40,7 @@ dependencies {
4040
// Logback classic 1.3.x is compatible with java 8
4141
implementation 'ch.qos.logback:logback-classic:1.3.14'
4242

43-
testImplementation 'cloud.eppo:sdk-common-jvm:3.0.0-SNAPSHOT:tests'
43+
testImplementation 'cloud.eppo:sdk-common-jvm:3.2.0-SNAPSHOT:tests'
4444
testImplementation platform('org.junit:junit-bom:5.10.2')
4545
testImplementation 'org.junit.jupiter:junit-jupiter'
4646
testImplementation 'com.github.tomakehurst:wiremock-jre8:2.35.2'

src/main/java/com/eppo/sdk/EppoClient.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,17 @@ private EppoClient(
4343
BanditLogger banditLogger,
4444
boolean isGracefulModel) {
4545
super(
46-
apiKey, host, sdkName, sdkVersion, assignmentLogger, banditLogger, isGracefulModel, false);
46+
apiKey,
47+
host,
48+
sdkName,
49+
sdkVersion,
50+
assignmentLogger,
51+
banditLogger,
52+
null,
53+
isGracefulModel,
54+
false,
55+
true,
56+
null);
4757
}
4858

4959
/** Stops the client from polling Eppo for updated flag and bandit configurations */

src/test/java/com/eppo/sdk/EppoClientTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ private void uninitClient() {
276276
private void initBuggyClient() {
277277
try {
278278
EppoClient eppoClient = initClient(DUMMY_FLAG_API_KEY);
279-
Field configurationStoreField = BaseEppoClient.class.getDeclaredField("requestor");
279+
Field configurationStoreField = BaseEppoClient.class.getDeclaredField("configurationStore");
280280
configurationStoreField.setAccessible(true);
281281
configurationStoreField.set(eppoClient, null);
282282
} catch (NoSuchFieldException | IllegalAccessException e) {

0 commit comments

Comments
 (0)