mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
New id syntax.
This commit is contained in:
parent
3322d27157
commit
b2a187d4d8
1 changed files with 2 additions and 3 deletions
|
@ -74,9 +74,8 @@ class MavenId private constructor(val groupId: String, val artifactId: String, v
|
|||
create(toId(groupId, artifactId, packaging, version))
|
||||
|
||||
fun toId(groupId: String, artifactId: String, packaging: String? = null, version: String?) =
|
||||
"$groupId:$artifactId" +
|
||||
(if (packaging != null) ":$packaging" else "") +
|
||||
":$version"
|
||||
"$groupId:$artifactId:$version" +
|
||||
(if (packaging != null) "@$packaging" else "")
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue