Skip to content

Commit

Permalink
Fix implicit task dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
0marperez committed Apr 23, 2024
1 parent 4016c3c commit e247085
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/codegen/nullability-tests/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ tasks.generateSmithyProjections {
smithyBuildConfigs.set(files("smithy-build.json"))
}

tasks.kotlinSourcesJar {
dependsOn(tasks.generateSmithyProjections)
}

val optinAnnotations = listOf("kotlin.RequiresOptIn", "aws.smithy.kotlin.runtime.InternalApi")
kotlin.sourceSets.all {
optinAnnotations.forEach { languageSettings.optIn(it) }
Expand Down
4 changes: 4 additions & 0 deletions tests/codegen/paginator-tests/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ tasks.generateSmithyProjections {
smithyBuildConfigs.set(files("smithy-build.json"))
}

tasks.kotlinSourcesJar {
dependsOn(tasks.generateSmithyProjections)
}

val optinAnnotations = listOf("kotlin.RequiresOptIn", "aws.smithy.kotlin.runtime.InternalApi")
kotlin.sourceSets.all {
optinAnnotations.forEach { languageSettings.optIn(it) }
Expand Down
7 changes: 7 additions & 0 deletions tests/codegen/serde-tests/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ val stageGeneratedSources = tasks.register("stageGeneratedSources") {
}
}

tasks.kotlinSourcesJar {
dependsOn(
tasks.generateSmithyProjections,
stageGeneratedSources,
)
}

kotlin.sourceSets.getByName("main") {
kotlin.srcDir(generatedSrcDir)
}
Expand Down
4 changes: 4 additions & 0 deletions tests/codegen/waiter-tests/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ tasks.generateSmithyProjections {
smithyBuildConfigs.set(files("smithy-build.json"))
}

tasks.kotlinSourcesJar {
dependsOn(tasks.generateSmithyProjections)
}

val optinAnnotations = listOf("kotlin.RequiresOptIn", "aws.smithy.kotlin.runtime.InternalApi")
kotlin.sourceSets.all {
optinAnnotations.forEach { languageSettings.optIn(it) }
Expand Down

0 comments on commit e247085

Please sign in to comment.