agent-claw: automated task changes
This commit is contained in:
13
cdk/node_modules/aws-cdk/lib/init-templates/app/java/.template.gitignore
generated
vendored
Normal file
13
cdk/node_modules/aws-cdk/lib/init-templates/app/java/.template.gitignore
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
.classpath.txt
|
||||
target
|
||||
.classpath
|
||||
.project
|
||||
.idea
|
||||
.settings
|
||||
.vscode
|
||||
*.iml
|
||||
|
||||
# CDK asset staging directory
|
||||
.cdk.staging
|
||||
cdk.out
|
||||
|
||||
18
cdk/node_modules/aws-cdk/lib/init-templates/app/java/README.md
generated
vendored
Normal file
18
cdk/node_modules/aws-cdk/lib/init-templates/app/java/README.md
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
# Welcome to your CDK Java project!
|
||||
|
||||
This is a blank project for CDK development with Java.
|
||||
|
||||
The `cdk.json` file tells the CDK Toolkit how to execute your app.
|
||||
|
||||
It is a [Maven](https://maven.apache.org/) based project, so you can open this project with any Maven compatible Java IDE to build and run tests.
|
||||
|
||||
## Useful commands
|
||||
|
||||
* `mvn package` compile and run tests
|
||||
* `cdk ls` list all stacks in the app
|
||||
* `cdk synth` emits the synthesized CloudFormation template
|
||||
* `cdk deploy` deploy this stack to your default AWS account/region
|
||||
* `cdk diff` compare deployed stack with current state
|
||||
* `cdk docs` open CDK documentation
|
||||
|
||||
Enjoy!
|
||||
13
cdk/node_modules/aws-cdk/lib/init-templates/app/java/cdk.json
generated
vendored
Normal file
13
cdk/node_modules/aws-cdk/lib/init-templates/app/java/cdk.json
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"app": "mvn -e -q compile exec:java",
|
||||
"watch": {
|
||||
"include": ["**"],
|
||||
"exclude": [
|
||||
"README.md",
|
||||
"cdk*.json",
|
||||
"target",
|
||||
"pom.xml",
|
||||
"src/test"
|
||||
]
|
||||
}
|
||||
}
|
||||
60
cdk/node_modules/aws-cdk/lib/init-templates/app/java/pom.xml
generated
vendored
Normal file
60
cdk/node_modules/aws-cdk/lib/init-templates/app/java/pom.xml
generated
vendored
Normal file
@@ -0,0 +1,60 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
|
||||
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>com.myorg</groupId>
|
||||
<artifactId>%name%</artifactId>
|
||||
<version>0.1</version>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<cdk.version>%cdk-version%</cdk.version>
|
||||
<constructs.version>%constructs-version%</constructs.version>
|
||||
<junit.version>5.7.1</junit.version>
|
||||
</properties>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.11.0</version>
|
||||
<configuration>
|
||||
<release>17</release>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>exec-maven-plugin</artifactId>
|
||||
<version>3.1.0</version>
|
||||
<configuration>
|
||||
<mainClass>com.myorg.%name.PascalCased%App</mainClass>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<dependencies>
|
||||
<!-- AWS Cloud Development Kit -->
|
||||
<dependency>
|
||||
<groupId>software.amazon.awscdk</groupId>
|
||||
<artifactId>aws-cdk-lib</artifactId>
|
||||
<version>${cdk.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>software.constructs</groupId>
|
||||
<artifactId>constructs</artifactId>
|
||||
<version>${constructs.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
<artifactId>junit-jupiter</artifactId>
|
||||
<version>${junit.version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
42
cdk/node_modules/aws-cdk/lib/init-templates/app/java/src/main/java/com/myorg/%name.PascalCased%App.template.java
generated
vendored
Normal file
42
cdk/node_modules/aws-cdk/lib/init-templates/app/java/src/main/java/com/myorg/%name.PascalCased%App.template.java
generated
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
package com.myorg;
|
||||
|
||||
import software.amazon.awscdk.App;
|
||||
import software.amazon.awscdk.Environment;
|
||||
import software.amazon.awscdk.StackProps;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
public class %name.PascalCased%App {
|
||||
public static void main(final String[] args) {
|
||||
App app = new App();
|
||||
|
||||
new %name.PascalCased%Stack(app, "%stackname%", StackProps.builder()
|
||||
// If you don't specify 'env', this stack will be environment-agnostic.
|
||||
// Account/Region-dependent features and context lookups will not work,
|
||||
// but a single synthesized template can be deployed anywhere.
|
||||
|
||||
// Uncomment the next block to specialize this stack for the AWS Account
|
||||
// and Region that are implied by the current CLI configuration.
|
||||
/*
|
||||
.env(Environment.builder()
|
||||
.account(System.getenv("CDK_DEFAULT_ACCOUNT"))
|
||||
.region(System.getenv("CDK_DEFAULT_REGION"))
|
||||
.build())
|
||||
*/
|
||||
|
||||
// Uncomment the next block if you know exactly what Account and Region you
|
||||
// want to deploy the stack to.
|
||||
/*
|
||||
.env(Environment.builder()
|
||||
.account("123456789012")
|
||||
.region("us-east-1")
|
||||
.build())
|
||||
*/
|
||||
|
||||
// For more information, see https://docs.aws.amazon.com/cdk/latest/guide/environments.html
|
||||
.build());
|
||||
|
||||
app.synth();
|
||||
}
|
||||
}
|
||||
|
||||
24
cdk/node_modules/aws-cdk/lib/init-templates/app/java/src/main/java/com/myorg/%name.PascalCased%Stack.template.java
generated
vendored
Normal file
24
cdk/node_modules/aws-cdk/lib/init-templates/app/java/src/main/java/com/myorg/%name.PascalCased%Stack.template.java
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
package com.myorg;
|
||||
|
||||
import software.constructs.Construct;
|
||||
import software.amazon.awscdk.Stack;
|
||||
import software.amazon.awscdk.StackProps;
|
||||
// import software.amazon.awscdk.Duration;
|
||||
// import software.amazon.awscdk.services.sqs.Queue;
|
||||
|
||||
public class %name.PascalCased%Stack extends Stack {
|
||||
public %name.PascalCased%Stack(final Construct scope, final String id) {
|
||||
this(scope, id, null);
|
||||
}
|
||||
|
||||
public %name.PascalCased%Stack(final Construct scope, final String id, final StackProps props) {
|
||||
super(scope, id, props);
|
||||
|
||||
// The code that defines your stack goes here
|
||||
|
||||
// example resource
|
||||
// final Queue queue = Queue.Builder.create(this, "%name.PascalCased%Queue")
|
||||
// .visibilityTimeout(Duration.seconds(300))
|
||||
// .build();
|
||||
}
|
||||
}
|
||||
26
cdk/node_modules/aws-cdk/lib/init-templates/app/java/src/test/java/com/myorg/%name.PascalCased%Test.template.java
generated
vendored
Normal file
26
cdk/node_modules/aws-cdk/lib/init-templates/app/java/src/test/java/com/myorg/%name.PascalCased%Test.template.java
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
// package com.myorg;
|
||||
|
||||
// import software.amazon.awscdk.App;
|
||||
// import software.amazon.awscdk.assertions.Template;
|
||||
// import java.io.IOException;
|
||||
|
||||
// import java.util.HashMap;
|
||||
|
||||
// import org.junit.jupiter.api.Test;
|
||||
|
||||
// example test. To run these tests, uncomment this file, along with the
|
||||
// example resource in java/src/main/java/com/myorg/%name.PascalCased%Stack.java
|
||||
// public class %name.PascalCased%Test {
|
||||
|
||||
// @Test
|
||||
// public void testStack() throws IOException {
|
||||
// App app = new App();
|
||||
// %name.PascalCased%Stack stack = new %name.PascalCased%Stack(app, "test");
|
||||
|
||||
// Template template = Template.fromStack(stack);
|
||||
|
||||
// template.hasResourceProperties("AWS::SQS::Queue", new HashMap<String, Number>() {{
|
||||
// put("VisibilityTimeout", 300);
|
||||
// }});
|
||||
// }
|
||||
// }
|
||||
Reference in New Issue
Block a user