Skip to content

Commit 265d282

Browse files
committed
PR aws-powertools#717: native libs for dynamo & sqlite
1 parent 244cf1d commit 265d282

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ hs_err_pid*
1414

1515
# Maven build
1616
target/
17+
native-libs/
1718

1819
######################
1920
# IntelliJ

powertools-idempotency/pom.xml

+14-1
Original file line numberDiff line numberDiff line change
@@ -176,14 +176,27 @@
176176
<configuration>
177177
<includeScope>test</includeScope>
178178
<includeTypes>so,dll,dylib</includeTypes>
179-
<outputDirectory>${project.build.directory}/native-libs</outputDirectory>
179+
<outputDirectory>${project.basedir}/src/test/native-libs</outputDirectory>
180180
</configuration>
181181
</execution>
182182
</executions>
183183
</plugin>
184+
<plugin>
185+
<artifactId>maven-clean-plugin</artifactId>
186+
<version>3.1.0</version>
187+
<configuration>
188+
<filesets>
189+
<fileset>
190+
<directory>src/test/native-libs</directory>
191+
<followSymlinks>false</followSymlinks>
192+
</fileset>
193+
</filesets>
194+
</configuration>
195+
</plugin>
184196
<plugin>
185197
<groupId>org.apache.maven.plugins</groupId>
186198
<artifactId>maven-jar-plugin</artifactId>
199+
<version>3.2.0</version>
187200
<configuration>
188201
<archive>
189202
<manifestEntries>

powertools-idempotency/src/test/java/software/amazon/lambda/powertools/idempotency/persistence/DynamoDBPersistenceStoreTest.java

+1
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ public void emptyDB() {
299299

300300
@BeforeAll
301301
public static void setupDynamo() {
302+
System.setProperty("sqlite4java.library.path", "src/test/native-libs");
302303
int port = getFreePort();
303304
try {
304305
dynamoProxy = ServerRunner.createServerFromCommandLineArgs(new String[]{

0 commit comments

Comments
 (0)