Skip to content

Commit 357427a

Browse files
committed
updated config
1 parent 5b06b87 commit 357427a

File tree

4 files changed

+56
-3
lines changed

4 files changed

+56
-3
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#/io/vertx/core/VertxOptions
2+
3+
clustered=false

pom.xml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
<dependency>
1010
<groupId>com.amazonaws</groupId>
1111
<artifactId>aws-lambda-java-core</artifactId>
12-
<version>1.1.0</version>
12+
<version>1.2.0</version>
1313
</dependency>
1414
<dependency>
1515
<groupId>com.amazonaws</groupId>
1616
<artifactId>aws-lambda-java-events</artifactId>
17-
<version>1.1.0</version>
17+
<version>1.3.0</version>
1818
</dependency>
1919
<dependency>
2020
<groupId>in.erail</groupId>
@@ -31,9 +31,29 @@
3131
<dependency>
3232
<groupId>com.amazonaws</groupId>
3333
<artifactId>aws-lambda-java-log4j2</artifactId>
34-
<version>1.0.0</version>
34+
<version>1.1.0</version>
3535
</dependency>
3636
</dependencies>
37+
<build>
38+
<plugins>
39+
<plugin>
40+
<artifactId>maven-assembly-plugin</artifactId>
41+
<version>2.6</version>
42+
<executions>
43+
<execution>
44+
<id>commong-config</id>
45+
<phase>package</phase>
46+
<goals>
47+
<goal>single</goal>
48+
</goals>
49+
<configuration>
50+
<descriptor>src/assembly/common-config.xml</descriptor>
51+
</configuration>
52+
</execution>
53+
</executions>
54+
</plugin>
55+
</plugins>
56+
</build>
3757
<properties>
3858
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3959
<maven.compiler.source>1.8</maven.compiler.source>

src/assembly/common-config.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
5+
<id>common-config</id>
6+
<formats>
7+
<format>zip</format>
8+
</formats>
9+
<fileSets>
10+
<fileSet>
11+
<directory>${project.basedir}/config-layers/common</directory>
12+
<outputDirectory>/config</outputDirectory>
13+
</fileSet>
14+
</fileSets>
15+
</assembly>

src/main/resources/log4j2.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Configuration packages="com.amazonaws.services.lambda.runtime.log4j2.LambdaAppender">
3+
<Appenders>
4+
<Lambda name="Lambda">
5+
<PatternLayout>
6+
<pattern>%d{yyyy-MM-dd HH:mm:ss} %X{AWSRequestId} %-5p %c{1}:%L - %m%n</pattern>
7+
</PatternLayout>
8+
</Lambda>
9+
</Appenders>
10+
<Loggers>
11+
<Root level="debug">
12+
<AppenderRef ref="Lambda" />
13+
</Root>
14+
</Loggers>
15+
</Configuration>

0 commit comments

Comments
 (0)