Skip to content

Commit

Permalink
wip publish smithy-kotlin in our bom
Browse files Browse the repository at this point in the history
  • Loading branch information
aajtodd committed Oct 17, 2023
1 parent 0a09bd0 commit e5d12eb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
14 changes: 14 additions & 0 deletions bom/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,20 @@ fun createBomConstraintsAndVersionCatalog() {
}
}
}


// add smithy-kotlin versions to our BOM and allow direct aliasing in the catalog
val smithyKotlinCatalog = extensions.getByType<VersionCatalogsExtension>().named("smithyKotlin")
catalogExt.versionCatalog {
smithyKotlinCatalog.libraryAliases.forEach { alias ->
val coordinates = smithyKotlinCatalog.findLibrary(alias).get()
bomConstraints.api(coordinates)
val newAlias = "runtime-smithykotlin-$alias"
library(newAlias, coordinates.get().toString())
}
}


}

fun Project.artifactId(target: KotlinTarget): String = when (target) {
Expand Down
6 changes: 6 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ dependencyResolutionManagement {
mavenLocal()
mavenCentral()
}

versionCatalogs {
create("smithyKotlin") {
from("aws.smithy.kotlin:version-catalog:0.28.0-SNAPSHOT")
}
}
}

sourceControl {
Expand Down

0 comments on commit e5d12eb

Please sign in to comment.