|
68 | 68 | </dependencies> |
69 | 69 |
|
70 | 70 | <build> |
71 | | - <finalName>helloworld-lambda</finalName> |
72 | | - <plugins> |
73 | | - <plugin> |
74 | | - <groupId>dev.aspectj</groupId> |
75 | | - <artifactId>aspectj-maven-plugin</artifactId> |
76 | | - <version>1.13.1</version> |
77 | | - <configuration> |
78 | | - <source>${maven.compiler.source}</source> |
79 | | - <target>${maven.compiler.target}</target> |
80 | | - <complianceLevel>${maven.compiler.target}</complianceLevel> |
81 | | - <aspectLibraries> |
82 | | - <aspectLibrary> |
83 | | - <groupId>software.amazon.lambda</groupId> |
84 | | - <artifactId>powertools-tracing</artifactId> |
85 | | - </aspectLibrary> |
86 | | - <aspectLibrary> |
87 | | - <groupId>software.amazon.lambda</groupId> |
88 | | - <artifactId>powertools-logging</artifactId> |
89 | | - </aspectLibrary> |
90 | | - <aspectLibrary> |
91 | | - <groupId>software.amazon.lambda</groupId> |
92 | | - <artifactId>powertools-metrics</artifactId> |
93 | | - </aspectLibrary> |
94 | | - </aspectLibraries> |
95 | | - </configuration> |
96 | | - <executions> |
97 | | - <execution> |
98 | | - <goals> |
99 | | - <goal>compile</goal> |
100 | | - </goals> |
101 | | - </execution> |
102 | | - </executions> |
103 | | - <dependencies> |
104 | | - <dependency> |
105 | | - <groupId>org.aspectj</groupId> |
106 | | - <artifactId>aspectjtools</artifactId> |
107 | | - <version>${aspectj.version}</version> |
108 | | - </dependency> |
109 | | - </dependencies> |
110 | | - </plugin> |
111 | | - <plugin> |
112 | | - <groupId>org.apache.maven.plugins</groupId> |
113 | | - <artifactId>maven-shade-plugin</artifactId> |
114 | | - <version>3.5.0</version> |
115 | | - <executions> |
116 | | - <execution> |
117 | | - <phase>package</phase> |
118 | | - <goals> |
119 | | - <goal>shade</goal> |
120 | | - </goals> |
121 | | - <configuration> |
122 | | - <transformers> |
123 | | - <transformer implementation="org.apache.logging.log4j.maven.plugins.shade.transformer.Log4j2PluginCacheFileTransformer"/> |
124 | | - </transformers> |
125 | | - </configuration> |
126 | | - </execution> |
127 | | - </executions> |
128 | | - <dependencies> |
129 | | - <dependency> |
130 | | - <groupId>org.apache.logging.log4j</groupId> |
131 | | - <artifactId>log4j-transform-maven-shade-plugin-extensions</artifactId> |
132 | | - <version>0.1.0</version> |
133 | | - </dependency> |
134 | | - </dependencies> |
135 | | - </plugin> |
136 | | - </plugins> |
| 71 | + <finalName>helloworld-lambda</finalName> |
| 72 | + <plugins> |
| 73 | + <plugin> |
| 74 | + <groupId>dev.aspectj</groupId> |
| 75 | + <artifactId>aspectj-maven-plugin</artifactId> |
| 76 | + <version>1.13.1</version> |
| 77 | + <configuration> |
| 78 | + <source>${maven.compiler.source}</source> |
| 79 | + <target>${maven.compiler.target}</target> |
| 80 | + <complianceLevel>${maven.compiler.target}</complianceLevel> |
| 81 | + <aspectLibraries> |
| 82 | + <aspectLibrary> |
| 83 | + <groupId>software.amazon.lambda</groupId> |
| 84 | + <artifactId>powertools-tracing</artifactId> |
| 85 | + </aspectLibrary> |
| 86 | + <aspectLibrary> |
| 87 | + <groupId>software.amazon.lambda</groupId> |
| 88 | + <artifactId>powertools-logging</artifactId> |
| 89 | + </aspectLibrary> |
| 90 | + <aspectLibrary> |
| 91 | + <groupId>software.amazon.lambda</groupId> |
| 92 | + <artifactId>powertools-metrics</artifactId> |
| 93 | + </aspectLibrary> |
| 94 | + </aspectLibraries> |
| 95 | + </configuration> |
| 96 | + <executions> |
| 97 | + <execution> |
| 98 | + <goals> |
| 99 | + <goal>compile</goal> |
| 100 | + </goals> |
| 101 | + </execution> |
| 102 | + </executions> |
| 103 | + <dependencies> |
| 104 | + <dependency> |
| 105 | + <groupId>org.aspectj</groupId> |
| 106 | + <artifactId>aspectjtools</artifactId> |
| 107 | + <version>${aspectj.version}</version> |
| 108 | + </dependency> |
| 109 | + </dependencies> |
| 110 | + </plugin> |
| 111 | + <plugin> |
| 112 | + <groupId>org.apache.maven.plugins</groupId> |
| 113 | + <artifactId>maven-shade-plugin</artifactId> |
| 114 | + <version>3.5.0</version> |
| 115 | + <executions> |
| 116 | + <execution> |
| 117 | + <phase>package</phase> |
| 118 | + <goals> |
| 119 | + <goal>shade</goal> |
| 120 | + </goals> |
| 121 | + <configuration> |
| 122 | + <transformers> |
| 123 | + <transformer |
| 124 | + implementation="org.apache.logging.log4j.maven.plugins.shade.transformer.Log4j2PluginCacheFileTransformer"/> |
| 125 | + </transformers> |
| 126 | + </configuration> |
| 127 | + </execution> |
| 128 | + </executions> |
| 129 | + <dependencies> |
| 130 | + <dependency> |
| 131 | + <groupId>org.apache.logging.log4j</groupId> |
| 132 | + <artifactId>log4j-transform-maven-shade-plugin-extensions</artifactId> |
| 133 | + <version>0.1.0</version> |
| 134 | + </dependency> |
| 135 | + </dependencies> |
| 136 | + </plugin> |
| 137 | + <!-- Don't deploy the example --> |
| 138 | + <plugin> |
| 139 | + <groupId>org.apache.maven.plugins</groupId> |
| 140 | + <artifactId>maven-deploy-plugin</artifactId> |
| 141 | + <configuration> |
| 142 | + <skip>true</skip> |
| 143 | + </configuration> |
| 144 | + </plugin> |
| 145 | + </plugins> |
137 | 146 | </build> |
138 | 147 | <profiles> |
139 | 148 | <!-- Use a profile to enforce AspectJ version 1.9.7 if we are Java 1.8 otherwise we'll get class |
|
0 commit comments