blob: 7f2cd897db59e1fe6b88e4e96dca99a7c0e17fed [file] [log] [blame] [edit]
description = "Kotlin Android Extensions Compiler"
plugins {
kotlin("jvm")
}
dependencies {
compileOnly(project(":compiler:util"))
compileOnly(project(":compiler:plugin-api"))
compileOnly(project(":compiler:frontend"))
compileOnly(project(":compiler:frontend.java"))
compileOnly(project(":compiler:backend"))
compileOnly(project(":kotlin-android-extensions-runtime"))
runtimeOnly(project(":kotlin-compiler-embeddable"))
compileOnly(commonDependency("com.google.android", "android"))
compileOnly(intellijCore())
embedded(project(":plugins:android-extensions-compiler")) { isTransitive = false }
embedded(project(":kotlin-android-extensions-runtime")) { isTransitive = false }
val httpClientVersion = libs.versions.http.client.get()
val jsonVersion = libs.versions.json.get()
configurations.all {
resolutionStrategy.eachDependency {
if (requested.group == "org.apache.httpcomponents" && requested.name == "httpclient") {
useVersion(httpClientVersion)
}
if (requested.group == "org.json" && requested.name == "json") {
useVersion(jsonVersion)
}
}
}
}
sourceSets {
"main" { projectDefault() }
"test" {}
}
publish()
runtimeJar(rewriteDefaultJarDepsToShadedCompiler())
sourcesJar()
javadocJar()