A Kotlin Multiplatform command-line application targeting macOS, Windows, Linux, and JVM platforms, built with Amper build tools. This project demonstrates a pleasant cross-platform development experience with modern Kotlin tooling.
# Update the amper
$ ./amper update --dev
# Build the app and create an executable jar
$ ./amper build [-v release]
$ ./amper package
# Run the tests
$ ./amper test
# Run the app
$ ./amper run --jvm-args=--enable-preview -m jvm
$ ./amper run -m macos --platform macosArm64
# Check version updates in amper version catalog
$ brew install deezer/repo/caupain
$ caupain
# Publish to mavenLocal
$ ./amper publish mavenLocal
# List all the binaries
$ find . \( -path "*/build/*" -type f -perm +111 -o -path "*/build/tasks/*executableJar*/*.jar" \) | grep -v -E "(test|debug|dSYM)" | xargs du -h | sort -hr
Configuration | ๐ Description | ๐ฏ Applies To |
---|---|---|
settings.kotlin |
Settings for the Kotlin compiler, thus only apply to Kotlin sources | ๐ฃ Kotlin sources |
settings.java |
Settings for the Java compiler, thus only apply to Java sources | โ Java sources |
settings.jvm |
Settings that apply to both Java and Kotlin sources (some common compiler options, settings related to the JDK in general, to the test JVM, etc.) | ๐ Both Java and Kotlin sources |