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