Add kapt3-idea to gradle build

This commit is contained in:
Ilya Chernikov
2017-09-17 23:08:46 +02:00
parent 5e108d8efd
commit bb72da7d10
5 changed files with 199 additions and 155 deletions
@@ -16,6 +16,7 @@ dependencies {
testCompile(project(":compiler:cli"))
testCompile(project(":compiler:frontend.java"))
testCompile(project(":idea:idea-test-framework")) { isTransitive = false }
testCompile(project(":plugins:kapt3-idea"))
testCompile(projectTests(":idea"))
testCompile(projectTests(":idea:idea-android"))
testCompile(projectDist(":kotlin-test:kotlin-test-jvm"))
+24
View File
@@ -0,0 +1,24 @@
apply { plugin("kotlin") }
dependencies {
compile(projectDist(":kotlin-stdlib"))
compile(project(":compiler:frontend"))
compile(project(":idea")) { isTransitive = false }
compile(project(":idea:kotlin-gradle-tooling"))
compile(project(":kotlin-annotation-processing"))
compile(ideaSdkDeps("openapi", "external-system-rt"))
compile(ideaPluginDeps("gradle-core", "gradle-tooling-api", "gradle", plugin = "gradle"))
compile(ideaPluginDeps("android", plugin = "android"))
}
sourceSets {
"main" { projectDefault() }
"test" {}
}
val jar = runtimeJar()
ideaPlugin {
from(jar)
}
-19
View File
@@ -1,19 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="kotlin-runtime" level="project" />
<orderEntry type="library" name="gradle-and-groovy-plugin" level="project" />
<orderEntry type="library" name="idea-full" level="project" />
<orderEntry type="module" module-name="kapt3" />
<orderEntry type="module" module-name="frontend" />
<orderEntry type="module" module-name="idea" />
<orderEntry type="module" module-name="kotlin-gradle-tooling" />
<orderEntry type="library" name="android-plugin" level="project" />
</component>
</module>