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