Project configuration with Amper
Amper is a new tool created by JetBrains to help you configure projects for building, packaging, publishing, and more. With Amper, you can spend less time dealing with build systems and focus on addressing real business challenges instead.
Amper lets you create configuration files for Kotlin Multiplatform applications that work on the JVM, Android, iOS, macOS, Windows, and Linux, as well as for multiplatform libraries that work with all of these supported targets.
How Amper works
Amper is a standalone CLI application, and allows configuring your project using YAML files.
With Amper, you can set up a platform-specific applications and shared Kotlin libraries. They are declared as modules in a module.yaml manifest file using a special declarative DSL.
The core concept of this DSL is Kotlin Multiplatform. Amper allows you to configure Kotlin Multiplatform projects quickly and easily without having to dive deep into complex concepts. The Amper DSL offers a special syntax enabling you to work with multiplatform configurations, including dependencies, settings, and so on.
Here is an example of Amper's module file for a Kotlin Multiplatform shared library that can be used with JVM, Android, and iOS applications:
The
productsection defines the project type and the list of targeted platforms.The
dependenciessection adds Maven dependencies, and in the future may support platform-specific package managers, such as CocoaPods and Swift Package Manager.The
@platformqualifier marks platform-specific sections, including dependencies and settings.
Try Amper
Check out Amper's Getting Started guide to try it out yourself.
Feel free to submit any feedback you might have to our issue tracker. Your input will help us shape the future of Amper.
What's next
Check out the JetBrains blog to learn more about our motivation behind creating Amper, its use cases, the current state of the project, and its future.
Check out the Amper website to read the guides and comprehensive docs.