Skip to content

Commit

Permalink
Merge pull request #673 from disneystreaming/distinct-deps
Browse files Browse the repository at this point in the history
Adding .distinct where relevant in the sbt plugin
  • Loading branch information
Baccata authored Dec 13, 2022
2 parents f3b8cff + 6f9c57b commit af8aff1
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,20 +157,24 @@ object Smithy4sCodegenPlugin extends AutoPlugin {
_.configurations.exists(_.contains(Smithy4s.name))
)
.map(_.withConfigurations(None))
.distinct
},
config / smithy4sExternallyTrackedDependencies := {
(config / externalDependencyClasspath).value
.map(_.data)
.flatMap(extract)
.distinct
},
config / smithy4sNormalExternalDependencies := {
(config / externalDependencyClasspath).value
.flatMap(_.metadata.get(moduleID.key))
.distinct
},
config / smithy4sAllExternalDependencies := {
(config / smithy4sNormalExternalDependencies).value ++
val all = (config / smithy4sNormalExternalDependencies).value ++
(config / smithy4sExplicitCodegenOnlyDependencies).value ++
(config / smithy4sExternallyTrackedDependencies).value
all.distinct
},
config / smithy4sAllDependenciesAsJars := {
(config / smithy4sInternalDependenciesAsJars).value ++
Expand Down

0 comments on commit af8aff1

Please sign in to comment.