Stubs

Generating code

Generated SDKs: Java & Kotlin

Artifacts are dev.stubs.gen:{owner}_{module}_{pluginOwner}_{plugin}. The module's SDKs tab shows the exact coordinates and version.

Gradle

repositories {
    maven { url = uri("https://maven.stubs.dev/") }
    mavenCentral()
}

dependencies {
    implementation("dev.stubs.gen:acme_payments_protobuf-java:<version>")
}

Maven

<repositories>
  <repository>
    <id>stubsdev</id>
    <url>https://maven.stubs.dev/</url>
  </repository>
</repositories>

Private modules

The repository needs a token with the sdk:read scope. In Gradle, name the repository stubsdev with credentials(PasswordCredentials::class), and put the token in ~/.gradle/gradle.properties:

stubsdevUsername=__token__
stubsdevPassword=YOUR_SDK_TOKEN

In Maven, add it to ~/.m2/settings.xml under the repository's id:

<settings>
  <servers>
    <server>
      <id>stubsdev</id>
      <username>__token__</username>
      <password>YOUR_SDK_TOKEN</password>
    </server>
  </servers>
</settings>