Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion .claude/skills/scalar-java-sdk/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,24 @@ Generated Java client for Scalar API, published as `com.scalar`. Use the generat

## Install

Add the dependency to your Gradle build:

```kotlin
implementation("com.scalar:scalar-java:0.2.1") // x-release-please-version
```

Or declare it in your Maven `pom.xml`:

```xml
<dependency>
<groupId>com.scalar</groupId>
<artifactId>scalar-java</artifactId>
<version>0.2.1</version> <!-- x-release-please-version -->
</dependency>
```

Or build the SDK from source, with JDK 21 installed:

```sh
./gradlew :scalar-java:build
```
Expand Down Expand Up @@ -62,7 +80,6 @@ try {
## Requirements

- Java 8 or later
- Gradle multi-module project rooted at `scalar-java-root`, built with JDK 21

## Reference files

Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.2.0"
".": "0.2.1"
}
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [0.2.1](https://github.com/scalar/scalar-java/compare/v0.2.0...v0.2.1) (2026-10-16)


### Chores

* **api:** regenerate SDK ([2fc2d3a](https://github.com/scalar/scalar-java/commit/2fc2d3ac316f804992bf6d4b51547413b3665b47))

## [0.2.0](https://github.com/scalar/scalar-java/compare/v0.1.0...v0.2.0) (2026-10-14)


Expand Down
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,24 @@ The full API of this library can be found in [api.md](./api.md).

## Installation

Add the dependency to your Gradle build:

```kotlin
implementation("com.scalar:scalar-java:0.2.1") // x-release-please-version
```

Or declare it in your Maven `pom.xml`:

```xml
<dependency>
<groupId>com.scalar</groupId>
<artifactId>scalar-java</artifactId>
<version>0.2.1</version> <!-- x-release-please-version -->
</dependency>
```

Or build the SDK from source, with JDK 21 installed:

```sh
./gradlew :scalar-java:build
```
Expand Down Expand Up @@ -295,7 +313,6 @@ Generated clients support request timeouts and retry temporary failures such as
## Requirements

- Java 8 or later
- Gradle multi-module project rooted at `scalar-java-root`, built with JDK 21

<br />

Expand Down
19 changes: 18 additions & 1 deletion SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,24 @@ Generated Java client for Scalar API, published as `com.scalar`. Use the generat

## Install

Add the dependency to your Gradle build:

```kotlin
implementation("com.scalar:scalar-java:0.2.1") // x-release-please-version
```

Or declare it in your Maven `pom.xml`:

```xml
<dependency>
<groupId>com.scalar</groupId>
<artifactId>scalar-java</artifactId>
<version>0.2.1</version> <!-- x-release-please-version -->
</dependency>
```

Or build the SDK from source, with JDK 21 installed:

```sh
./gradlew :scalar-java:build
```
Expand Down Expand Up @@ -62,7 +80,6 @@ try {
## Requirements

- Java 8 or later
- Gradle multi-module project rooted at `scalar-java-root`, built with JDK 21

## Reference files

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
allprojects {
group = "com.scalar"
version = "0.2.0" // x-release-please-version
version = "0.2.1" // x-release-please-version
}
3 changes: 3 additions & 0 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ plugins {

repositories {
gradlePluginPortal()
mavenCentral()
}

dependencies {
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.20")
implementation("com.vanniktech.maven.publish:com.vanniktech.maven.publish.gradle.plugin:0.34.0")
implementation("org.jetbrains.dokka:dokka-gradle-plugin:2.0.0")
}
2 changes: 0 additions & 2 deletions buildSrc/src/main/kotlin/scalar.java.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ java {

sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8

withSourcesJar()
}

tasks.named<JavaCompile>("compileJava") {
Expand Down
58 changes: 58 additions & 0 deletions buildSrc/src/main/kotlin/scalar.publish.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
import com.vanniktech.maven.publish.JavadocJar
import com.vanniktech.maven.publish.KotlinJvm

plugins {
id("com.vanniktech.maven.publish")
id("org.jetbrains.dokka-javadoc")
}

dokka {
dokkaGeneratorIsolation.set(
ProcessIsolation {
maxHeapSize.set("8g")
}
)
}

mavenPublishing {
configure(
KotlinJvm(
javadocJar = JavadocJar.Dokka("dokkaGeneratePublicationJavadoc"),
sourcesJar = true,
)
)
publishToMavenCentral(automaticRelease = true)
signAllPublications()
coordinates(project.group.toString(), project.name, project.version.toString())
pom {
name.set("Scalar SDK")
description.set("API for managing Scalar platform resources.")
url.set("https://github.com/scalar/scalar-java")
licenses {
license {
name.set("Apache-2.0")
url.set("https://github.com/scalar/scalar-java/blob/HEAD/LICENSE")
}
}
developers {
developer {
id.set("scalar")
name.set("Scalar")
url.set("https://github.com/scalar/scalar-java")
}
}
scm {
url.set("https://github.com/scalar/scalar-java")
connection.set("scm:git:https://github.com/scalar/scalar-java.git")
developerConnection.set("scm:git:ssh://git@github.com/scalar/scalar-java.git")
}
}
}

tasks.withType<Zip>().configureEach {
isZip64 = true
}

tasks.named<org.gradle.jvm.tasks.Jar>("dokkaJavadocJar") {
exclude("dokka-configuration.json")
}
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ org.gradle.jvmargs=\
-XX:CICompilerCount=4 \
-XX:+OptimizeStringConcat \
-XX:+UseStringDeduplication
# Dokka renders the published javadoc jar. Its v1 plugin predates the configuration cache.
org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled
org.jetbrains.dokka.experimental.gradle.pluginMode.noWarn=true
1 change: 1 addition & 0 deletions scalar-java-client-okhttp/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id("scalar.kotlin")
id("scalar.publish")
}

dependencies {
Expand Down
1 change: 1 addition & 0 deletions scalar-java-core/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id("scalar.kotlin")
id("scalar.publish")
}

configurations.all {
Expand Down
1 change: 1 addition & 0 deletions scalar-java/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id("scalar.kotlin")
id("scalar.publish")
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion scalar-sdk.manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Scalar",
"slug": "scalar",
"generatorVersion": "0.36.5",
"generatorVersion": "0.36.6",
"servers": [
"https://access.scalar.com"
],
Expand Down
Loading