Files
kotlin-fork/libraries/tools/kotlin-annotation-processing/build.gradle.kts
T
Sergey Igushkin 5deb20543f Get rid of gradle-api artifacts uploaded to and used from JB repo
Remove redundant Maven dependency to `gradle-api` scoped as provided
2018-01-17 18:45:26 +03:00

42 lines
1.1 KiB
Kotlin

import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.gradle.api.internal.artifacts.publish.ArchivePublishArtifact
import org.gradle.jvm.tasks.Jar
description = "Annotation Processor wrapper for Kotlin"
apply { plugin("kotlin") }
val packedJars by configurations.creating
dependencies {
compile(projectDist(":kotlin-stdlib"))
compileOnly(project(":kotlin-annotation-processing"))
compileOnly(gradleApi())
testCompile(gradleApi())
compileOnly("com.android.tools.build:gradle:1.1.0")
testCompile("com.android.tools.build:gradle:1.1.0")
testCompile(commonDep("junit:junit"))
packedJars(project(":kotlin-annotation-processing")) { isTransitive = false }
runtime(projectRuntimeJar(":kotlin-compiler-embeddable"))
}
projectTest {
workingDir = projectDir
}
val jar: Jar by tasks
jar.apply {
classifier = "base"
}
runtimeJar(rewriteDepsToShadedCompiler(
task<ShadowJar>("shadowJar") {
from(packedJars)
from(the<JavaPluginConvention>().sourceSets.getByName("main").output)
}
))
sourcesJar()
javadocJar()
publish()