Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions bom/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
plugins {
id 'java-platform'
}

apply from: "${rootProject.projectDir}/scripts/upload.gradle.kts"

dependencies {
constraints {
rootProject.subprojects { subproject ->
subproject.plugins.withId('maven-publish') {
// Exclude self project from BOM.
if (subproject != this.project) {
api subproject
}
}
}
}
}
4 changes: 4 additions & 0 deletions bom/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
POM_NAME=Glide BOM
POM_ARTIFACT_ID=bom
POM_PACKAGING=pom
POM_DESCRIPTION=Glide Bill of Materials.
2 changes: 2 additions & 0 deletions scripts/upload.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ afterEvaluate { project ->
artifact androidSourcesJar
artifact androidJavadocsJar
artifact project.tasks.bundleReleaseAar
} else if (project.plugins.hasPlugin('java-platform')) {
from components.javaPlatform
} else if (project.plugins.hasPlugin('java')) {
task sourcesJar(type: Jar, dependsOn: classes) {
archiveClassifier.set('sources')
Expand Down
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ include ':integration:sqljournaldiskcache'
include ':integration:volley'
include ':testutil'
include ':mocks'
include ':bom'

rootProject.name = 'glide-parent'

Expand Down
Loading