1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 16:28:12 -07:00
This commit is contained in:
Cedric Beust 2017-03-30 13:00:25 -07:00
parent 7b6774f7bc
commit da85ec31f1

View file

@ -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