diff --git a/bom/build.gradle.kts b/bom/build.gradle.kts index 3e5939e1a7a..9f0528c2cb2 100644 --- a/bom/build.gradle.kts +++ b/bom/build.gradle.kts @@ -52,6 +52,20 @@ fun createBomConstraintsAndVersionCatalog() { } } } + + + // add smithy-kotlin versions to our BOM and allow direct aliasing in the catalog + val smithyKotlinCatalog = extensions.getByType().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) { diff --git a/settings.gradle.kts b/settings.gradle.kts index d910c8a8a1a..70788fab23e 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -23,6 +23,12 @@ dependencyResolutionManagement { mavenLocal() mavenCentral() } + + versionCatalogs { + create("smithyKotlin") { + from("aws.smithy.kotlin:version-catalog:0.28.0-SNAPSHOT") + } + } } sourceControl {