34 lines
649 B
Kotlin
34 lines
649 B
Kotlin
|
|
import org.gradle.jvm.tasks.Jar
|
|
|
|
apply { plugin("java") }
|
|
|
|
val projectsToShadow = listOf(
|
|
":plugins:lint",
|
|
":plugins:uast-kotlin",
|
|
":plugins:uast-kotlin-idea")
|
|
|
|
tasks.withType<Jar> {
|
|
setupRuntimeJar("Kotlin Android Lint")
|
|
archiveName = "android-lint.jar"
|
|
projectsToShadow.forEach {
|
|
dependsOn("$it:classes")
|
|
project(it).let { p ->
|
|
p.pluginManager.withPlugin("java") {
|
|
from(p.the<JavaPluginConvention>().sourceSets.getByName("main").output)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
"main" {}
|
|
"test" {}
|
|
}
|
|
|
|
val jar: Jar by tasks
|
|
|
|
ideaPlugin {
|
|
from(jar)
|
|
}
|