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 #2321)
- Loading branch information
Thomas Keller
committed
Jun 11, 2021
1 parent
ef34307
commit bc05a68
Showing
4 changed files
with
68 additions
and
32 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
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) | ||
} | ||
} | ||
} | ||
} |