Skip to content

Commit

Permalink
fix for allowing subgroups of a given staging profile (com-lihaoyi#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbarker authored and ucbjrl committed Oct 9, 2018
1 parent e506efd commit a31509b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scalalib/src/mill/scalalib/publish/SonatypeHttpApi.scala
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ class SonatypeHttpApi(uri: String, credentials: String) {
ujson
.read(response.body)("data")
.arr
.find(profile => profile("name").str == groupId)
.find(profile =>
groupId.split('.').startsWith(profile("name").str.split('.')))
.map(_("resourceURI").str.toString)

resourceUri.getOrElse(
Expand Down

0 comments on commit a31509b

Please sign in to comment.