cbeust / kobalt

A Kotlin-based build system for the JVM.
Apache License 2.0
432 stars 60 forks source link

Use with CI #491

Closed davidsowerby closed 6 years ago

davidsowerby commented 6 years ago

First, thanks for this project, it looks like an interesting and much simpler alternative to Gradle.

One thing I cannot find in your documentation - how would I go about handling properties (specifically access keys) while running a Kobalt build in a CI environment?

The Gradle equivalent is to prefix environment variables with ORG_GRADLEPROJECT - Gradle picks that up and converts it to a project property.

ORG_GRADLE_PROJECT_ACCESS_KEY then becomes a project property ACCESS_KEY

Is there anything similar in Kobalt?

cbeust commented 6 years ago

You could simply define these environment variables in your CI and then access them the regular, Java way, in your Build.kt?

davidsowerby commented 6 years ago

That was such an obvious answer I almost wish I hadn't asked the question :-)

Many thanks for the quick response.