Skip to content

Commit

Permalink
Merge pull request #471 from jsteinich/java_feature_flags
Browse files Browse the repository at this point in the history
Include feature flags in java template and test
  • Loading branch information
skorfmann authored Jan 4, 2021
2 parents c8c5d51 + 8f867b0 commit 790ab57
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
5 changes: 4 additions & 1 deletion packages/cdktf-cli/templates/java/cdktf.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"language": "java",
"app": "mvn -e -q compile exec:java",
"terraformProviders": ["aws@~> 2.0"]
"terraformProviders": ["aws@~> 2.0"],
"context": {
{{futureFlags}}
}
}
5 changes: 4 additions & 1 deletion test/test-java-app/cdktf.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"language": "java",
"app": "mvn -e -q compile exec:java",
"terraformProviders": ["aws@~> 2.0"]
"terraformProviders": ["aws@~> 2.0"],
"context": {
"excludeStackIdFromLogicalIds": "true"
}
}
4 changes: 2 additions & 2 deletions test/test-java-app/expected/cdk.tf.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
},
"resource": {
"aws_sns_topic": {
"javasimple_Topic_717B73A3": {
"Topic": {
"display_name": "my-first-sns-topic",
"//": {
"metadata": {
"path": "java-simple/Topic",
"uniqueId": "javasimple_Topic_717B73A3"
"uniqueId": "Topic"
}
}
}
Expand Down

0 comments on commit 790ab57

Please sign in to comment.