Skip to content

Commit

Permalink
Merge pull request #4 from niyajali/fix-library-release
Browse files Browse the repository at this point in the history
Fix: Release Workflow and API Check
  • Loading branch information
niyajali authored Sep 27, 2024
2 parents 995eeec + b4e30df commit 18840d2
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ jobs:
if: matrix.os == 'ubuntu-latest'
run: ./gradlew build

- name: KotlinPoet check
- name: API check
if: "matrix.os != 'ubuntu-latest'"
run: ./gradlew check
2 changes: 0 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Publish release to Maven Central

on:
release:
types: [published]
workflow_dispatch:
inputs:
version:
Expand Down
14 changes: 7 additions & 7 deletions RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ Releasing
=========

1. Change the version in `gradle.properties` to a non-SNAPSHOT version.
2. Update `docs/changelog.md` for the impending release.
3. `git commit -am "Prepare for release X.Y.Z."` (where X.Y.Z is the new version)
4. `git tag -a X.Y.Z -m "Version X.Y.Z"` (where X.Y.Z is the new version).
5. Update `gradle.properties` to the next SNAPSHOT version.
6. `git commit -am "Prepare next development version."`.
7. `git push && git push --tags`.
2. `git commit -am "Prepare for release X.Y.Z."` (where X.Y.Z is the new version)
3. `git tag -a X.Y.Z -m "Version X.Y.Z"` (where X.Y.Z is the new version).
4. Update `gradle.properties` to the next SNAPSHOT version.
5. `git commit -am "Prepare next development version."`.
6. `git push && git push --tags`.

This will trigger a GitHub Action workflow which will create a GitHub release and upload the
release artifacts to [Maven Central][maven-central].

[maven-central]: https://repo.maven.apache.org/maven2/com/squareup/kotlinpoet/
[maven-central]: https://repo.maven.apache.org/maven2/org/openMF/fineract-client-cmp/
```
6 changes: 5 additions & 1 deletion fineract-client/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ plugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.kover)
alias(libs.plugins.dokka)
alias(libs.plugins.maven)
id("kotlinx-serialization")
alias(libs.plugins.ksp)
alias(libs.plugins.ktorfit)
alias(libs.plugins.maven)
}

kotlin {
Expand Down Expand Up @@ -67,6 +67,10 @@ dependencies {
add("kspIosSimulatorArm64", libs.ktorfit.ksp)
}

tasks.named("sourcesJar").configure {
dependsOn(tasks.named("kspCommonMainKotlinMetadata"))
}

// Maven publishing configuration
val artifactId = "fineract-client-kmp"
val mavenGroup: String by project
Expand Down

0 comments on commit 18840d2

Please sign in to comment.