Skip to content

Commit b283e77

Browse files
committed
add IoT Fleetwise Kotlin scenario
1 parent 0d513cb commit b283e77

File tree

4 files changed

+808
-0
lines changed

4 files changed

+808
-0
lines changed

kotlin/services/fleetwise/.gitignore

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
.gradle
2+
build/
3+
!gradle/wrapper/gradle-wrapper.jar
4+
!**/src/main/**/build/
5+
!**/src/test/**/build/
6+
7+
### IntelliJ IDEA ###
8+
.idea/modules.xml
9+
.idea/jarRepositories.xml
10+
.idea/compiler.xml
11+
.idea/libraries/
12+
*.iws
13+
*.iml
14+
*.ipr
15+
out/
16+
!**/src/main/**/out/
17+
!**/src/test/**/out/
18+
19+
### Eclipse ###
20+
.apt_generated
21+
.classpath
22+
.factorypath
23+
.project
24+
.settings
25+
.springBeans
26+
.sts4-cache
27+
bin/
28+
!**/src/main/**/bin/
29+
!**/src/test/**/bin/
30+
31+
### NetBeans ###
32+
/nbproject/private/
33+
/nbbuild/
34+
/dist/
35+
/nbdist/
36+
/.nb-gradle/
37+
38+
### VS Code ###
39+
.vscode/
40+
41+
### Mac OS ###
42+
.DS_Store
+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2+
3+
plugins {
4+
kotlin("jvm") version "1.9.0"
5+
application
6+
}
7+
8+
group = "me.scmacdon"
9+
version = "1.0-SNAPSHOT"
10+
11+
java {
12+
sourceCompatibility = JavaVersion.VERSION_17
13+
targetCompatibility = JavaVersion.VERSION_17
14+
}
15+
16+
buildscript {
17+
repositories {
18+
maven("https://plugins.gradle.org/m2/")
19+
}
20+
dependencies {
21+
classpath("org.jlleitschuh.gradle:ktlint-gradle:10.3.0")
22+
}
23+
}
24+
25+
repositories {
26+
mavenCentral()
27+
}
28+
apply(plugin = "org.jlleitschuh.gradle.ktlint")
29+
dependencies {
30+
implementation(platform("aws.sdk.kotlin:bom:1.3.112"))
31+
implementation("aws.sdk.kotlin:iot")
32+
implementation("aws.sdk.kotlin:iotfleetwise")
33+
implementation("aws.sdk.kotlin:secretsmanager")
34+
implementation("aws.smithy.kotlin:http-client-engine-okhttp")
35+
implementation("aws.smithy.kotlin:http-client-engine-crt")
36+
implementation("com.google.code.gson:gson:2.10")
37+
testImplementation("org.junit.jupiter:junit-jupiter:5.9.2")
38+
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
39+
implementation("org.slf4j:slf4j-api:2.0.15")
40+
implementation("org.slf4j:slf4j-simple:2.0.15")
41+
}
42+
tasks.withType<KotlinCompile> {
43+
kotlinOptions.jvmTarget = "17"
44+
}
45+
46+
tasks.test {
47+
useJUnitPlatform()
48+
testLogging {
49+
events("passed", "skipped", "failed")
50+
}
51+
52+
// Define the test source set
53+
testClassesDirs += files("build/classes/kotlin/test")
54+
classpath += files("build/classes/kotlin/main", "build/resources/main")
55+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
rootProject.name = "flkeetwise"
2+

0 commit comments

Comments
 (0)