Skip to content

Commit 90a93ac

Browse files
committed
Fix kotlin native builds failing
1 parent f390f6a commit 90a93ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codegen/aws-sdk-codegen/src/main/kotlin/aws/sdk/kotlin/codegen/GradleGenerator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ class GradleGenerator : KotlinIntegration {
9595
private fun generateSmokeTestJarTask(writer: GradleWriter, ctx: CodegenContext) {
9696
writer.withBlock("jvm {", "}") {
9797
withBlock("compilations {", "}") {
98-
write("val runtimePath = configurations.getByName(#S).map { if (it.isDirectory) it else zipTree(it) }", "jvmRuntimeClasspath")
9998
write("val mainPath = getByName(#S).output.classesDirs", "main")
10099
write("val testPath = getByName(#S).output.classesDirs", "test")
101100
withBlock("tasks {", "}") {
@@ -106,6 +105,7 @@ class GradleGenerator : KotlinIntegration {
106105
withBlock("manifest {", "}") {
107106
write("attributes[#S] = #S", "Main-Class", "${ctx.settings.pkg.name}.smoketests.SmokeTestsKt")
108107
}
108+
write("val runtimePath = configurations.getByName(#S).map { if (it.isDirectory) it else zipTree(it) }", "jvmRuntimeClasspath")
109109
write("duplicatesStrategy = DuplicatesStrategy.EXCLUDE")
110110
write("from(runtimePath, mainPath, testPath)")
111111
write("archiveBaseName.set(#S)", "\${project.name}-smoketests")

0 commit comments

Comments
 (0)