Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Java SDK

Install

GitHub

The Java SDK is published to Scalekit's Maven repository,https://us-maven.pkg.dev/scalekit-public/java. Add it to your build next to Maven Central. It needs no credentials. If your builds download dependencies only through a mirror such as Nexus or Artifactory, add this URL to the mirror instead. For Maven, add the<repositories> and <dependency> entries to the matching sections of your existing pom.xml.

// Gradle: build.gradle
repositories {
mavenCentral()
maven { url "https://us-maven.pkg.dev/scalekit-public/java" }
}
dependencies {
implementation "com.scalekit:scalekit-sdk-java:2.6.2"
}
<!-- Maven: pom.xml -->
<repositories>
<repository>
<id>scalekit</id>
<url>https://us-maven.pkg.dev/scalekit-public/java</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.scalekit</groupId>
<artifactId>scalekit-sdk-java</artifactId>
<version>2.6.2</version>
</dependency>
</dependencies>
v2.6.2Spring BootJava 8+Updated 1 day ago

Initialize

Initialize the client
import com.scalekit.ScalekitClient;
public class ScalekitConfig {
public ScalekitClient scalekitClient() {
return new ScalekitClient(
System.getenv("SCALEKIT_ENVIRONMENT_URL"),
System.getenv("SCALEKIT_CLIENT_ID"),
System.getenv("SCALEKIT_CLIENT_SECRET")
);
}
}
v2.4.0

What's Changed

  • [SK-1912] Add resources client for listing and revoking user consents by @AkshayParihar33 in #75
  • [SK-1867] fix: enable keepAliveWithoutCalls to detect dead idle connections by @ravibits in #74

Full Changelog: v2.3.1...v2.4.0

v2.1.1

What's Changed

New Contributors

Full Changelog: v2.0.11...v2.1.1