Skip to content

Commit

Permalink
Update the Kotlin build file (awsdocs#5622)
Browse files Browse the repository at this point in the history
Update the Kotlin build files
  • Loading branch information
scmacdon authored and meyertst-aws committed Jan 4, 2024
1 parent 692ff36 commit a042626
Show file tree
Hide file tree
Showing 16 changed files with 279 additions and 89 deletions.
26 changes: 19 additions & 7 deletions kotlin/services/appsync/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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
}

Expand All @@ -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<KotlinCompile>() {
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")
}
22 changes: 17 additions & 5 deletions kotlin/services/athena/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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
}

Expand All @@ -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<KotlinCompile>() {
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")
}
22 changes: 17 additions & 5 deletions kotlin/services/autoscale/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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
}

Expand All @@ -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<KotlinCompile>() {
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")
}
22 changes: 17 additions & 5 deletions kotlin/services/cloudformation/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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
}

Expand All @@ -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<KotlinCompile>() {
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")
}
22 changes: 17 additions & 5 deletions kotlin/services/cloudtrail/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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
}

Expand All @@ -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<KotlinCompile>() {
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")
}
26 changes: 19 additions & 7 deletions kotlin/services/cloudwatch/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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
}

Expand All @@ -19,20 +19,32 @@ 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")
testImplementation("org.junit.jupiter:junit-jupiter:5.9.2")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
}
tasks.withType<KotlinCompile>() {
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")
}
22 changes: 17 additions & 5 deletions kotlin/services/codepipeline/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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
}

Expand All @@ -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<KotlinCompile>() {
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")
}
24 changes: 18 additions & 6 deletions kotlin/services/cognito/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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
}

Expand All @@ -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<KotlinCompile>() {
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")
}
22 changes: 17 additions & 5 deletions kotlin/services/comprehend/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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
}

Expand All @@ -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<KotlinCompile>() {
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")
}
Loading

0 comments on commit a042626

Please sign in to comment.