1 1 |
|
2 2 | description = "The AWS SDK for Kotlin client for CodeBuild"
|
3 3 | project.ext.set("aws.sdk.id", "CodeBuild")
|
4 4 |
|
5 5 | kotlin {
|
6 + | jvm {
|
7 + | compilations {
|
8 + | val main = getByName("main")
|
9 + | tasks {
|
10 + | register<Jar>("smokeTestJar") {
|
11 + | description = "Creates smoke tests jar"
|
12 + | group = "application"
|
13 + | dependsOn(build)
|
14 + | manifest {
|
15 + | attributes["Main-Class"] = "smoketests.SmokeTestsKt"
|
16 + | }
|
17 + | duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
18 + | from(configurations.getByName("jvmRuntimeClasspath").map { if (it.isDirectory) it else zipTree(it) }, main.output.classesDirs)
|
19 + | archiveBaseName.set("${project.name}-smoketests")
|
20 + | }
|
21 + | }
|
22 + | }
|
23 + | }
|
24 + |
|
25 + | tasks.register<JavaExec>("smokeTest") {
|
26 + | description = "Runs smoke tests jar"
|
27 + | group = "verification"
|
28 + | dependsOn(tasks.getByName("smokeTestJar"))
|
29 + |
|
30 + | val sdkVersion: String by project
|
31 + | val jarFile = file("build/libs/${project.name}-smoketests-$sdkVersion.jar")
|
32 + | classpath = files(jarFile)
|
33 + | }
|
34 + |
|
6 35 | sourceSets {
|
7 36 | commonMain {
|
8 37 | dependencies {
|
9 38 | implementation("aws.smithy.kotlin:aws-credentials:1.3.6-SNAPSHOT")
|
10 39 | implementation(project(":aws-runtime:aws-http"))
|
11 40 | implementation("aws.smithy.kotlin:aws-json-protocols:1.3.6-SNAPSHOT")
|
12 41 | implementation("aws.smithy.kotlin:aws-protocol-core:1.3.6-SNAPSHOT")
|
13 42 | implementation("aws.smithy.kotlin:aws-signing-common:1.3.6-SNAPSHOT")
|
14 43 | implementation("aws.smithy.kotlin:aws-signing-default:1.3.6-SNAPSHOT")
|
15 44 | implementation("aws.smithy.kotlin:http:1.3.6-SNAPSHOT")
|
16 45 | implementation("aws.smithy.kotlin:http-auth:1.3.6-SNAPSHOT")
|
17 46 | implementation("aws.smithy.kotlin:http-auth-aws:1.3.6-SNAPSHOT")
|
18 47 | implementation("aws.smithy.kotlin:http-client-engine-default:1.3.6-SNAPSHOT")
|
19 48 | implementation("aws.smithy.kotlin:identity-api:1.3.6-SNAPSHOT")
|
20 49 | implementation("org.jetbrains.kotlin:kotlin-stdlib:2.0.10")
|
21 50 | implementation("aws.smithy.kotlin:serde:1.3.6-SNAPSHOT")
|
22 51 | implementation("aws.smithy.kotlin:serde-json:1.3.6-SNAPSHOT")
|
23 52 | implementation("aws.smithy.kotlin:telemetry-defaults:1.3.6-SNAPSHOT")
|
24 53 | api(project(":aws-runtime:aws-config"))
|
25 54 | api(project(":aws-runtime:aws-core"))
|
26 55 | api(project(":aws-runtime:aws-endpoint"))
|
27 56 | api("aws.smithy.kotlin:http-client:1.3.6-SNAPSHOT")
|
28 57 | api("aws.smithy.kotlin:runtime-core:1.3.6-SNAPSHOT")
|
29 58 | api("aws.smithy.kotlin:smithy-client:1.3.6-SNAPSHOT")
|
30 59 | api("aws.smithy.kotlin:telemetry-api:1.3.6-SNAPSHOT")
|
31 60 | }
|
32 61 | }
|
33 62 | }
|
34 63 | }
|