From 7f9425e528a9be6ba486f844755d789dcb1e045a Mon Sep 17 00:00:00 2001 From: Ansgar Mertens Date: Thu, 18 Jan 2024 14:00:58 +0100 Subject: [PATCH] feat(docs): Mention Maven examples in note on project setup page --- .../docs/cdktf/create-and-deploy/project-setup.mdx | 2 ++ .../docs/cdktf/examples-and-guides/examples.mdx | 14 +++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/website/docs/cdktf/create-and-deploy/project-setup.mdx b/website/docs/cdktf/create-and-deploy/project-setup.mdx index 2c7daa72bb..14d3576bf9 100644 --- a/website/docs/cdktf/create-and-deploy/project-setup.mdx +++ b/website/docs/cdktf/create-and-deploy/project-setup.mdx @@ -30,6 +30,8 @@ Use these template names for the available pre-built templates: - `java` - `go` +Note: Even though the CDKTF Java template sets up the Gradle build system for performance reasons, you can still use Maven to build your project. For more information refer to the Java examples which also include Maven examples: [Java Examples](/terraform/cdktf/examples-and-guides/examples#java). + ### Use a Local Backend Add the `--local` flag to created a scaffolded project that is pre-configured to use a [local backend](/terraform/language/settings/backends/local). This means that your application stores [Terraform state](/terraform/language/state) on your local machine and all Terraform operations run locally. diff --git a/website/docs/cdktf/examples-and-guides/examples.mdx b/website/docs/cdktf/examples-and-guides/examples.mdx index 4b895452fb..9ce62496aa 100644 --- a/website/docs/cdktf/examples-and-guides/examples.mdx +++ b/website/docs/cdktf/examples-and-guides/examples.mdx @@ -69,6 +69,19 @@ Each CDK for Terraform project can specify a [backend](/terraform/language/setti ### Java +#### Gradle + +| Example | Description | Complexity | +| --------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | +| [aws-gradle](https://github.com/hashicorp/terraform-cdk/tree/main/examples/java/aws-gradle) | Provisions a DynamoDB table on the AWS provider. | Low | +| [azure-gradle](https://github.com/hashicorp/terraform-cdk/tree/main/examples/java/azure-gradle) | Provisions a Virtual Network on Microsoft Azure. | Low | +| [google-gradle](https://github.com/hashicorp/terraform-cdk/tree/main/examples/java/google-gradle) | Creates a simple Compute Instance with the Google Cloud Platform Provider. | Low | +| [gradle-shared-module](https://github.com/hashicorp/terraform-cdk/tree/main/examples/java/gradle-shared-module) | Uses gradle to build and share two AWS modules. [Modules](/terraform/cdktf/concepts/modules) are distinct configurations that you can package and reuse across projects and teams. | Low | +| [kubernetes-gradle](https://github.com/hashicorp/terraform-cdk/tree/main/examples/java/kubernetes-gradle) | Schedules and exposes a NGINX deployment on a Kubernetes cluster. | Low | +| [ucloud-gradle](https://github.com/hashicorp/terraform-cdk/tree/main/examples/java/ucloud-gradle) | Provisions a Linux base image on UCloud. | Low | + +#### Maven + | Example | Description | Complexity | | --------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | | [aws-lambda-end-to-end](https://github.com/hashicorp/cdktf-integration-serverless-java-example) | An end-to-end example for a serverless web application hosted on AWS. | High | @@ -76,7 +89,6 @@ Each CDK for Terraform project can specify a [backend](/terraform/language/setti | [azure](https://github.com/hashicorp/terraform-cdk/tree/main/examples/java/azure) | Provisions a Virtual Network on Microsoft Azure. | Low | | [google-end-to-end](https://github.com/hashicorp/cdktf-integration-serverless-java-gcp-example) | An end-to-end example for a serverless web application hosted on the Google Cloud Provider. | High | | [google](https://github.com/hashicorp/terraform-cdk/tree/main/examples/java/google) | Creates a simple Compute Instance with the Google Cloud Platform Provider. | Low | -| [gradle-shared-module](https://github.com/hashicorp/terraform-cdk/tree/main/examples/java/gradle-shared-module) | Uses gradle to build and share two AWS modules. [Modules](/terraform/cdktf/concepts/modules) are distinct configurations that you can package and reuse across projects and teams. | Low | | [kubernetes](https://github.com/hashicorp/terraform-cdk/tree/main/examples/java/kubernetes) | Schedules and exposes a NGINX deployment on a Kubernetes cluster. | Low | | [ucloud](https://github.com/hashicorp/terraform-cdk/tree/main/examples/java/ucloud) | Provisions a Linux base image on UCloud. | Low |