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
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ development=true
RELEASE_SIGNING_ENABLED=true
# Library config
GROUP=com.powersync
LIBRARY_VERSION=1.10.0
LIBRARY_VERSION=1.10.1
GITHUB_REPO=https://github.com/powersync-ja/powersync-kotlin.git
# POM
POM_URL=https://github.com/powersync-ja/powersync-kotlin/
Expand Down
1 change: 1 addition & 0 deletions internal/PowerSyncKotlin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ plugins {
alias(libs.plugins.kotlinMultiplatform)
alias(libs.plugins.skie)
alias(libs.plugins.kotlinter)
id("com.powersync.plugins.version")
}

kotlin {
Expand Down
5 changes: 5 additions & 0 deletions plugins/sonatype/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ gradlePlugin {
id = "com.powersync.plugins.sonatype"
implementationClass = "com.powersync.plugins.sonatype.SonatypeCentralUploadPlugin"
}

val versionPlugin by plugins.creating {
id = "com.powersync.plugins.version"
implementationClass = "com.powersync.plugins.PowerSyncVersionPlugin"
}
}

// The target release option here is the version of the JVM running the build by default, but Kotlin
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.powersync.plugins

import org.gradle.api.Plugin
import org.gradle.api.Project

internal class PowerSyncVersionPlugin: Plugin<Project> {
override fun apply(project: Project) {
project.group = project.property("GROUP") as String
project.version = project.property("LIBRARY_VERSION") as String
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.powersync.plugins.sonatype

import com.powersync.plugins.PowerSyncVersionPlugin
import org.gradle.api.Plugin
import org.gradle.api.Project
import com.vanniktech.maven.publish.MavenPublishPlugin
Expand All @@ -9,10 +10,9 @@ import com.vanniktech.maven.publish.MavenPublishBaseExtension

internal class SonatypeCentralUploadPlugin : Plugin<Project> {
override fun apply(project: Project) {
project.logger.info("Applying the `gradle-maven-publish` plugin")
project.group = project.property("GROUP") as String
project.version = project.property("LIBRARY_VERSION") as String
project.plugins.apply(PowerSyncVersionPlugin::class.java)

project.logger.info("Applying the `gradle-maven-publish` plugin")
project.plugins.apply(MavenPublishPlugin::class.java)

val extension = project.extensions.create(
Expand Down