|
1 | 1 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
2 |
| - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| 2 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
3 | 3 | <modelVersion>4.0.0</modelVersion>
|
4 | 4 |
|
5 | 5 | <groupId>software.amazon.lambda.examples</groupId>
|
6 | 6 | <version>1.16.1</version>
|
7 | 7 | <artifactId>powertools-examples-core-cdk</artifactId>
|
8 | 8 | <packaging>jar</packaging>
|
9 |
| - |
| 9 | + |
10 | 10 | <name>Powertools for AWS Lambda (Java) library Examples - Core</name>
|
11 | 11 |
|
12 | 12 | <properties>
|
|
38 | 38 | <version>1.2.2</version>
|
39 | 39 | </dependency>
|
40 | 40 | <dependency>
|
41 |
| - <groupId>com.amazonaws</groupId> |
42 |
| - <artifactId>aws-lambda-java-events</artifactId> |
43 |
| - <version>3.11.2</version> |
| 41 | + <groupId>com.amazonaws</groupId> |
| 42 | + <artifactId>aws-lambda-java-events</artifactId> |
| 43 | + <version>3.11.2</version> |
44 | 44 | </dependency>
|
45 | 45 | <dependency>
|
46 | 46 | <groupId>org.apache.logging.log4j</groupId>
|
|
54 | 54 | </dependency>
|
55 | 55 |
|
56 | 56 | <dependency>
|
57 |
| - <groupId>junit</groupId> |
58 |
| - <artifactId>junit</artifactId> |
59 |
| - <version>4.13.2</version> |
60 |
| - <scope>test</scope> |
| 57 | + <groupId>junit</groupId> |
| 58 | + <artifactId>junit</artifactId> |
| 59 | + <version>4.13.2</version> |
| 60 | + <scope>test</scope> |
61 | 61 | </dependency>
|
62 | 62 | </dependencies>
|
63 | 63 |
|
64 | 64 | <build>
|
65 |
| - <plugins> |
66 |
| - <plugin> |
67 |
| - <groupId>dev.aspectj</groupId> |
68 |
| - <artifactId>aspectj-maven-plugin</artifactId> |
69 |
| - <version>1.13.1</version> |
70 |
| - <configuration> |
71 |
| - <source>${maven.compiler.source}</source> |
72 |
| - <target>${maven.compiler.target}</target> |
73 |
| - <complianceLevel>${maven.compiler.target}</complianceLevel> |
74 |
| - <aspectLibraries> |
75 |
| - <aspectLibrary> |
76 |
| - <groupId>software.amazon.lambda</groupId> |
77 |
| - <artifactId>powertools-tracing</artifactId> |
78 |
| - </aspectLibrary> |
79 |
| - <aspectLibrary> |
80 |
| - <groupId>software.amazon.lambda</groupId> |
81 |
| - <artifactId>powertools-logging</artifactId> |
82 |
| - </aspectLibrary> |
83 |
| - <aspectLibrary> |
84 |
| - <groupId>software.amazon.lambda</groupId> |
85 |
| - <artifactId>powertools-metrics</artifactId> |
86 |
| - </aspectLibrary> |
87 |
| - </aspectLibraries> |
88 |
| - </configuration> |
89 |
| - <executions> |
90 |
| - <execution> |
91 |
| - <goals> |
92 |
| - <goal>compile</goal> |
93 |
| - </goals> |
94 |
| - </execution> |
95 |
| - </executions> |
96 |
| - </plugin> |
97 |
| - <plugin> |
98 |
| - <groupId>org.apache.maven.plugins</groupId> |
99 |
| - <artifactId>maven-shade-plugin</artifactId> |
100 |
| - <version>3.5.0</version> |
101 |
| - <executions> |
102 |
| - <execution> |
103 |
| - <phase>package</phase> |
104 |
| - <goals> |
105 |
| - <goal>shade</goal> |
106 |
| - </goals> |
107 |
| - <configuration> |
108 |
| - <transformers> |
109 |
| - <transformer |
110 |
| - implementation="com.github.edwgiz.maven_shade_plugin.log4j2_cache_transformer.PluginsCacheFileTransformer"> |
111 |
| - </transformer> |
112 |
| - </transformers> |
113 |
| - </configuration> |
114 |
| - </execution> |
115 |
| - </executions> |
116 |
| - <dependencies> |
117 |
| - <dependency> |
118 |
| - <groupId>com.github.edwgiz</groupId> |
119 |
| - <artifactId>maven-shade-plugin.log4j2-cachefile-transformer</artifactId> |
120 |
| - <version>2.15</version> |
121 |
| - </dependency> |
122 |
| - </dependencies> |
123 |
| - </plugin> |
124 |
| - </plugins> |
| 65 | + <finalName>helloworld-lambda</finalName> |
| 66 | + <plugins> |
| 67 | + <plugin> |
| 68 | + <groupId>dev.aspectj</groupId> |
| 69 | + <artifactId>aspectj-maven-plugin</artifactId> |
| 70 | + <version>1.13.1</version> |
| 71 | + <configuration> |
| 72 | + <source>${maven.compiler.source}</source> |
| 73 | + <target>${maven.compiler.target}</target> |
| 74 | + <complianceLevel>${maven.compiler.target}</complianceLevel> |
| 75 | + <aspectLibraries> |
| 76 | + <aspectLibrary> |
| 77 | + <groupId>software.amazon.lambda</groupId> |
| 78 | + <artifactId>powertools-tracing</artifactId> |
| 79 | + </aspectLibrary> |
| 80 | + <aspectLibrary> |
| 81 | + <groupId>software.amazon.lambda</groupId> |
| 82 | + <artifactId>powertools-logging</artifactId> |
| 83 | + </aspectLibrary> |
| 84 | + <aspectLibrary> |
| 85 | + <groupId>software.amazon.lambda</groupId> |
| 86 | + <artifactId>powertools-metrics</artifactId> |
| 87 | + </aspectLibrary> |
| 88 | + </aspectLibraries> |
| 89 | + </configuration> |
| 90 | + <executions> |
| 91 | + <execution> |
| 92 | + <goals> |
| 93 | + <goal>compile</goal> |
| 94 | + </goals> |
| 95 | + </execution> |
| 96 | + </executions> |
| 97 | + </plugin> |
| 98 | + <plugin> |
| 99 | + <groupId>org.apache.maven.plugins</groupId> |
| 100 | + <artifactId>maven-shade-plugin</artifactId> |
| 101 | + <version>3.5.0</version> |
| 102 | + <executions> |
| 103 | + <execution> |
| 104 | + <phase>package</phase> |
| 105 | + <goals> |
| 106 | + <goal>shade</goal> |
| 107 | + </goals> |
| 108 | + <configuration> |
| 109 | + <transformers> |
| 110 | + <transformer |
| 111 | + implementation="com.github.edwgiz.maven_shade_plugin.log4j2_cache_transformer.PluginsCacheFileTransformer"> |
| 112 | + </transformer> |
| 113 | + </transformers> |
| 114 | + </configuration> |
| 115 | + </execution> |
| 116 | + </executions> |
| 117 | + <dependencies> |
| 118 | + <dependency> |
| 119 | + <groupId>com.github.edwgiz</groupId> |
| 120 | + <artifactId>maven-shade-plugin.log4j2-cachefile-transformer</artifactId> |
| 121 | + <version>2.15</version> |
| 122 | + </dependency> |
| 123 | + </dependencies> |
| 124 | + </plugin> |
| 125 | + </plugins> |
125 | 126 | </build>
|
126 | 127 | <profiles>
|
127 | 128 | <!-- Use a profile to enforce AspectJ version 1.9.7 if we are Java 1.8 otherwise we'll get class
|
|
0 commit comments