Skip to content

Commit

Permalink
Publish a BOM.
Browse files Browse the repository at this point in the history
Signed-off-by: Kenneth J. Shackleton <[email protected]>
  • Loading branch information
kennethshackleton committed Feb 4, 2024
1 parent 3a22c7c commit e0f49eb
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
}

dependencies {
implementation("com.bloomberg:selekt-android:<version>")
implementation("com.bloomberg:selekt-android-sqlcipher:<version>")
implementation(platform("com.bloomberg:selekt-bom:<version>"))
implementation("com.bloomberg:selekt-android")
implementation("com.bloomberg:selekt-android-sqlcipher")
}
```

Expand All @@ -21,8 +22,9 @@
}

dependencies {
implementation 'com.bloomberg:selekt-android:<version>'
implementation 'com.bloomberg:selekt-android-sqlcipher:<version>'
implementation platform('com.bloomberg:selekt-bom:<version>'))
implementation 'com.bloomberg:selekt-android'
implementation 'com.bloomberg:selekt-android-sqlcipher'
}
```

Expand Down
45 changes: 45 additions & 0 deletions selekt-bom/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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<MavenPublication>("main") {
from(components.getByName("javaPlatform"))
pom {
commonInitialisation(project)
description.set("Selekt BOM.")
}
}
}
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit e0f49eb

Please sign in to comment.