Skip to content

Commit 85a7f4b

Browse files
committed
Release 0.0.7
1 parent 862f446 commit 85a7f4b

File tree

4 files changed

+41
-3
lines changed

4 files changed

+41
-3
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,24 @@ jobs:
2020
- name: Compile
2121
run: ./gradlew compileJava
2222

23-
publish:
23+
test:
2424
needs: [ compile ]
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Checkout repo
28+
uses: actions/checkout@v3
29+
30+
- name: Set up Java
31+
id: setup-jre
32+
uses: actions/setup-java@v1
33+
with:
34+
java-version: "11"
35+
architecture: x64
36+
37+
- name: Test
38+
run: ./gradlew test
39+
publish:
40+
needs: [ compile, test ]
2541
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
2642
runs-on: ubuntu-latest
2743

build.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ dependencies {
1616
api 'com.fasterxml.jackson.core:jackson-databind:2.13.0'
1717
api 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.12.3'
1818
api 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.12.3'
19+
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
20+
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
1921
}
2022

2123
spotless {
@@ -29,12 +31,16 @@ java {
2931
withJavadocJar()
3032
}
3133

34+
test {
35+
useJUnitPlatform()
36+
}
37+
3238
publishing {
3339
publications {
3440
maven(MavenPublication) {
3541
groupId = 'io.squidex'
3642
artifactId = 'squidex'
37-
version = '0.0.5'
43+
version = '0.0.7'
3844
from components.java
3945
}
4046
}

src/main/java/com/squidex/api/core/ClientOptions.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,15 @@ private ClientOptions(
2323
OkHttpClient httpClient,
2424
String appName) {
2525
this.environment = environment;
26-
this.headers = headers;
26+
this.headers = new HashMap<>();
27+
this.headers.putAll(headers);
28+
this.headers.putAll(Map.of(
29+
"X-Fern-SDK-Name",
30+
"com.squidex.fern:api-sdk",
31+
"X-Fern-SDK-Version",
32+
"0.0.7",
33+
"X-Fern-Language",
34+
"JAVA"));
2735
this.headerSuppliers = headerSuppliers;
2836
this.httpClient = httpClient;
2937
this.appName = appName;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package com.squidex.api;
2+
3+
public final class TestClient {
4+
public void test() {
5+
// Add tests here and mark this file in .fernignore
6+
assert true;
7+
}
8+
}

0 commit comments

Comments
 (0)