Skip to content

Commit d62d5e0

Browse files
Use latest versions of SDK by default in samples (#322)
Add a Maven profile to use the latest SDK version instead of using the version compiled from source as an option. With this profile, it is possible to run the samples without needing to install the SDK from source.
1 parent a26639b commit d62d5e0

File tree

16 files changed

+472
-115
lines changed

16 files changed

+472
-115
lines changed

samples/BasicConnect/pom.xml

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,31 @@
1313
<maven.compiler.target>1.8</maven.compiler.target>
1414
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1515
</properties>
16-
<dependencies>
17-
<dependency>
18-
<groupId>software.amazon.awssdk.iotdevicesdk</groupId>
19-
<artifactId>aws-iot-device-sdk</artifactId>
20-
<version>1.0.0-SNAPSHOT</version>
21-
</dependency>
22-
</dependencies>
16+
<profiles>
17+
<profile>
18+
<id>latest-release</id>
19+
<dependencies>
20+
<dependency>
21+
<groupId>software.amazon.awssdk.iotdevicesdk</groupId>
22+
<artifactId>aws-iot-device-sdk</artifactId>
23+
<version>1.10.3</version>
24+
</dependency>
25+
</dependencies>
26+
</profile>
27+
<profile>
28+
<id>default</id>
29+
<activation>
30+
<activeByDefault>true</activeByDefault>
31+
</activation>
32+
<dependencies>
33+
<dependency>
34+
<groupId>software.amazon.awssdk.iotdevicesdk</groupId>
35+
<artifactId>aws-iot-device-sdk</artifactId>
36+
<version>1.0.0-SNAPSHOT </version>
37+
</dependency>
38+
</dependencies>
39+
</profile>
40+
</profiles>
2341
<build>
2442
<plugins>
2543
<plugin>

samples/BasicPubSub/pom.xml

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,31 @@
1313
<maven.compiler.target>1.8</maven.compiler.target>
1414
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1515
</properties>
16-
<dependencies>
17-
<dependency>
18-
<groupId>software.amazon.awssdk.iotdevicesdk</groupId>
19-
<artifactId>aws-iot-device-sdk</artifactId>
20-
<version>1.0.0-SNAPSHOT</version>
21-
</dependency>
22-
</dependencies>
16+
<profiles>
17+
<profile>
18+
<id>latest-release</id>
19+
<dependencies>
20+
<dependency>
21+
<groupId>software.amazon.awssdk.iotdevicesdk</groupId>
22+
<artifactId>aws-iot-device-sdk</artifactId>
23+
<version>1.10.3</version>
24+
</dependency>
25+
</dependencies>
26+
</profile>
27+
<profile>
28+
<id>default</id>
29+
<activation>
30+
<activeByDefault>true</activeByDefault>
31+
</activation>
32+
<dependencies>
33+
<dependency>
34+
<groupId>software.amazon.awssdk.iotdevicesdk</groupId>
35+
<artifactId>aws-iot-device-sdk</artifactId>
36+
<version>1.0.0-SNAPSHOT </version>
37+
</dependency>
38+
</dependencies>
39+
</profile>
40+
</profiles>
2341
<build>
2442
<plugins>
2543
<plugin>

samples/CustomAuthorizerConnect/pom.xml

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,31 @@
1313
<maven.compiler.target>1.8</maven.compiler.target>
1414
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1515
</properties>
16-
<dependencies>
17-
<dependency>
18-
<groupId>software.amazon.awssdk.iotdevicesdk</groupId>
19-
<artifactId>aws-iot-device-sdk</artifactId>
20-
<version>1.0.0-SNAPSHOT</version>
21-
</dependency>
22-
</dependencies>
16+
<profiles>
17+
<profile>
18+
<id>latest-release</id>
19+
<dependencies>
20+
<dependency>
21+
<groupId>software.amazon.awssdk.iotdevicesdk</groupId>
22+
<artifactId>aws-iot-device-sdk</artifactId>
23+
<version>1.10.3</version>
24+
</dependency>
25+
</dependencies>
26+
</profile>
27+
<profile>
28+
<id>default</id>
29+
<activation>
30+
<activeByDefault>true</activeByDefault>
31+
</activation>
32+
<dependencies>
33+
<dependency>
34+
<groupId>software.amazon.awssdk.iotdevicesdk</groupId>
35+
<artifactId>aws-iot-device-sdk</artifactId>
36+
<version>1.0.0-SNAPSHOT </version>
37+
</dependency>
38+
</dependencies>
39+
</profile>
40+
</profiles>
2341
<build>
2442
<plugins>
2543
<plugin>

samples/CustomKeyOpsPubSub/pom.xml

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,31 @@
1313
<maven.compiler.target>1.8</maven.compiler.target>
1414
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1515
</properties>
16-
<dependencies>
17-
<dependency>
18-
<groupId>software.amazon.awssdk.iotdevicesdk</groupId>
19-
<artifactId>aws-iot-device-sdk</artifactId>
20-
<version>1.0.0-SNAPSHOT</version>
21-
</dependency>
22-
</dependencies>
16+
<profiles>
17+
<profile>
18+
<id>latest-release</id>
19+
<dependencies>
20+
<dependency>
21+
<groupId>software.amazon.awssdk.iotdevicesdk</groupId>
22+
<artifactId>aws-iot-device-sdk</artifactId>
23+
<version>1.10.3</version>
24+
</dependency>
25+
</dependencies>
26+
</profile>
27+
<profile>
28+
<id>default</id>
29+
<activation>
30+
<activeByDefault>true</activeByDefault>
31+
</activation>
32+
<dependencies>
33+
<dependency>
34+
<groupId>software.amazon.awssdk.iotdevicesdk</groupId>
35+
<artifactId>aws-iot-device-sdk</artifactId>
36+
<version>1.0.0-SNAPSHOT </version>
37+
</dependency>
38+
</dependencies>
39+
</profile>
40+
</profiles>
2341
<build>
2442
<plugins>
2543
<plugin>

samples/Greengrass/pom.xml

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,31 @@
1313
<maven.compiler.target>1.8</maven.compiler.target>
1414
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1515
</properties>
16-
<dependencies>
17-
<dependency>
18-
<groupId>software.amazon.awssdk.iotdevicesdk</groupId>
19-
<artifactId>aws-iot-device-sdk</artifactId>
20-
<version>1.0.0-SNAPSHOT</version>
21-
</dependency>
22-
</dependencies>
16+
<profiles>
17+
<profile>
18+
<id>latest-release</id>
19+
<dependencies>
20+
<dependency>
21+
<groupId>software.amazon.awssdk.iotdevicesdk</groupId>
22+
<artifactId>aws-iot-device-sdk</artifactId>
23+
<version>1.10.3</version>
24+
</dependency>
25+
</dependencies>
26+
</profile>
27+
<profile>
28+
<id>default</id>
29+
<activation>
30+
<activeByDefault>true</activeByDefault>
31+
</activation>
32+
<dependencies>
33+
<dependency>
34+
<groupId>software.amazon.awssdk.iotdevicesdk</groupId>
35+
<artifactId>aws-iot-device-sdk</artifactId>
36+
<version>1.0.0-SNAPSHOT </version>
37+
</dependency>
38+
</dependencies>
39+
</profile>
40+
</profiles>
2341
<build>
2442
<plugins>
2543
<plugin>

samples/Identity/pom.xml

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,32 @@
1313
<maven.compiler.target>1.8</maven.compiler.target>
1414
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1515
</properties>
16+
<profiles>
17+
<profile>
18+
<id>latest-release</id>
19+
<dependencies>
20+
<dependency>
21+
<groupId>software.amazon.awssdk.iotdevicesdk</groupId>
22+
<artifactId>aws-iot-device-sdk</artifactId>
23+
<version>1.10.3</version>
24+
</dependency>
25+
</dependencies>
26+
</profile>
27+
<profile>
28+
<id>default</id>
29+
<activation>
30+
<activeByDefault>true</activeByDefault>
31+
</activation>
32+
<dependencies>
33+
<dependency>
34+
<groupId>software.amazon.awssdk.iotdevicesdk</groupId>
35+
<artifactId>aws-iot-device-sdk</artifactId>
36+
<version>1.0.0-SNAPSHOT </version>
37+
</dependency>
38+
</dependencies>
39+
</profile>
40+
</profiles>
1641
<dependencies>
17-
<dependency>
18-
<groupId>software.amazon.awssdk.iotdevicesdk</groupId>
19-
<artifactId>aws-iot-device-sdk</artifactId>
20-
<version>1.0.0-SNAPSHOT</version>
21-
</dependency>
2242
<dependency>
2343
<groupId>com.google.code.gson</groupId>
2444
<artifactId>gson</artifactId>

samples/Jobs/pom.xml

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,31 @@
1313
<maven.compiler.target>1.8</maven.compiler.target>
1414
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1515
</properties>
16-
<dependencies>
17-
<dependency>
18-
<groupId>software.amazon.awssdk.iotdevicesdk</groupId>
19-
<artifactId>aws-iot-device-sdk</artifactId>
20-
<version>1.0.0-SNAPSHOT</version>
21-
</dependency>
22-
</dependencies>
16+
<profiles>
17+
<profile>
18+
<id>latest-release</id>
19+
<dependencies>
20+
<dependency>
21+
<groupId>software.amazon.awssdk.iotdevicesdk</groupId>
22+
<artifactId>aws-iot-device-sdk</artifactId>
23+
<version>1.10.3</version>
24+
</dependency>
25+
</dependencies>
26+
</profile>
27+
<profile>
28+
<id>default</id>
29+
<activation>
30+
<activeByDefault>true</activeByDefault>
31+
</activation>
32+
<dependencies>
33+
<dependency>
34+
<groupId>software.amazon.awssdk.iotdevicesdk</groupId>
35+
<artifactId>aws-iot-device-sdk</artifactId>
36+
<version>1.0.0-SNAPSHOT </version>
37+
</dependency>
38+
</dependencies>
39+
</profile>
40+
</profiles>
2341
<build>
2442
<plugins>
2543
<plugin>

samples/Pkcs11Connect/pom.xml

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,31 @@
1313
<maven.compiler.target>1.8</maven.compiler.target>
1414
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1515
</properties>
16-
<dependencies>
17-
<dependency>
18-
<groupId>software.amazon.awssdk.iotdevicesdk</groupId>
19-
<artifactId>aws-iot-device-sdk</artifactId>
20-
<version>1.0.0-SNAPSHOT</version>
21-
</dependency>
22-
</dependencies>
16+
<profiles>
17+
<profile>
18+
<id>latest-release</id>
19+
<dependencies>
20+
<dependency>
21+
<groupId>software.amazon.awssdk.iotdevicesdk</groupId>
22+
<artifactId>aws-iot-device-sdk</artifactId>
23+
<version>1.10.3</version>
24+
</dependency>
25+
</dependencies>
26+
</profile>
27+
<profile>
28+
<id>default</id>
29+
<activation>
30+
<activeByDefault>true</activeByDefault>
31+
</activation>
32+
<dependencies>
33+
<dependency>
34+
<groupId>software.amazon.awssdk.iotdevicesdk</groupId>
35+
<artifactId>aws-iot-device-sdk</artifactId>
36+
<version>1.0.0-SNAPSHOT </version>
37+
</dependency>
38+
</dependencies>
39+
</profile>
40+
</profiles>
2341
<build>
2442
<plugins>
2543
<plugin>

samples/PubSubStress/pom.xml

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,31 @@
1313
<maven.compiler.target>1.8</maven.compiler.target>
1414
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1515
</properties>
16-
<dependencies>
17-
<dependency>
18-
<groupId>software.amazon.awssdk.iotdevicesdk</groupId>
19-
<artifactId>aws-iot-device-sdk</artifactId>
20-
<version>1.0.0-SNAPSHOT</version>
21-
</dependency>
22-
</dependencies>
16+
<profiles>
17+
<profile>
18+
<id>latest-release</id>
19+
<dependencies>
20+
<dependency>
21+
<groupId>software.amazon.awssdk.iotdevicesdk</groupId>
22+
<artifactId>aws-iot-device-sdk</artifactId>
23+
<version>1.10.3</version>
24+
</dependency>
25+
</dependencies>
26+
</profile>
27+
<profile>
28+
<id>default</id>
29+
<activation>
30+
<activeByDefault>true</activeByDefault>
31+
</activation>
32+
<dependencies>
33+
<dependency>
34+
<groupId>software.amazon.awssdk.iotdevicesdk</groupId>
35+
<artifactId>aws-iot-device-sdk</artifactId>
36+
<version>1.0.0-SNAPSHOT </version>
37+
</dependency>
38+
</dependencies>
39+
</profile>
40+
</profiles>
2341
<build>
2442
<plugins>
2543
<plugin>

0 commit comments

Comments
 (0)