| 
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.18.0-SNAPSHOT</version>  | 
7 | 7 |     <artifactId>powertools-examples-core-sam</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>  | 
13 | 13 |         <log4j.version>2.20.0</log4j.version>  | 
14 | 14 |         <maven.compiler.source>1.8</maven.compiler.source>  | 
15 | 15 |         <maven.compiler.target>1.8</maven.compiler.target>  | 
16 |  | -        <maven.deploy.skip>true</maven.deploy.skip>  | 
17 | 16 |     </properties>  | 
18 | 17 | 
 
  | 
19 | 18 |     <dependencies>  | 
 | 
38 | 37 |             <version>1.2.3</version>  | 
39 | 38 |         </dependency>  | 
40 | 39 |         <dependency>  | 
41 |  | -          <groupId>com.amazonaws</groupId>  | 
42 |  | -          <artifactId>aws-lambda-java-events</artifactId>  | 
43 |  | -          <version>3.11.2</version>  | 
 | 40 | +            <groupId>com.amazonaws</groupId>  | 
 | 41 | +            <artifactId>aws-lambda-java-events</artifactId>  | 
 | 42 | +            <version>3.11.2</version>  | 
44 | 43 |         </dependency>  | 
45 | 44 |         <dependency>  | 
46 | 45 |             <groupId>org.apache.logging.log4j</groupId>  | 
 | 
54 | 53 |         </dependency>  | 
55 | 54 | 
 
  | 
56 | 55 |         <dependency>  | 
57 |  | -          <groupId>junit</groupId>  | 
58 |  | -          <artifactId>junit</artifactId>  | 
59 |  | -          <version>4.13.2</version>  | 
60 |  | -          <scope>test</scope>  | 
 | 56 | +            <groupId>junit</groupId>  | 
 | 57 | +            <artifactId>junit</artifactId>  | 
 | 58 | +            <version>4.13.2</version>  | 
 | 59 | +            <scope>test</scope>  | 
61 | 60 |         </dependency>  | 
62 | 61 |     </dependencies>  | 
63 | 62 | 
 
  | 
64 | 63 |     <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 implementation="org.apache.logging.log4j.maven.plugins.shade.transformer.Log4j2PluginCacheFileTransformer"/>  | 
110 |  | -                        </transformers>  | 
111 |  | -                    </configuration>  | 
112 |  | -                </execution>  | 
113 |  | -            </executions>  | 
114 |  | -            <dependencies>  | 
115 |  | -                <dependency>  | 
116 |  | -                    <groupId>org.apache.logging.log4j</groupId>  | 
117 |  | -                    <artifactId>log4j-transform-maven-shade-plugin-extensions</artifactId>  | 
118 |  | -                    <version>0.1.0</version>  | 
119 |  | -                </dependency>  | 
120 |  | -            </dependencies>  | 
121 |  | -        </plugin>  | 
122 |  | -      </plugins>  | 
 | 64 | +        <plugins>  | 
 | 65 | +            <plugin>  | 
 | 66 | +                <groupId>dev.aspectj</groupId>  | 
 | 67 | +                <artifactId>aspectj-maven-plugin</artifactId>  | 
 | 68 | +                <version>1.13.1</version>  | 
 | 69 | +                <configuration>  | 
 | 70 | +                    <source>${maven.compiler.source}</source>  | 
 | 71 | +                    <target>${maven.compiler.target}</target>  | 
 | 72 | +                    <complianceLevel>${maven.compiler.target}</complianceLevel>  | 
 | 73 | +                    <aspectLibraries>  | 
 | 74 | +                        <aspectLibrary>  | 
 | 75 | +                            <groupId>software.amazon.lambda</groupId>  | 
 | 76 | +                            <artifactId>powertools-tracing</artifactId>  | 
 | 77 | +                        </aspectLibrary>  | 
 | 78 | +                        <aspectLibrary>  | 
 | 79 | +                            <groupId>software.amazon.lambda</groupId>  | 
 | 80 | +                            <artifactId>powertools-logging</artifactId>  | 
 | 81 | +                        </aspectLibrary>  | 
 | 82 | +                        <aspectLibrary>  | 
 | 83 | +                            <groupId>software.amazon.lambda</groupId>  | 
 | 84 | +                            <artifactId>powertools-metrics</artifactId>  | 
 | 85 | +                        </aspectLibrary>  | 
 | 86 | +                    </aspectLibraries>  | 
 | 87 | +                </configuration>  | 
 | 88 | +                <executions>  | 
 | 89 | +                    <execution>  | 
 | 90 | +                        <goals>  | 
 | 91 | +                            <goal>compile</goal>  | 
 | 92 | +                        </goals>  | 
 | 93 | +                    </execution>  | 
 | 94 | +                </executions>  | 
 | 95 | +            </plugin>  | 
 | 96 | +            <plugin>  | 
 | 97 | +                <groupId>org.apache.maven.plugins</groupId>  | 
 | 98 | +                <artifactId>maven-shade-plugin</artifactId>  | 
 | 99 | +                <version>3.5.0</version>  | 
 | 100 | +                <executions>  | 
 | 101 | +                    <execution>  | 
 | 102 | +                        <phase>package</phase>  | 
 | 103 | +                        <goals>  | 
 | 104 | +                            <goal>shade</goal>  | 
 | 105 | +                        </goals>  | 
 | 106 | +                        <configuration>  | 
 | 107 | +                            <transformers>  | 
 | 108 | +                                <transformer  | 
 | 109 | +                                        implementation="org.apache.logging.log4j.maven.plugins.shade.transformer.Log4j2PluginCacheFileTransformer"/>  | 
 | 110 | +                            </transformers>  | 
 | 111 | +                        </configuration>  | 
 | 112 | +                    </execution>  | 
 | 113 | +                </executions>  | 
 | 114 | +                <dependencies>  | 
 | 115 | +                    <dependency>  | 
 | 116 | +                        <groupId>org.apache.logging.log4j</groupId>  | 
 | 117 | +                        <artifactId>log4j-transform-maven-shade-plugin-extensions</artifactId>  | 
 | 118 | +                        <version>0.1.0</version>  | 
 | 119 | +                    </dependency>  | 
 | 120 | +                </dependencies>  | 
 | 121 | +            </plugin>  | 
 | 122 | +            <!-- Don't deploy the examples -->  | 
 | 123 | +            <plugin>  | 
 | 124 | +                <groupId>org.apache.maven.plugins</groupId>  | 
 | 125 | +                <artifactId>maven-deploy-plugin</artifactId>  | 
 | 126 | +                <configuration>  | 
 | 127 | +                    <skip>true</skip>  | 
 | 128 | +                </configuration>  | 
 | 129 | +            </plugin>  | 
 | 130 | +        </plugins>  | 
123 | 131 |     </build>  | 
124 | 132 |     <profiles>  | 
125 | 133 |         <!-- Use a profile to enforce AspectJ version 1.9.7 if we are Java 1.8 otherwise we'll get class  | 
 | 
0 commit comments