File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,17 +18,22 @@ apply from: "gradle/shipkit.gradle"
1818
1919apply plugin : " maven-publish"
2020
21+ def publishableModules = [
22+ " mockito-scala" ,
23+ " mockito-scala-cats" ,
24+ " mockito-scala-scalatest" ,
25+ " mockito-scala-scalaz" ,
26+ " mockito-scala-specs2" ,
27+ ]
28+ def scalaBinarySuffixes = [" _2.12" , " _2.13" , " _3" ]
29+
2130def pubNames = []
2231publishing {
2332publications {
2433 int i = 1
25- [
26- " mockito-scala_2.12" , " mockito-scala_2.13" ,
27- " mockito-scala-cats_2.12" , " mockito-scala-cats_2.13" ,
28- " mockito-scala-scalatest_2.12" , " mockito-scala-scalatest_2.13" ,
29- " mockito-scala-scalaz_2.12" , " mockito-scala-scalaz_2.13" ,
30- " mockito-scala-specs2_2.12" , " mockito-scala-specs2_2.13" ,
31- ]. each {pub ->
34+ publishableModules. collectMany { module ->
35+ scalaBinarySuffixes. collect { suffix -> " ${ module}${ suffix} " }
36+ }. each {pub ->
3237 String pubName = " publication${ i++} "
3338 pubNames << pubName
3439 " $pubName " (MavenPublication ) {
You can’t perform that action at this time.
0 commit comments