Skip to content

Commit 18840d2

Browse files
authored
Merge pull request #4 from niyajali/fix-library-release
Fix: Release Workflow and API Check
2 parents 995eeec + b4e30df commit 18840d2

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ jobs:
3939
if: matrix.os == 'ubuntu-latest'
4040
run: ./gradlew build
4141

42-
- name: KotlinPoet check
42+
- name: API check
4343
if: "matrix.os != 'ubuntu-latest'"
4444
run: ./gradlew check

.github/workflows/release.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Publish release to Maven Central
22

33
on:
4-
release:
5-
types: [published]
64
workflow_dispatch:
75
inputs:
86
version:

RELEASING.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ Releasing
22
=========
33

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

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

15-
[maven-central]: https://repo.maven.apache.org/maven2/com/squareup/kotlinpoet/
14+
[maven-central]: https://repo.maven.apache.org/maven2/org/openMF/fineract-client-cmp/
15+
```

fineract-client/build.gradle.kts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ plugins {
1414
alias(libs.plugins.kotlin.multiplatform)
1515
alias(libs.plugins.kover)
1616
alias(libs.plugins.dokka)
17-
alias(libs.plugins.maven)
1817
id("kotlinx-serialization")
1918
alias(libs.plugins.ksp)
2019
alias(libs.plugins.ktorfit)
20+
alias(libs.plugins.maven)
2121
}
2222

2323
kotlin {
@@ -67,6 +67,10 @@ dependencies {
6767
add("kspIosSimulatorArm64", libs.ktorfit.ksp)
6868
}
6969

70+
tasks.named("sourcesJar").configure {
71+
dependsOn(tasks.named("kspCommonMainKotlinMetadata"))
72+
}
73+
7074
// Maven publishing configuration
7175
val artifactId = "fineract-client-kmp"
7276
val mavenGroup: String by project

0 commit comments

Comments
 (0)