Skip to content

Commit

Permalink
Release 0.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Aug 10, 2023
1 parent 862f446 commit 85a7f4b
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 3 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,24 @@ jobs:
- name: Compile
run: ./gradlew compileJava

publish:
test:
needs: [ compile ]
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Set up Java
id: setup-jre
uses: actions/setup-java@v1
with:
java-version: "11"
architecture: x64

- name: Test
run: ./gradlew test
publish:
needs: [ compile, test ]
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest

Expand Down
8 changes: 7 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ dependencies {
api 'com.fasterxml.jackson.core:jackson-databind:2.13.0'
api 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.12.3'
api 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.12.3'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
}

spotless {
Expand All @@ -29,12 +31,16 @@ java {
withJavadocJar()
}

test {
useJUnitPlatform()
}

publishing {
publications {
maven(MavenPublication) {
groupId = 'io.squidex'
artifactId = 'squidex'
version = '0.0.5'
version = '0.0.7'
from components.java
}
}
Expand Down
10 changes: 9 additions & 1 deletion src/main/java/com/squidex/api/core/ClientOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,15 @@ private ClientOptions(
OkHttpClient httpClient,
String appName) {
this.environment = environment;
this.headers = headers;
this.headers = new HashMap<>();
this.headers.putAll(headers);
this.headers.putAll(Map.of(
"X-Fern-SDK-Name",
"com.squidex.fern:api-sdk",
"X-Fern-SDK-Version",
"0.0.7",
"X-Fern-Language",
"JAVA"));
this.headerSuppliers = headerSuppliers;
this.httpClient = httpClient;
this.appName = appName;
Expand Down
8 changes: 8 additions & 0 deletions src/test/java/com/squidex/api/TestClient.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.squidex.api;

public final class TestClient {
public void test() {
// Add tests here and mark this file in .fernignore
assert true;
}
}

0 comments on commit 85a7f4b

Please sign in to comment.