Skip to content

Migrate build system from Gradle to Amper 0.10.0 - #2

Open
pavi2410 wants to merge 2 commits into
mainfrom
migration/amper-0.10.0
Open

Migrate build system from Gradle to Amper 0.10.0#2
pavi2410 wants to merge 2 commits into
mainfrom
migration/amper-0.10.0

Conversation

@pavi2410

Copy link
Copy Markdown
Owner

Summary

  • migrate project build from Gradle to Amper 0.10.0
  • move samples to top-level modules (sample-android, sample-desktop)
  • update CI/release workflows to use ./amper commands
  • keep Android release artifact as APK for sideloading
  • simplify desktop release to a single executable JAR build
  • enable core publish configuration for Maven Central via Amper

Notes

  • main was reset to the last Gradle-based working commit (902a04a)
  • this PR contains all migration work on a dedicated branch

- Replace all build.gradle.kts files with Amper module.yaml configs
- Add project.yaml for multi-module project definition
- Restructure source directories to Amper layout:
  - commonMain/kotlin/ -> src/
  - androidMain/kotlin/ -> src@android/
  - desktopMain/kotlin/ -> src@jvm/
  - commonTest/kotlin/ -> test/
  - desktopTest/kotlin/ -> test@jvm/
  - sample/android/src/main/{java,res}/ -> sample-android/{src,res}/
  - sample/desktop/src/desktopMain/kotlin/ -> sample-desktop/src/
- Rename sample/android -> sample-android, sample/desktop -> sample-desktop
- Use Ktor toolchain catalog ($ktor.*) instead of $libs.ktor.*
- Use Kotlin serialization toolchain catalog ($kotlin.serialization.*)
- Trim libs.versions.toml to only entries without toolchain catalogs
- Remove Gradle wrapper, settings.gradle.kts, gradle.properties
- Update DEVELOPMENT.md for Amper commands and new project layout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant