{"repo":"GoogleCloudPlatform/java-docs-samples","free":true,"listed":false,"github":"https://github.com/GoogleCloudPlatform/java-docs-samples","clone":"git clone https://github.com/GoogleCloudPlatform/java-docs-samples.git","description":"Java and Kotlin Code samples used on cloud.google.com","language":"Java","stars":1905,"topics":["java","kotlin","appengine","auth","automl","cdn","vision","video","translate","samples"],"license":"Apache-2.0","category":"auth-billing-email","readme_excerpt":"Google Cloud Platform Java Samples This repository holds sample code written in Java that demonstrates the Google Cloud Platform. Some samples have accompanying guides on . See respective README files for details. Google Cloud Samples To browse ready to use code samples check Google Cloud Samples. Set Up 1. Set up your Java Development Environment 1. Clone this repository: git clone https://github.com/GoogleCloudPlatform/java-docs-samples.git 1. Obtain authentication credentials. Create local credentials by running the following command and following the oauth2 flow (read more about the command [here][auth command]): gcloud auth application-default login Or manually set the GOOGLE APPLICATION CREDENTIALS environment variable to point to a service account key JSON file path. Learn more at [Setting Up Authentication for Server to Server Production Applications][ADC]. Note: Application Default Credentials is able to implicitly find the credentials as long as the application is running on Compute Engine, Kubernetes Engine, App Engine, or Cloud Functions. Contributing See the Contributing Guide Licensing See LICENSE Supported Java runtimes Every submitted change has to pass all checks that run on the testing environments with Java 11 and Java 17 runtimes before merging the change to the main branch. We run periodic checks on the environments with Java 8 and Java 21 runtimes but we don't enforce passing these tests at the moment. Because Java 8 is a [supported Java runtime][support","default_branch":null,"files":null,"tree":[],"storefront":"/r/GoogleCloudPlatform","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/GoogleCloudPlatform/java-docs-samples/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}