diff --git a/kotlin/services/appsync/build.gradle.kts b/kotlin/services/appsync/build.gradle.kts index 331adefeb76..8444cd77604 100644 --- a/kotlin/services/appsync/build.gradle.kts +++ b/kotlin/services/appsync/build.gradle.kts @@ -1,7 +1,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { - kotlin("jvm") version "1.7.10" + kotlin("jvm") version "1.9.0" application } @@ -19,19 +19,31 @@ buildscript { repositories { mavenCentral() - jcenter() } apply(plugin = "org.jlleitschuh.gradle.ktlint") dependencies { - implementation("aws.sdk.kotlin:appsync:0.30.1-beta") - implementation("aws.sdk.kotlin:sts:0.30.1-beta") - implementation("aws.sdk.kotlin:s3:0.30.1-beta") - implementation("aws.sdk.kotlin:secretsmanager:0.30.1-beta") + implementation("aws.sdk.kotlin:appsync:0.33.1-beta") + implementation("aws.sdk.kotlin:sts:0.33.1-beta") + implementation("aws.sdk.kotlin:s3:0.33.1-beta") + implementation("aws.sdk.kotlin:secretsmanager:0.33.1-beta") + implementation("aws.smithy.kotlin:http-client-engine-okhttp:0.28.0") + implementation("aws.smithy.kotlin:http-client-engine-crt:0.28.0") implementation("com.google.code.gson:gson:2.10") implementation("com.googlecode.json-simple:json-simple:1.1.1") testImplementation("org.junit.jupiter:junit-jupiter:5.9.2") implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4") } tasks.withType() { - kotlinOptions.jvmTarget = "1.8" + kotlinOptions.jvmTarget = "17" +} + +tasks.test { + useJUnitPlatform() + testLogging { + events("passed", "skipped", "failed") + } + + // Define the test source set + testClassesDirs += files("build/classes/kotlin/test") + classpath += files("build/classes/kotlin/main", "build/resources/main") } diff --git a/kotlin/services/athena/build.gradle.kts b/kotlin/services/athena/build.gradle.kts index b4ccea3e58d..179d9915b3f 100644 --- a/kotlin/services/athena/build.gradle.kts +++ b/kotlin/services/athena/build.gradle.kts @@ -1,7 +1,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { - kotlin("jvm") version "1.7.10" + kotlin("jvm") version "1.9.0" application } @@ -19,16 +19,28 @@ buildscript { repositories { mavenCentral() - jcenter() } apply(plugin = "org.jlleitschuh.gradle.ktlint") dependencies { - implementation("aws.sdk.kotlin:athena-jvm:0.30.1-beta") - implementation("aws.sdk.kotlin:secretsmanager:0.30.1-beta") + implementation("aws.sdk.kotlin:athena-jvm:0.33.1-beta") + implementation("aws.sdk.kotlin:secretsmanager:0.33.1-beta") + implementation("aws.smithy.kotlin:http-client-engine-okhttp:0.28.0") + implementation("aws.smithy.kotlin:http-client-engine-crt:0.28.0") implementation("com.google.code.gson:gson:2.10") testImplementation("org.junit.jupiter:junit-jupiter:5.9.2") implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4") } tasks.withType() { - kotlinOptions.jvmTarget = "1.8" + kotlinOptions.jvmTarget = "17" +} + +tasks.test { + useJUnitPlatform() + testLogging { + events("passed", "skipped", "failed") + } + + // Define the test source set + testClassesDirs += files("build/classes/kotlin/test") + classpath += files("build/classes/kotlin/main", "build/resources/main") } diff --git a/kotlin/services/autoscale/build.gradle.kts b/kotlin/services/autoscale/build.gradle.kts index f5e8e5d1546..f083c4bda48 100644 --- a/kotlin/services/autoscale/build.gradle.kts +++ b/kotlin/services/autoscale/build.gradle.kts @@ -1,7 +1,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { - kotlin("jvm") version "1.7.10" + kotlin("jvm") version "1.9.0" application } @@ -19,16 +19,28 @@ buildscript { repositories { mavenCentral() - jcenter() } apply(plugin = "org.jlleitschuh.gradle.ktlint") dependencies { - implementation("aws.sdk.kotlin:autoscaling-jvm:0.30.1-beta") - implementation("aws.sdk.kotlin:secretsmanager:0.30.1-beta") + implementation("aws.sdk.kotlin:autoscaling-jvm:0.33.1-beta") + implementation("aws.sdk.kotlin:secretsmanager:0.33.1-beta") + implementation("aws.smithy.kotlin:http-client-engine-okhttp:0.28.0") + implementation("aws.smithy.kotlin:http-client-engine-crt:0.28.0") implementation("com.google.code.gson:gson:2.10") testImplementation("org.junit.jupiter:junit-jupiter:5.9.2") implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4") } tasks.withType() { - kotlinOptions.jvmTarget = "1.8" + kotlinOptions.jvmTarget = "17" +} + +tasks.test { + useJUnitPlatform() // Use JUnit 5 for running tests + testLogging { + events("passed", "skipped", "failed") + } + + // Define the test source set + testClassesDirs += files("build/classes/kotlin/test") + classpath += files("build/classes/kotlin/main", "build/resources/main") } diff --git a/kotlin/services/cloudformation/build.gradle.kts b/kotlin/services/cloudformation/build.gradle.kts index b758f6aab72..1987d7c5789 100644 --- a/kotlin/services/cloudformation/build.gradle.kts +++ b/kotlin/services/cloudformation/build.gradle.kts @@ -1,7 +1,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { - kotlin("jvm") version "1.7.10" + kotlin("jvm") version "1.9.0" application } @@ -19,16 +19,28 @@ buildscript { repositories { mavenCentral() - jcenter() } apply(plugin = "org.jlleitschuh.gradle.ktlint") dependencies { - implementation("aws.sdk.kotlin:cloudformation:0.30.1-beta") - implementation("aws.sdk.kotlin:secretsmanager:0.30.1-beta") + implementation("aws.sdk.kotlin:cloudformation:0.33.1-beta") + implementation("aws.sdk.kotlin:secretsmanager:0.33.1-beta") + implementation("aws.smithy.kotlin:http-client-engine-okhttp:0.28.0") + implementation("aws.smithy.kotlin:http-client-engine-crt:0.28.0") implementation("com.google.code.gson:gson:2.10") testImplementation("org.junit.jupiter:junit-jupiter:5.9.2") implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4") } tasks.withType() { - kotlinOptions.jvmTarget = "1.8" + kotlinOptions.jvmTarget = "17" +} + +tasks.test { + useJUnitPlatform() // Use JUnit 5 for running tests + testLogging { + events("passed", "skipped", "failed") + } + + // Define the test source set + testClassesDirs += files("build/classes/kotlin/test") + classpath += files("build/classes/kotlin/main", "build/resources/main") } diff --git a/kotlin/services/cloudtrail/build.gradle.kts b/kotlin/services/cloudtrail/build.gradle.kts index e56e7264778..2df82cd7b0a 100644 --- a/kotlin/services/cloudtrail/build.gradle.kts +++ b/kotlin/services/cloudtrail/build.gradle.kts @@ -1,7 +1,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { - kotlin("jvm") version "1.7.10" + kotlin("jvm") version "1.9.0" application } @@ -19,16 +19,28 @@ buildscript { repositories { mavenCentral() - jcenter() } apply(plugin = "org.jlleitschuh.gradle.ktlint") dependencies { - implementation("aws.sdk.kotlin:cloudtrail:0.30.1-beta") - implementation("aws.sdk.kotlin:secretsmanager:0.30.1-beta") + implementation("aws.sdk.kotlin:cloudtrail:0.33.1-beta") + implementation("aws.sdk.kotlin:secretsmanager:0.33.1-beta") + implementation("aws.smithy.kotlin:http-client-engine-okhttp:0.28.0") + implementation("aws.smithy.kotlin:http-client-engine-crt:0.28.0") implementation("com.google.code.gson:gson:2.10") testImplementation("org.junit.jupiter:junit-jupiter:5.9.2") implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4") } tasks.withType() { - kotlinOptions.jvmTarget = "1.8" + kotlinOptions.jvmTarget = "17" +} + +tasks.test { + useJUnitPlatform() // Use JUnit 5 for running tests + testLogging { + events("passed", "skipped", "failed") + } + + // Define the test source set + testClassesDirs += files("build/classes/kotlin/test") + classpath += files("build/classes/kotlin/main", "build/resources/main") } diff --git a/kotlin/services/cloudwatch/build.gradle.kts b/kotlin/services/cloudwatch/build.gradle.kts index b3084ca3939..71fce607715 100644 --- a/kotlin/services/cloudwatch/build.gradle.kts +++ b/kotlin/services/cloudwatch/build.gradle.kts @@ -1,7 +1,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { - kotlin("jvm") version "1.7.10" + kotlin("jvm") version "1.9.0" application } @@ -19,14 +19,15 @@ buildscript { repositories { mavenCentral() - jcenter() } apply(plugin = "org.jlleitschuh.gradle.ktlint") dependencies { - implementation("aws.sdk.kotlin:cloudwatch-jvm:0.30.1-beta") - implementation("aws.sdk.kotlin:cloudwatchevents-jvm:0.30.1-beta") - implementation("aws.sdk.kotlin:cloudwatchlogs-jvm:0.30.1-beta") - implementation("aws.sdk.kotlin:secretsmanager:0.30.1-beta") + implementation("aws.sdk.kotlin:cloudwatch-jvm:0.33.1-beta") + implementation("aws.sdk.kotlin:cloudwatchevents-jvm:0.33.1-beta") + implementation("aws.sdk.kotlin:cloudwatchlogs-jvm:0.33.1-beta") + implementation("aws.sdk.kotlin:secretsmanager:0.33.1-beta") + implementation("aws.smithy.kotlin:http-client-engine-okhttp:0.28.0") + implementation("aws.smithy.kotlin:http-client-engine-crt:0.28.0") implementation("com.google.code.gson:gson:2.10") implementation("com.fasterxml.jackson.core:jackson-core:2.14.2") implementation("com.fasterxml.jackson.core:jackson-databind:2.14.2") @@ -34,5 +35,16 @@ dependencies { implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4") } tasks.withType() { - kotlinOptions.jvmTarget = "1.8" + kotlinOptions.jvmTarget = "17" +} + +tasks.test { + useJUnitPlatform() // Use JUnit 5 for running tests + testLogging { + events("passed", "skipped", "failed") + } + + // Define the test source set + testClassesDirs += files("build/classes/kotlin/test") + classpath += files("build/classes/kotlin/main", "build/resources/main") } diff --git a/kotlin/services/codepipeline/build.gradle.kts b/kotlin/services/codepipeline/build.gradle.kts index 376a949f324..261e38c98a4 100644 --- a/kotlin/services/codepipeline/build.gradle.kts +++ b/kotlin/services/codepipeline/build.gradle.kts @@ -1,7 +1,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { - kotlin("jvm") version "1.7.10" + kotlin("jvm") version "1.9.0" application } @@ -19,16 +19,28 @@ buildscript { repositories { mavenCentral() - jcenter() } apply(plugin = "org.jlleitschuh.gradle.ktlint") dependencies { - implementation("aws.sdk.kotlin:codepipeline-jvm:0.30.1-beta") - implementation("aws.sdk.kotlin:secretsmanager:0.30.1-beta") + implementation("aws.sdk.kotlin:codepipeline-jvm:0.33.1-beta") + implementation("aws.sdk.kotlin:secretsmanager:0.33.1-beta") + implementation("aws.smithy.kotlin:http-client-engine-okhttp:0.28.0") + implementation("aws.smithy.kotlin:http-client-engine-crt:0.28.0") implementation("com.google.code.gson:gson:2.10") testImplementation("org.junit.jupiter:junit-jupiter:5.9.0") implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4") } tasks.withType() { - kotlinOptions.jvmTarget = "1.8" + kotlinOptions.jvmTarget = "17" +} + +tasks.test { + useJUnitPlatform() // Use JUnit 5 for running tests + testLogging { + events("passed", "skipped", "failed") + } + + // Define the test source set + testClassesDirs += files("build/classes/kotlin/test") + classpath += files("build/classes/kotlin/main", "build/resources/main") } diff --git a/kotlin/services/cognito/build.gradle.kts b/kotlin/services/cognito/build.gradle.kts index fe6685687e7..b0d5d29a1a2 100644 --- a/kotlin/services/cognito/build.gradle.kts +++ b/kotlin/services/cognito/build.gradle.kts @@ -1,7 +1,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { - kotlin("jvm") version "1.7.10" + kotlin("jvm") version "1.9.0" application } @@ -19,17 +19,29 @@ buildscript { repositories { mavenCentral() - jcenter() } apply(plugin = "org.jlleitschuh.gradle.ktlint") dependencies { - implementation("aws.sdk.kotlin:cognitoidentityprovider:0.30.1-beta") - implementation("aws.sdk.kotlin:cognitoidentity:0.30.1-beta") - implementation("aws.sdk.kotlin:secretsmanager:0.30.1-beta") + implementation("aws.sdk.kotlin:cognitoidentityprovider:0.33.1-beta") + implementation("aws.sdk.kotlin:cognitoidentity:0.33.1-beta") + implementation("aws.sdk.kotlin:secretsmanager:0.33.1-beta") + implementation("aws.smithy.kotlin:http-client-engine-okhttp:0.28.0") + implementation("aws.smithy.kotlin:http-client-engine-crt:0.28.0") testImplementation("org.junit.jupiter:junit-jupiter:5.9.2") implementation("com.google.code.gson:gson:2.10") implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4") } tasks.withType() { - kotlinOptions.jvmTarget = "1.8" + kotlinOptions.jvmTarget = "17" +} + +tasks.test { + useJUnitPlatform() // Use JUnit 5 for running tests + testLogging { + events("passed", "skipped", "failed") + } + + // Define the test source set + testClassesDirs += files("build/classes/kotlin/test") + classpath += files("build/classes/kotlin/main", "build/resources/main") } diff --git a/kotlin/services/comprehend/build.gradle.kts b/kotlin/services/comprehend/build.gradle.kts index 2b26b05500f..ac87d72065e 100644 --- a/kotlin/services/comprehend/build.gradle.kts +++ b/kotlin/services/comprehend/build.gradle.kts @@ -1,7 +1,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { - kotlin("jvm") version "1.7.10" + kotlin("jvm") version "1.9.0" application } @@ -20,17 +20,29 @@ buildscript { repositories { mavenCentral() - jcenter() } apply(plugin = "org.jlleitschuh.gradle.ktlint") dependencies { - implementation("aws.sdk.kotlin:comprehend:0.30.1-beta") - implementation("aws.sdk.kotlin:secretsmanager:0.30.1-beta") + implementation("aws.sdk.kotlin:comprehend:0.33.1-beta") + implementation("aws.sdk.kotlin:secretsmanager:0.33.1-beta") + implementation("aws.smithy.kotlin:http-client-engine-okhttp:0.28.0") + implementation("aws.smithy.kotlin:http-client-engine-crt:0.28.0") implementation("com.google.code.gson:gson:2.10") testImplementation("org.junit.jupiter:junit-jupiter:5.9.0") implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4") } tasks.withType() { - kotlinOptions.jvmTarget = "1.8" + kotlinOptions.jvmTarget = "17" +} + +tasks.test { + useJUnitPlatform() // Use JUnit 5 for running tests + testLogging { + events("passed", "skipped", "failed") + } + + // Define the test source set + testClassesDirs += files("build/classes/kotlin/test") + classpath += files("build/classes/kotlin/main", "build/resources/main") } diff --git a/kotlin/services/dynamodb/build.gradle.kts b/kotlin/services/dynamodb/build.gradle.kts index c8d6a18967a..137895aba1a 100644 --- a/kotlin/services/dynamodb/build.gradle.kts +++ b/kotlin/services/dynamodb/build.gradle.kts @@ -1,7 +1,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { - kotlin("jvm") version "1.7.10" + kotlin("jvm") version "1.9.0" application } @@ -19,12 +19,13 @@ buildscript { repositories { mavenCentral() - jcenter() } apply(plugin = "org.jlleitschuh.gradle.ktlint") dependencies { - implementation("aws.sdk.kotlin:dynamodb:0.30.1-beta") - implementation("aws.sdk.kotlin:secretsmanager:0.30.1-beta") + implementation("aws.sdk.kotlin:dynamodb:0.33.1-beta") + implementation("aws.sdk.kotlin:secretsmanager:0.33.1-beta") + implementation("aws.smithy.kotlin:http-client-engine-okhttp:0.28.0") + implementation("aws.smithy.kotlin:http-client-engine-crt:0.28.0") testImplementation("org.junit.jupiter:junit-jupiter:5.9.2") implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4") implementation(kotlin("reflect")) @@ -34,5 +35,16 @@ dependencies { implementation("com.googlecode.json-simple:json-simple:1.1.1") } tasks.withType() { - kotlinOptions.jvmTarget = "1.8" + kotlinOptions.jvmTarget = "17" +} + +tasks.test { + useJUnitPlatform() // Use JUnit 5 for running tests + testLogging { + events("passed", "skipped", "failed") + } + + // Define the test source set + testClassesDirs += files("build/classes/kotlin/test") + classpath += files("build/classes/kotlin/main", "build/resources/main") } diff --git a/kotlin/services/ec2/build.gradle.kts b/kotlin/services/ec2/build.gradle.kts index e04823f649d..5e1b3ff4dd7 100644 --- a/kotlin/services/ec2/build.gradle.kts +++ b/kotlin/services/ec2/build.gradle.kts @@ -1,7 +1,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { - kotlin("jvm") version "1.7.10" + kotlin("jvm") version "1.9.0" application } @@ -19,17 +19,28 @@ buildscript { repositories { mavenCentral() - jcenter() } apply(plugin = "org.jlleitschuh.gradle.ktlint") dependencies { - implementation("aws.sdk.kotlin:ec2:0.30.1-beta") - implementation("aws.sdk.kotlin:ssm:0.30.1-beta") - implementation("aws.sdk.kotlin:secretsmanager:0.30.1-beta") + implementation("aws.sdk.kotlin:ec2:0.33.1-beta") + implementation("aws.sdk.kotlin:ssm:0.33.1-beta") + implementation("aws.sdk.kotlin:secretsmanager:0.33.1-beta") + implementation("aws.smithy.kotlin:http-client-engine-okhttp:0.28.0") + implementation("aws.smithy.kotlin:http-client-engine-crt:0.28.0") implementation("com.google.code.gson:gson:2.10") testImplementation("org.junit.jupiter:junit-jupiter:5.9.2") implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4") } tasks.withType() { - kotlinOptions.jvmTarget = "1.8" + kotlinOptions.jvmTarget = "17" +} +tasks.test { + useJUnitPlatform() // Use JUnit 5 for running tests + testLogging { + events("passed", "skipped", "failed") + } + + // Define the test source set + testClassesDirs += files("build/classes/kotlin/test") + classpath += files("build/classes/kotlin/main", "build/resources/main") } diff --git a/kotlin/services/ecs/build.gradle.kts b/kotlin/services/ecs/build.gradle.kts index 3972ef68ec1..9b36a84d643 100644 --- a/kotlin/services/ecs/build.gradle.kts +++ b/kotlin/services/ecs/build.gradle.kts @@ -1,7 +1,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { - kotlin("jvm") version "1.7.10" + kotlin("jvm") version "1.9.0" application } @@ -19,16 +19,28 @@ buildscript { repositories { mavenCentral() - jcenter() } apply(plugin = "org.jlleitschuh.gradle.ktlint") dependencies { - implementation("aws.sdk.kotlin:ecs:0.30.1-beta") - implementation("aws.sdk.kotlin:secretsmanager:0.30.1-beta") + implementation("aws.sdk.kotlin:ecs:0.33.1-beta") + implementation("aws.sdk.kotlin:secretsmanager:0.33.1-beta") + implementation("aws.smithy.kotlin:http-client-engine-okhttp:0.28.0") + implementation("aws.smithy.kotlin:http-client-engine-crt:0.28.0") testImplementation("org.junit.jupiter:junit-jupiter:5.9.0") implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4") implementation("com.google.code.gson:gson:2.10") } tasks.withType() { - kotlinOptions.jvmTarget = "1.8" + kotlinOptions.jvmTarget = "17" +} + +tasks.test { + useJUnitPlatform() + testLogging { + events("passed", "skipped", "failed") + } + + // Define the test source set + testClassesDirs += files("build/classes/kotlin/test") + classpath += files("build/classes/kotlin/main", "build/resources/main") } diff --git a/kotlin/services/elasticbeanstalk/build.gradle.kts b/kotlin/services/elasticbeanstalk/build.gradle.kts index 29be585d94a..4b04f613f81 100644 --- a/kotlin/services/elasticbeanstalk/build.gradle.kts +++ b/kotlin/services/elasticbeanstalk/build.gradle.kts @@ -1,7 +1,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { - kotlin("jvm") version "1.7.10" + kotlin("jvm") version "1.9.0" application } @@ -19,15 +19,28 @@ buildscript { repositories { mavenCentral() - jcenter() } + apply(plugin = "org.jlleitschuh.gradle.ktlint") dependencies { - implementation("aws.sdk.kotlin:elasticbeanstalk:0.30.1-beta") - implementation("aws.sdk.kotlin:secretsmanager:0.30.1-beta") + implementation("aws.sdk.kotlin:elasticbeanstalk:0.33.1-beta") + implementation("aws.sdk.kotlin:secretsmanager:0.33.1-beta") + implementation("aws.smithy.kotlin:http-client-engine-okhttp:0.28.0") + implementation("aws.smithy.kotlin:http-client-engine-crt:0.28.0") testImplementation("org.junit.jupiter:junit-jupiter:5.9.2") implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4") } tasks.withType() { - kotlinOptions.jvmTarget = "1.8" + kotlinOptions.jvmTarget = "17" +} + +tasks.test { + useJUnitPlatform() + testLogging { + events("passed", "skipped", "failed") + } + + // Define the test source set + testClassesDirs += files("build/classes/kotlin/test") + classpath += files("build/classes/kotlin/main", "build/resources/main") } diff --git a/kotlin/services/emr/build.gradle.kts b/kotlin/services/emr/build.gradle.kts index 1ca209ec534..22bc5fa3169 100644 --- a/kotlin/services/emr/build.gradle.kts +++ b/kotlin/services/emr/build.gradle.kts @@ -1,7 +1,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { - kotlin("jvm") version "1.7.10" + kotlin("jvm") version "1.9.0" application } @@ -19,16 +19,27 @@ buildscript { repositories { mavenCentral() - jcenter() } apply(plugin = "org.jlleitschuh.gradle.ktlint") dependencies { - implementation("aws.sdk.kotlin:emr-jvm:0.29.1-beta") + implementation("com.google.code.gson:gson:2.10") + implementation("aws.sdk.kotlin:emr-jvm:0.33.1-beta") + implementation("aws.sdk.kotlin:secretsmanager:0.33.1-beta") + implementation("aws.smithy.kotlin:http-client-engine-okhttp:0.28.0") + implementation("aws.smithy.kotlin:http-client-engine-crt:0.28.0") testImplementation("org.junit.jupiter:junit-jupiter:5.9.2") implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4") - implementation("aws.sdk.kotlin:secretsmanager-jvm:0.29.1-beta") - implementation("com.google.code.gson:gson:2.10") } tasks.withType() { - kotlinOptions.jvmTarget = "1.8" + kotlinOptions.jvmTarget = "17" +} +tasks.test { + useJUnitPlatform() + testLogging { + events("passed", "skipped", "failed") + } + + // Define the test source set + testClassesDirs += files("build/classes/kotlin/test") + classpath += files("build/classes/kotlin/main", "build/resources/main") } diff --git a/kotlin/services/eventbridge/build.gradle.kts b/kotlin/services/eventbridge/build.gradle.kts index 48f1ea92273..5f743f01612 100644 --- a/kotlin/services/eventbridge/build.gradle.kts +++ b/kotlin/services/eventbridge/build.gradle.kts @@ -1,7 +1,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { - kotlin("jvm") version "1.7.10" + kotlin("jvm") version "1.9.0" application } @@ -19,17 +19,29 @@ buildscript { repositories { mavenCentral() - jcenter() } + apply(plugin = "org.jlleitschuh.gradle.ktlint") dependencies { - implementation("aws.sdk.kotlin:eventbridge-jvm:0.29.1-beta") - implementation("aws.sdk.kotlin:iam-jvm:0.29.1-beta") - implementation("aws.sdk.kotlin:sns-jvm:0.29.1-beta") - implementation("aws.sdk.kotlin:s3-jvm:0.29.1-beta") + implementation("aws.sdk.kotlin:eventbridge-jvm:0.33.1-beta") + implementation("aws.sdk.kotlin:iam-jvm:0.33.1-beta") + implementation("aws.sdk.kotlin:sns-jvm:0.33.1-beta") + implementation("aws.sdk.kotlin:s3-jvm:0.33.1-beta") + implementation("aws.smithy.kotlin:http-client-engine-okhttp:0.28.0") + implementation("aws.smithy.kotlin:http-client-engine-crt:0.28.0") testImplementation("org.junit.jupiter:junit-jupiter:5.9.2") implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4") } tasks.withType() { - kotlinOptions.jvmTarget = "1.8" + kotlinOptions.jvmTarget = "17" +} +tasks.test { + useJUnitPlatform() + testLogging { + events("passed", "skipped", "failed") + } + + // Define the test source set + testClassesDirs += files("build/classes/kotlin/test") + classpath += files("build/classes/kotlin/main", "build/resources/main") } diff --git a/kotlin/services/firehose/build.gradle.kts b/kotlin/services/firehose/build.gradle.kts index a5144e60257..45a8db7daaa 100644 --- a/kotlin/services/firehose/build.gradle.kts +++ b/kotlin/services/firehose/build.gradle.kts @@ -1,7 +1,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { - kotlin("jvm") version "1.7.10" + kotlin("jvm") version "1.9.0" application } @@ -19,17 +19,28 @@ buildscript { repositories { mavenCentral() - jcenter() } apply(plugin = "org.jlleitschuh.gradle.ktlint") dependencies { - implementation("aws.sdk.kotlin:firehose:0.30.1-beta") + implementation("aws.sdk.kotlin:firehose:0.33.1-beta") + implementation("aws.sdk.kotlin:secretsmanager:0.33.1-beta") + implementation("aws.smithy.kotlin:http-client-engine-okhttp:0.28.0") + implementation("aws.smithy.kotlin:http-client-engine-crt:0.28.0") testImplementation("org.junit.jupiter:junit-jupiter:5.9.2") implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4") implementation("com.fasterxml.jackson.core:jackson-databind:2.14.2") - implementation("aws.sdk.kotlin:secretsmanager:0.30.1-beta") implementation("com.google.code.gson:gson:2.10") } tasks.withType() { - kotlinOptions.jvmTarget = "1.8" + kotlinOptions.jvmTarget = "17" +} +tasks.test { + useJUnitPlatform() + testLogging { + events("passed", "skipped", "failed") + } + + // Define the test source set + testClassesDirs += files("build/classes/kotlin/test") + classpath += files("build/classes/kotlin/main", "build/resources/main") }