Rearrange and rename idea-plugin related and annotation-processing modules

This commit is contained in:
Ilya Chernikov
2017-08-31 19:35:24 +03:00
parent e23c26b5d1
commit b4c9422376
15 changed files with 255 additions and 293 deletions
@@ -1,14 +1,28 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
description = "Annotation Processor wrapper for Kotlin"
buildscript {
repositories {
jcenter()
}
dependencies {
classpath("com.github.jengelman.gradle.plugins:shadow:1.2.3")
}
}
apply { plugin("kotlin") }
val packedJars by configurations.creating
dependencies {
compile(project(":plugins:kapt3"))
compile(project(":kotlin-annotation-processing"))
compileOnly("org.jetbrains.kotlin:gradle-api:1.6")
compileOnly("com.android.tools.build:gradle:1.1.0")
compile(projectDist(":kotlin-stdlib"))
testCompile(commonDep("junit:junit"))
packedJars(project(":kotlin-annotation-processing")) { isTransitive = false }
}
sourceSets {
@@ -20,10 +34,16 @@ projectTest {
workingDir = projectDir
}
runtimeJar()
val jar by tasks
jar.apply {
enabled = false
}
runtimeJar(task<ShadowJar>("shadowJar")) {
from(packedJars)
from(the<JavaPluginConvention>().sourceSets.getByName("main").output)
}
sourcesJar()
javadocJar()
dist()
publish()