diff --git a/docs/getting_started.md b/docs/getting_started.md index 83e331d34b..5d91473aa0 100644 --- a/docs/getting_started.md +++ b/docs/getting_started.md @@ -9,8 +9,9 @@ } dependencies { - implementation("com.bloomberg:selekt-android:") - implementation("com.bloomberg:selekt-android-sqlcipher:") + implementation(platform("com.bloomberg:selekt-bom:")) + implementation("com.bloomberg:selekt-android") + implementation("com.bloomberg:selekt-android-sqlcipher") } ``` @@ -21,8 +22,9 @@ } dependencies { - implementation 'com.bloomberg:selekt-android:' - implementation 'com.bloomberg:selekt-android-sqlcipher:' + implementation platform('com.bloomberg:selekt-bom:')) + implementation 'com.bloomberg:selekt-android' + implementation 'com.bloomberg:selekt-android-sqlcipher' } ``` diff --git a/selekt-bom/build.gradle.kts b/selekt-bom/build.gradle.kts new file mode 100644 index 0000000000..7bb305d03c --- /dev/null +++ b/selekt-bom/build.gradle.kts @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Bloomberg Finance L.P. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +plugins { + `java-platform` + `maven-publish` +} + +dependencies { + constraints { + projects.run { + listOf( + selektAndroid, + selektAndroidLint, + selektAndroidSqlcipher, + selektApi, + selektJava, + selektSqlite3Classes + ) + }.forEach(::api) + } +} + +publishing { + publications.register("main") { + from(components.getByName("javaPlatform")) + pom { + commonInitialisation(project) + description.set("Selekt BOM.") + } + } +} diff --git a/settings.gradle.kts b/settings.gradle.kts index efd9aab967..a4a8677195 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -24,6 +24,7 @@ include(":selekt-android") include(":selekt-android-lint") include(":selekt-android-sqlcipher") include(":selekt-api") +include(":selekt-bom") include(":selekt-java") include(":selekt-sqlite3") include(":selekt-sqlite3-classes")