Simplify the management of multiple environments for any Kotlin project
It's a Gradle plugin that allows you to:
- Switch between environments easily
(qa, debug, prod, or anything really)
- Define multiple environments in a consistent way between different types of projects (even mobile apps or backend services)
- Use in any Kotlin project (multiplatform as well)
Additionally, there is an Intellij Plugin that makes it easier to switch environments
- Set up the Gradle Plugin
- (Optional) Install the IntelliJ Plugin
If you have multiple environments like staging, debug, qa, production
or some custom one, it becomes a pain to
switch between them as you would usually need to pass some arguments to each task
that you run or have multiple
run configurations
with those arguments saved there
If you have a mobile app with multiple environments, you usually need to generate a file depending on which environment you want to configure. However, for backend services you would need to expose the environment contents by environment variables, having two different ways when working with environments
It's usually not explicit what the environment variables you need to run or configure a project