Rearrange and rename idea-plugin related and annotation-processing modules
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user