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
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

## Unreleased

## 0.9.2

### Added

- **Codegen is now published to Maven Central.** The `supabase-codegen` CLI/library and the
`io.github.androidpoet.supabase.codegen` Gradle plugin (`supabase-codegen-gradle`) are published
under the same `io.github.androidpoet` group as the rest of the SDK. Apply the plugin with
`plugins { id("io.github.androidpoet.supabase.codegen") version "0.9.2" }` (add `mavenCentral()` to
`pluginManagement.repositories`), or run the CLI, to generate `@Serializable` models from your
Supabase schema. The generator is a JVM build-time tool (like `supabase gen types`); only the code
it emits is multiplatform-common, so it works for any KMP target set including Android+iOS-only.

### Removed

- **`AdminUserAttributes.nonce`** — removed a non-functional field. GoTrue's admin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package io.github.androidpoet.supabase

object Configuration {
const val GROUP = "io.github.androidpoet"
const val VERSION = "0.9.1"
const val VERSION = "0.9.2"
const val COMPILE_SDK = 35
const val MIN_SDK = 21
}
11 changes: 11 additions & 0 deletions supabase-codegen-gradle/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import io.github.androidpoet.supabase.Configuration

plugins {
`java-gradle-plugin`
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.vanniktech.publish)
}

kotlin { jvmToolchain(17) }
Expand All @@ -24,3 +27,11 @@ gradlePlugin {
}
}
}

// With java-gradle-plugin applied, vanniktech also publishes the plugin *marker*
// artifact (io.github.androidpoet.supabase.codegen:…gradle.plugin), so consumers can
// apply it via `plugins { id("io.github.androidpoet.supabase.codegen") version "…" }`
// after adding mavenCentral() to pluginManagement.repositories.
mavenPublishing {
coordinates(Configuration.GROUP, "supabase-codegen-gradle", Configuration.VERSION)
}
10 changes: 10 additions & 0 deletions supabase-codegen/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import io.github.androidpoet.supabase.Configuration

plugins {
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.kotlin.serialization)
alias(libs.plugins.vanniktech.publish)
application
}

Expand All @@ -18,3 +21,10 @@ application {
// CLI entry point: fetch a project's schema and generate Kotlin models.
mainClass.set("io.github.androidpoet.supabase.codegen.MainKt")
}

// Published so the Gradle plugin (which depends on this module) resolves its
// transitive coordinate from Maven Central. This is a JVM build-time tool, not a
// KMP artifact — only the code it *generates* is multiplatform-common.
mavenPublishing {
coordinates(Configuration.GROUP, "supabase-codegen", Configuration.VERSION)
}
Loading