Caution
This project is no longer actively maintained. Use at your own risk.
A fast, declarative, and extensible package manager for Kotlin. Inspired by NPM, Yarn, and Nix, KPM simplifies dependency management and reproducible builds in Kotlin projects.
The following commands have been implemented:
init: Initialize a new KPM project using the base template.install: Apply thekpm.jsonfile to the current project, installing dependencies and generating akpm-lock.jsonfile.build: Build the KPM project defined in the manifest file.gc: Clean up unused dependencies.version: Display the current version of KPM, Java, and Kotlin.--help: Show help information for KPM commands.
Add an environment variable named KOTLIN_HOME pointing to the directory where Kotlin is installed.
Examples (Windows):
C:\Program Files\Kotlin\binis not valid,C:\Program Files\Kotlin\libis not valid,C:\Program Files\Kotlinis valid.
Dependencies are managed through the kpm.json manifest file in your project root. Each dependency is specified using Maven coordinates in the following format:
"group:artifact:version"
Example kpm.json file:
{
"name": "my-kotlin-app",
"version": "1.0",
"main": "com.example.app.AppKt",
"dependencies": [
"org.jetbrains.kotlin:kotlin-stdlib:1.8.0",
"com.example:my-library:1.0.0"
]
}This project is licensed under the Apache License 2.0. See the LICENSE file for details.
Contributions are welcome! Feel free to open an issue or submit a pull request.