File tree Expand file tree Collapse file tree 5 files changed +21
-4
lines changed
src/main/kotlin/com/powersync/plugins Expand file tree Collapse file tree 5 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ development=true
1919RELEASE_SIGNING_ENABLED =true
2020# Library config
2121GROUP =com.powersync
22- LIBRARY_VERSION =1.10.0
22+ LIBRARY_VERSION =1.10.1
2323GITHUB_REPO =https://github.com/powersync-ja/powersync-kotlin.git
2424# POM
2525POM_URL =https://github.com/powersync-ja/powersync-kotlin/
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ plugins {
55 alias(libs.plugins.kotlinMultiplatform)
66 alias(libs.plugins.skie)
77 alias(libs.plugins.kotlinter)
8+ id(" com.powersync.plugins.version" )
89}
910
1011kotlin {
Original file line number Diff line number Diff line change @@ -11,6 +11,11 @@ gradlePlugin {
1111 id = " com.powersync.plugins.sonatype"
1212 implementationClass = " com.powersync.plugins.sonatype.SonatypeCentralUploadPlugin"
1313 }
14+
15+ val versionPlugin by plugins.creating {
16+ id = " com.powersync.plugins.version"
17+ implementationClass = " com.powersync.plugins.PowerSyncVersionPlugin"
18+ }
1419}
1520
1621// The target release option here is the version of the JVM running the build by default, but Kotlin
Original file line number Diff line number Diff line change 1+ package com.powersync.plugins
2+
3+ import org.gradle.api.Plugin
4+ import org.gradle.api.Project
5+
6+ internal class PowerSyncVersionPlugin : Plugin <Project > {
7+ override fun apply (project : Project ) {
8+ project.group = project.property(" GROUP" ) as String
9+ project.version = project.property(" LIBRARY_VERSION" ) as String
10+ }
11+ }
Original file line number Diff line number Diff line change 11package com.powersync.plugins.sonatype
22
3+ import com.powersync.plugins.PowerSyncVersionPlugin
34import org.gradle.api.Plugin
45import org.gradle.api.Project
56import com.vanniktech.maven.publish.MavenPublishPlugin
@@ -9,10 +10,9 @@ import com.vanniktech.maven.publish.MavenPublishBaseExtension
910
1011internal class SonatypeCentralUploadPlugin : Plugin <Project > {
1112 override fun apply (project : Project ) {
12- project.logger.info(" Applying the `gradle-maven-publish` plugin" )
13- project.group = project.property(" GROUP" ) as String
14- project.version = project.property(" LIBRARY_VERSION" ) as String
13+ project.plugins.apply (PowerSyncVersionPlugin ::class .java)
1514
15+ project.logger.info(" Applying the `gradle-maven-publish` plugin" )
1616 project.plugins.apply (MavenPublishPlugin ::class .java)
1717
1818 val extension = project.extensions.create(
You can’t perform that action at this time.
0 commit comments