forked from mockito/mockito
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce a BOM for Mockito's artifacts (closes mockito#2321)
- Loading branch information
Thomas Keller
committed
Jun 11, 2021
1 parent
ef34307
commit e88cb29
Showing
5 changed files
with
69 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionSha256Sum=e58cdff0cee6d9b422dcd08ebeb3177bc44eaa09bd9a2e838ff74c408fe1cbcd | ||
#distributionSha256Sum=e58cdff0cee6d9b422dcd08ebeb3177bc44eaa09bd9a2e838ff74c408fe1cbcd | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.4.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
plugins { | ||
id('java-platform') | ||
} | ||
|
||
description = "Mockito Bill of Materials (BOM)" | ||
|
||
if (!archivesBaseName.startsWith("mockito-")) { | ||
archivesBaseName = "mockito-" + project.name | ||
} | ||
|
||
apply from: "$rootDir/gradle/java-publication.gradle" | ||
|
||
dependencies { | ||
constraints { | ||
project.rootProject.subprojects.forEach { subproject -> | ||
if (!subproject.name.endsWith("Test") && | ||
!subproject.name.endsWith("-test") && | ||
subproject.name != "bom") { | ||
api(subproject) | ||
} | ||
} | ||
} | ||
} |