blob: e8fefa03689842a0e28399aab5693dc68b1660e3 [file] [log] [blame] [edit]
description = "Parcelize compiler plugin"
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(":plugins:parcelize:parcelize-runtime"))
runtimeOnly(project(":kotlin-compiler-embeddable"))
compileOnly(commonDependency("com.google.android", "android"))
compileOnly(intellijCore())
embedded(project(":plugins:parcelize:parcelize-compiler")) { isTransitive = false }
embedded(project(":plugins:parcelize:parcelize-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()