Skip to content

Commit

Permalink
release: v0.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
evansims committed Aug 19, 2024
1 parent 7a60fd2 commit 9d1552d
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 22 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v0.6.1

- fix: Maven build issue

## v0.6.0

- feat: support [OpenTelemetry metrics reporting](https://github.com/openfga/java-sdk/blob/main/docs/OpenTelemetry.md) [\#94](https://github.com/openfga/java-sdk/pull/94) [\#95](https://github.com/openfga/java-sdk/pull/95)
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ It can be used with the following:
* Gradle (Groovy)

```groovy
implementation 'dev.openfga:openfga-sdk:0.6.0'
implementation 'dev.openfga:openfga-sdk:0.6.1'
```

* Gradle (Kotlin)

```kotlin
implementation("dev.openfga:openfga-sdk:0.6.0")
implementation("dev.openfga:openfga-sdk:0.6.1")
```

* Apache Maven
Expand All @@ -92,26 +92,26 @@ implementation("dev.openfga:openfga-sdk:0.6.0")
<dependency>
<groupId>dev.openfga</groupId>
<artifactId>openfga-sdk</artifactId>
<version>0.6.0</version>
<version>0.6.1</version>
</dependency>
```

* Ivy

```xml
<dependency org="dev.openfga" name="openfga-sdk" rev="0.6.0"/>
<dependency org="dev.openfga" name="openfga-sdk" rev="0.6.1"/>
```

* SBT

```scala
libraryDependencies += "dev.openfga" % "openfga-sdk" % "0.6.0"
libraryDependencies += "dev.openfga" % "openfga-sdk" % "0.6.1"
```

* Leiningen

```edn
[dev.openfga/openfga-sdk "0.6.0"]
[dev.openfga/openfga-sdk "0.6.1"]
```


Expand Down
16 changes: 8 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ plugins {
apply from: 'publish.gradle'

group = 'dev.openfga'
version = '0.6.0'
version = '0.6.1'

repositories {
mavenCentral()
Expand Down Expand Up @@ -60,13 +60,13 @@ ext {
}

dependencies {
implementation "com.google.code.findbugs:jsr305:3.0.+"
implementation "com.google.code.findbugs:jsr305:3.0.1"
implementation "com.fasterxml.jackson.core:jackson-core:$jackson_version"
implementation "com.fasterxml.jackson.core:jackson-annotations:$jackson_version"
implementation "com.fasterxml.jackson.core:jackson-databind:$jackson_version"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version"
implementation "org.openapitools:jackson-databind-nullable:0.2.+"
implementation platform("io.opentelemetry:opentelemetry-bom:1.41.+")
implementation "org.openapitools:jackson-databind-nullable:0.2.6"
implementation platform("io.opentelemetry:opentelemetry-bom:1.41.0")
implementation "io.opentelemetry:opentelemetry-api"
}

Expand All @@ -78,9 +78,9 @@ testing {
dependencies {
implementation project()
implementation "org.junit.jupiter:junit-jupiter:$junit_version"
implementation "org.mockito:mockito-core:5.+"
implementation "org.mockito:mockito-core:5.12.0"
runtimeOnly "org.junit.platform:junit-platform-launcher"
implementation "org.wiremock:wiremock:3.9.+"
implementation "org.wiremock:wiremock:3.9.1"

// This test-only dependency is convenient but not widely used.
// Review project activity before updating the version here.
Expand All @@ -106,8 +106,8 @@ testing {
dependencies {
implementation "com.fasterxml.jackson.core:jackson-core:$jackson_version"
implementation "com.fasterxml.jackson.core:jackson-databind:$jackson_version"
implementation "org.testcontainers:junit-jupiter:1.20.+"
implementation "org.testcontainers:openfga:1.20.+"
implementation "org.testcontainers:junit-jupiter:1.20.1"
implementation "org.testcontainers:openfga:1.20.1"
implementation project()
}

Expand Down
4 changes: 2 additions & 2 deletions example/example1/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ ext {
}

dependencies {
implementation("dev.openfga:openfga-sdk:0.6.0")
implementation("dev.openfga:openfga-sdk:0.6.1")

// Serialization
implementation("com.fasterxml.jackson.core:jackson-core:$jacksonVersion")
implementation("com.fasterxml.jackson.core:jackson-annotations:$jacksonVersion")
implementation("com.fasterxml.jackson.core:jackson-databind:$jacksonVersion")
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jacksonVersion")
implementation("org.openapitools:jackson-databind-nullable:0.2.+")
implementation("org.openapitools:jackson-databind-nullable:0.2.6")

// Kotlin
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
Expand Down
2 changes: 1 addition & 1 deletion publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ publishing {
pom {
group = 'dev.openfga'
name = 'openfga-sdk'
version = '0.6.0'
version = '0.6.1'
description = 'This is an autogenerated Java SDK for OpenFGA. It provides a wrapper around the [OpenFGA API definition](https://openfga.dev/api).'
url = 'https://openfga.dev'
licenses {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
* Configurations for an api client.
*/
public class Configuration implements BaseConfiguration {
public static final String VERSION = "0.6.0";
public static final String VERSION = "0.6.1";

private static final String DEFAULT_API_URL = "http://localhost:8080";
private static final String DEFAULT_USER_AGENT = "openfga-sdk java/0.6.0";
private static final String DEFAULT_USER_AGENT = "openfga-sdk java/0.6.1";
private static final Duration DEFAULT_READ_TIMEOUT = Duration.ofSeconds(10);
private static final Duration DEFAULT_CONNECT_TIMEOUT = Duration.ofSeconds(10);

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/dev/openfga/sdk/telemetry/Metrics.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ public class Metrics {
private final Configuration configuration;

public Metrics() {
this.meter = OpenTelemetry.noop().getMeterProvider().get("openfga-sdk/0.6.0");
this.meter = OpenTelemetry.noop().getMeterProvider().get("openfga-sdk/0.6.1");
this.counters = new HashMap<>();
this.histograms = new HashMap<>();
this.configuration = new Configuration();
}

public Metrics(Configuration configuration) {
this.meter = OpenTelemetry.noop().getMeterProvider().get("openfga-sdk/0.6.0");
this.meter = OpenTelemetry.noop().getMeterProvider().get("openfga-sdk/0.6.1");
this.counters = new HashMap<>();
this.histograms = new HashMap<>();
this.configuration = configuration;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

class ConfigurationTest {
private static final String DEFAULT_API_URL = "http://localhost:8080";
private static final String DEFAULT_USER_AGENT = "openfga-sdk java/0.6.0";
private static final String DEFAULT_USER_AGENT = "openfga-sdk java/0.6.1";
private static final Duration DEFAULT_READ_TIMEOUT = Duration.ofSeconds(10);
private static final Duration DEFAULT_CONNECT_TIMEOUT = Duration.ofSeconds(10);
private static final Map<String, String> DEFAULT_HEADERS = Map.of();
Expand Down

0 comments on commit 9d1552d

Please sign in to comment.