smithy-lang / smithy-kotlin

Smithy code generator for Kotlin (in development)
Apache License 2.0
64 stars 26 forks source link

fix: implicit task dependencies #1076

Closed 0marperez closed 2 months ago

0marperez commented 2 months ago

Issue \

N/A

Description of changes

Fix some implicit task dependencies gradle was marking as errors, e.g.

A problem was found with the configuration of task ':tests:codegen:nullability-tests:generateSmithyProjections' (type 'SmithyBuildTask').
  - Gradle detected a problem with the following location: '/.../smithy-kotlin/tests/codegen/nullability-tests/build/smithyprojections/nullability-tests'.

    Reason: Task ':tests:codegen:nullability-tests:kotlinSourcesJar' uses this output of task ':tests:codegen:nullability-tests:generateSmithyProjections' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

0marperez commented 2 months ago

Will be handled by: https://github.com/smithy-lang/smithy-kotlin/pull/1077