|
37 | 37 | <version>${lambda.core.version}</version> |
38 | 38 | </dependency> |
39 | 39 | <dependency> |
40 | | - <groupId>com.amazonaws</groupId> |
41 | | - <artifactId>aws-lambda-java-events</artifactId> |
42 | | - <version>${lambda.events.version}</version> |
| 40 | + <groupId>com.amazonaws</groupId> |
| 41 | + <artifactId>aws-lambda-java-events</artifactId> |
| 42 | + <version>${lambda.events.version}</version> |
43 | 43 | </dependency> |
44 | 44 | <dependency> |
45 | 45 | <groupId>software.amazon.lambda</groupId> |
|
73 | 73 | <dependency> |
74 | 74 | <groupId>software.amazon.awssdk</groupId> |
75 | 75 | <artifactId>apache-client</artifactId> |
76 | | - <exclusions> |
77 | | - <exclusion> |
78 | | - <groupId>commons-logging</groupId> |
79 | | - <artifactId>commons-logging</artifactId> |
80 | | - </exclusion> |
81 | | - </exclusions> |
| 76 | + </dependency> |
| 77 | + <dependency> |
| 78 | + <groupId>com.amazonaws</groupId> |
| 79 | + <artifactId>aws-lambda-java-runtime-interface-client</artifactId> |
| 80 | + <version>2.8.3</version> |
82 | 81 | </dependency> |
83 | 82 | </dependencies> |
84 | 83 |
|
85 | 84 | <build> |
86 | | - <plugins> |
87 | | - <plugin> |
88 | | - <groupId>dev.aspectj</groupId> |
89 | | - <artifactId>aspectj-maven-plugin</artifactId> |
90 | | - <version>1.14.1</version> |
91 | | - <configuration> |
92 | | - <source>${maven.compiler.source}</source> |
93 | | - <target>${maven.compiler.target}</target> |
94 | | - <complianceLevel>${maven.compiler.target}</complianceLevel> |
95 | | - <aspectLibraries> |
96 | | - <aspectLibrary> |
97 | | - <groupId>software.amazon.lambda</groupId> |
98 | | - <artifactId>powertools-logging</artifactId> |
99 | | - </aspectLibrary> |
100 | | - </aspectLibraries> |
101 | | - </configuration> |
102 | | - <executions> |
103 | | - <execution> |
104 | | - <goals> |
105 | | - <goal>compile</goal> |
106 | | - </goals> |
107 | | - </execution> |
108 | | - </executions> |
109 | | - <dependencies> |
110 | | - <dependency> |
111 | | - <groupId>org.aspectj</groupId> |
112 | | - <artifactId>aspectjtools</artifactId> |
113 | | - <version>${aspectj.version}</version> |
114 | | - </dependency> |
115 | | - </dependencies> |
116 | | - </plugin> |
117 | | - <plugin> |
118 | | - <groupId>org.apache.maven.plugins</groupId> |
119 | | - <artifactId>maven-shade-plugin</artifactId> |
120 | | - <version>3.6.0</version> |
121 | | - <executions> |
122 | | - <execution> |
123 | | - <phase>package</phase> |
124 | | - <goals> |
125 | | - <goal>shade</goal> |
126 | | - </goals> |
127 | | - <configuration> |
128 | | - <createDependencyReducedPom>false</createDependencyReducedPom> |
129 | | - <transformers> |
130 | | - <transformer implementation="org.apache.logging.log4j.maven.plugins.shade.transformer.Log4j2PluginCacheFileTransformer"/> |
131 | | - </transformers> |
132 | | - </configuration> |
133 | | - </execution> |
134 | | - </executions> |
135 | | - <dependencies> |
136 | | - <dependency> |
137 | | - <groupId>org.apache.logging.log4j</groupId> |
138 | | - <artifactId>log4j-transform-maven-shade-plugin-extensions</artifactId> |
139 | | - <version>0.2.0</version> |
140 | | - </dependency> |
141 | | - </dependencies> |
142 | | - </plugin> |
143 | | - <!-- Don't deploy the example --> |
144 | | - <plugin> |
145 | | - <groupId>org.apache.maven.plugins</groupId> |
146 | | - <artifactId>maven-deploy-plugin</artifactId> |
147 | | - <version>3.1.4</version> |
148 | | - <configuration> |
149 | | - <skip>true</skip> |
150 | | - </configuration> |
151 | | - </plugin> |
152 | | - </plugins> |
| 85 | + <plugins> |
| 86 | + <plugin> |
| 87 | + <groupId>dev.aspectj</groupId> |
| 88 | + <artifactId>aspectj-maven-plugin</artifactId> |
| 89 | + <version>1.14.1</version> |
| 90 | + <configuration> |
| 91 | + <source>${maven.compiler.source}</source> |
| 92 | + <target>${maven.compiler.target}</target> |
| 93 | + <complianceLevel>${maven.compiler.target}</complianceLevel> |
| 94 | + <aspectLibraries> |
| 95 | + <aspectLibrary> |
| 96 | + <groupId>software.amazon.lambda</groupId> |
| 97 | + <artifactId>powertools-logging</artifactId> |
| 98 | + </aspectLibrary> |
| 99 | + </aspectLibraries> |
| 100 | + </configuration> |
| 101 | + <executions> |
| 102 | + <execution> |
| 103 | + <goals> |
| 104 | + <goal>compile</goal> |
| 105 | + </goals> |
| 106 | + </execution> |
| 107 | + </executions> |
| 108 | + <dependencies> |
| 109 | + <dependency> |
| 110 | + <groupId>org.aspectj</groupId> |
| 111 | + <artifactId>aspectjtools</artifactId> |
| 112 | + <version>${aspectj.version}</version> |
| 113 | + </dependency> |
| 114 | + </dependencies> |
| 115 | + </plugin> |
| 116 | + <plugin> |
| 117 | + <groupId>org.apache.maven.plugins</groupId> |
| 118 | + <artifactId>maven-shade-plugin</artifactId> |
| 119 | + <version>3.6.0</version> |
| 120 | + <executions> |
| 121 | + <execution> |
| 122 | + <phase>package</phase> |
| 123 | + <goals> |
| 124 | + <goal>shade</goal> |
| 125 | + </goals> |
| 126 | + <configuration> |
| 127 | + <createDependencyReducedPom>false</createDependencyReducedPom> |
| 128 | + <transformers> |
| 129 | + <transformer |
| 130 | + implementation="org.apache.logging.log4j.maven.plugins.shade.transformer.Log4j2PluginCacheFileTransformer" /> |
| 131 | + </transformers> |
| 132 | + </configuration> |
| 133 | + </execution> |
| 134 | + </executions> |
| 135 | + <dependencies> |
| 136 | + <dependency> |
| 137 | + <groupId>org.apache.logging.log4j</groupId> |
| 138 | + <artifactId>log4j-transform-maven-shade-plugin-extensions</artifactId> |
| 139 | + <version>0.2.0</version> |
| 140 | + </dependency> |
| 141 | + </dependencies> |
| 142 | + </plugin> |
| 143 | + <!-- Don't deploy the example --> |
| 144 | + <plugin> |
| 145 | + <groupId>org.apache.maven.plugins</groupId> |
| 146 | + <artifactId>maven-deploy-plugin</artifactId> |
| 147 | + <version>3.1.4</version> |
| 148 | + <configuration> |
| 149 | + <skip>true</skip> |
| 150 | + </configuration> |
| 151 | + </plugin> |
| 152 | + </plugins> |
153 | 153 | </build> |
| 154 | + <profiles> |
| 155 | + <profile> |
| 156 | + <id>native-image</id> |
| 157 | + <build> |
| 158 | + <plugins> |
| 159 | + <plugin> |
| 160 | + <groupId>org.graalvm.buildtools</groupId> |
| 161 | + <artifactId>native-maven-plugin</artifactId> |
| 162 | + <version>0.11.0</version> |
| 163 | + <extensions>true</extensions> |
| 164 | + <executions> |
| 165 | + <execution> |
| 166 | + <id>build-native</id> |
| 167 | + <goals> |
| 168 | + <goal>build</goal> |
| 169 | + </goals> |
| 170 | + <phase>package</phase> |
| 171 | + </execution> |
| 172 | + </executions> |
| 173 | + <configuration> |
| 174 | + <imageName>hello-world</imageName> |
| 175 | + <mainClass>com.amazonaws.services.lambda.runtime.api.client.AWSLambda</mainClass> |
| 176 | + <buildArgs> |
| 177 | + <arg>--enable-url-protocols=http</arg> |
| 178 | + <arg>--add-opens java.base/java.util=ALL-UNNAMED</arg> |
| 179 | + </buildArgs> |
| 180 | + </configuration> |
| 181 | + </plugin> |
| 182 | + </plugins> |
| 183 | + </build> |
| 184 | + </profile> |
| 185 | + </profiles> |
154 | 186 | </project> |
0 commit comments