Foundry CLIs¶
An artifact containing basic CLI utilities for Kotlin.
Installation¶
// In Gradle
dependencies {
implementation("com.slack.foundry:cli:<version>")
}
// In kotlin script
@file:DependsOn("com.slack.foundry:cli:{version}")
Local testing¶
If consuming these utilities from a kotlin script file, you can test changes like so:
- Set the version in
gradle.properties
, such as2.5.0-LOCAL1
. - Run
./gradlew publishToMavenLocal
to publish the current version to your local maven repository. - In your script file, add the local repository and update the version:
@file:Repository("file:///Users/{username}/.m2/repository") @file:DependsOn("com.slack.foundry:cli:{version you set in gradle.properties}")
- Repeat as needed while testing, incrementing the version number each time to avoid caching issues.