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 fd6f4d3 commit 3b70bb2
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 3b70bb2

Please sign in to comment.