Refactor compiler-related published projects

- move preparation into separate projects
- rename projects for publishing
- add compiler plugins
This commit is contained in:
Ilya Chernikov
2017-09-11 13:03:35 +02:00
parent aa4fdaa713
commit e18b77af21
19 changed files with 229 additions and 343 deletions
+11 -9
View File
@@ -1,30 +1,32 @@
import org.gradle.jvm.tasks.Jar
description = "Kotlin AllOpen Compiler Plugin"
apply { plugin("kotlin") }
dependencies {
val compile by configurations
compile(ideaSdkCoreDeps("intellij-core"))
compile(project(":compiler:plugin-api"))
compile(project(":compiler:frontend"))
val compileOnly by configurations
val runtime by configurations
compileOnly(ideaSdkCoreDeps("intellij-core"))
compileOnly(project(":compiler:plugin-api"))
compileOnly(project(":compiler:frontend"))
runtime(project(":kotlin-compiler", configuration = "runtimeJar"))
runtime(project(":kotlin-stdlib"))
}
configureKotlinProjectSourcesDefault()
configureKotlinProjectNoTests()
val jar: Jar by tasks
jar.apply {
setupRuntimeJar("Kotlin AllOpen Compiler Plugin")
val jar = runtimeJar {
from(fileTree("$projectDir/src")) { include("META-INF/**") }
archiveName = "allopen-compiler-plugin.jar"
}
dist {
from(jar)
rename("^kotlin-", "")
}
ideaPlugin {
from(jar)
rename("^kotlin-", "")
}