Skip to content

Commit f9be7fd

Browse files
authored
Build android-sdk-compose locally in the publish workflow (#2)
The provider resolves `com.mapconductor:compose` by coordinate in a standalone build, and `compose` itself depends on `core`. The workflow only cloned `android-sdk-core`, so dependency resolution fails: `compose` is on neither Maven Central nor the runner's mavenLocal. Clone and locally publish `android-sdk-compose` as well, after core and after mavenLocal is enabled. The workflow predates the Compose layer being split out.
1 parent 9a8ef45 commit f9be7fd

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/publish-maven-central.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,13 @@ jobs:
2929
echo "${{ secrets.GPG_PRIVATE_KEY }}" | base64 --decode > "$HOME/secring.gpg"
3030
gpg --batch --import "$HOME/secring.gpg"
3131
32-
- name: Build core locally
32+
- name: Build core and compose locally
3333
run: |
34+
# このモジュールは単体ビルドだと com.mapconductor:compose を座標で解決する
35+
# (build.gradle.kts の findProject 分岐)。compose はさらに core に依存するので、
36+
# core -> mavenLocal を有効化 -> compose の順に積む。
37+
# **compose を積まないと依存解決で落ちる。** Compose 層を切り出す前の
38+
# ワークフローは core だけを clone していた。
3439
git clone --depth 1 https://github.com/MapConductor/android-sdk-core.git _core
3540
cd _core
3641
./gradlew --no-daemon publishToMavenLocal
@@ -45,6 +50,11 @@ jobs:
4550
}
4651
EOF
4752
53+
git clone --depth 1 https://github.com/MapConductor/android-sdk-compose.git _compose
54+
cd _compose
55+
./gradlew --no-daemon publishToMavenLocal
56+
cd ..
57+
4858
- name: Check version and publish to Maven Central
4959
env:
5060
ORG_GRADLE_PROJECT_ossrh_username: ${{ secrets.OSSRH_USERNAME }}

0 commit comments

Comments
 (0)