This is a simple “Hello-World” SpringBoot application written in Java, which downloads the required and available packages from Assured OSS and the rest non-available packages from Maven Central Repository (open-source). The aim of this document is to define how to start working on sample starter projects using Assured OSS packages, which can help a user to quickly start using Assured OSS with minimal friction. Users can refer to Assured Open Source Software for further reading and information about Assured OSS.
Run the following command to clone the project in your local setup:
git clone https://github.com/google/aoss-springboot-sample-starter-project.git
- Install the latest version of the Google Cloud CLI.
- If you have installed the Google Cloud CLI previously, make sure you have the latest version by running the command:
gcloud components update
- To enable access to Assured OSS, submit the customer enablement form.
- Validate connectivity to Assured OSS for the requested service accounts.
- Enable the Artifact Registry API for the parent Google Cloud project of the service accounts used to access Assured OSS.
Prerequisites for setting up Application Default Credentials, set up authentication first :
- Generate and download the service account key.
- Revoke any existing auth by using the following command.
gcloud auth revoke
- Authenticate using the command:
gcloud auth login --cred-file=FILEPATH.json
Where FILEPATH is the path to the service account key or the credential config file.
- Update Application Default Credentials using the following command:
export GOOGLE_APPLICATION_CREDENTIALS=FILEPATH.json
Where FILEPATH is the path to the service account key.
Refer to set up authentication for further information.
According to the build automation tool the user can choose between maven or gradle, and can refer to the respective README of the particular folder for futher modifaction and details to run the sample project