mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Rename.
This commit is contained in:
parent
7b6774f7bc
commit
da85ec31f1
1 changed files with 2 additions and 2 deletions
|
@ -36,14 +36,14 @@ class MavenId private constructor(val groupId: String, val artifactId: String, v
|
||||||
MavenId(groupId, artifactId, extension, classifier, version)
|
MavenId(groupId, artifactId, extension, classifier, version)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun toKobaltId(id: String) = if (id.endsWith(":")) id + "(0,]" else id
|
fun toMavenId(id: String) = if (id.endsWith(":")) id + "(0,]" else id
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The main entry point to create Maven Id's. Id's created by this function
|
* The main entry point to create Maven Id's. Id's created by this function
|
||||||
* will run through IMavenIdInterceptors.
|
* will run through IMavenIdInterceptors.
|
||||||
*/
|
*/
|
||||||
fun create(originalId: String) : MavenId {
|
fun create(originalId: String) : MavenId {
|
||||||
val id = toKobaltId(originalId)
|
val id = toMavenId(originalId)
|
||||||
var originalMavenId = createNoInterceptors(id)
|
var originalMavenId = createNoInterceptors(id)
|
||||||
var interceptedMavenId = originalMavenId
|
var interceptedMavenId = originalMavenId
|
||||||
val interceptors = Kobalt.context?.pluginInfo?.mavenIdInterceptors
|
val interceptors = Kobalt.context?.pluginInfo?.mavenIdInterceptors
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue