Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 1.56 KB

File metadata and controls

29 lines (24 loc) · 1.56 KB

Kotlin Client Examples

Examples of using the Kgen code generator to generate Google Cloud client libraries in Kotlin.

Running

To run the samples in this repository you must have a Google Cloud project that you can use. To get started:

  1. Create a project, if you don't already have one
  2. Enable billing for your project
  3. Enable the APIs that the examples use:
  4. Create a new service account with a JSON keyfile
  5. Define an environment variable so the example application uses your service account credentials:
    $ export GOOGLE_APPLICATION_CREDENTIALS=<path to your service account JSON file>
    $ export PROJECT=<name_of_your_gcp_project>
  6. Run via gradle:
    $ ./gradlew run --args language

To switch between examples modify the flag passed to the --args parameter.