Skip to content

Commit

Permalink
fix for allowing subgroups of a given staging profile (#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbarker authored and lihaoyi committed Oct 5, 2018
1 parent 718907e commit 114208c
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 114208c

Please sign in to comment.