1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Update AndroidPlugin to the new syntax.

This commit is contained in:
Cedric Beust 2015-12-16 19:00:17 +04:00
parent 55bc15359a
commit d74a68e31f

View file

@ -10,7 +10,6 @@ import com.beust.kobalt.maven.dependency.FileDependency
import com.beust.kobalt.maven.dependency.MavenDependency
import com.beust.kobalt.misc.*
import com.beust.kobalt.plugin.java.JavaCompiler
import com.beust.kobalt.misc.JarUtils
import com.google.common.collect.HashMultimap
import com.google.inject.Inject
import com.google.inject.Singleton
@ -455,7 +454,7 @@ public class AndroidPlugin @Inject constructor(val javaCompiler: JavaCompiler,
override fun intercept(mavenId: MavenId) : MavenId =
if (isAar(mavenId)) {
val version = mavenId.version ?: ""
MavenId.createNoInterceptors("${mavenId.groupId}:${mavenId.artifactId}:aar:$version")
MavenId.createNoInterceptors("${mavenId.groupId}:${mavenId.artifactId}:$version@aar")
} else {
mavenId
}