Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
fix: java8 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
dsinghvi authored and GeorgeMac committed Oct 19, 2023
1 parent dd52766 commit 9c0ada1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
8 changes: 3 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
}


sourceCompatibility = 1.8
targetCompatibility = 1.8

spotless {
java {
palantirJavaFormat()
Expand All @@ -34,6 +30,8 @@ spotless {
java {
withSourcesJar()
withJavadocJar()
sourceCompatibility = 1.8
targetCompatibility = 1.8
}

test {
Expand All @@ -47,7 +45,7 @@ publishing {
maven(MavenPublication) {
groupId = 'io.flipt'
artifactId = 'flipt-java'
version = '0.2.13'
version = '0.2.14'
from components.java
}
}
Expand Down
11 changes: 3 additions & 8 deletions src/main/java/com/flipt/api/core/ClientOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,11 @@ private ClientOptions(
this.environment = environment;
this.headers = new HashMap<>();
this.headers.putAll(headers);
this.headers.putAll(Map.of(
"X-Fern-SDK-Name",
"com.flipt.fern:api-sdk",
"X-Fern-SDK-Version",
"0.2.13",
"X-Fern-Language",
"JAVA"));
this.headers.put("X-Fern-SDK-Name", "com.flipt.fern:api-sdk");
this.headers.put("X-Fern-SDK-Version", "0.2.13");
this.headers.put("X-Fern-Language", "JAVA");
this.headerSuppliers = headerSuppliers;
this.httpClient = httpClient;
;
}

public Environment environment() {
Expand Down

0 comments on commit 9c0ada1

Please sign in to comment.