Proper import of the gradle part:

- using non-shadowed libs
- stop preshgadowing plugins
- switch to project dependencies
- add annotation processing module
This commit is contained in:
Ilya Chernikov
2017-08-03 15:46:34 +02:00
parent 3caa426b76
commit 438525dfff
22 changed files with 167 additions and 100 deletions
+13 -12
View File
@@ -12,27 +12,28 @@ repositories {
dependencies {
compile project(':kotlin-gradle-plugin-api')
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compileOnly "org.jetbrains.kotlin:kotlin-compiler-embeddable:$kotlin_version"
compile project(':kotlin-stdlib')
compileOnly project(path: ':compiler', configuration: 'embeddableCompilerJar')
compile project(':plugins:allopen-cli')
compileOnly 'org.jetbrains.kotlin:gradle-api:1.6'
}
def originalSrc = "$kotlin_root/plugins/allopen/allopen-cli/src"
def targetSrc = file("$buildDir/allopen-target-src")
//def targetSrc = file("$buildDir/allopen-target-src")
//
//task preprocessSources(type: Copy) {
// from originalSrc
// into targetSrc
// filter { it.replaceAll('(?<!\\.)com\\.intellij', 'org.jetbrains.kotlin.com.intellij') }
//}
task preprocessSources(type: Copy) {
from originalSrc
into targetSrc
filter { it.replaceAll('(?<!\\.)com\\.intellij', 'org.jetbrains.kotlin.com.intellij') }
}
//sourceSets.main.java.srcDirs += originalSrc
sourceSets.main.java.srcDirs += targetSrc
compileKotlin.dependsOn preprocessSources
//compileKotlin.dependsOn preprocessSources
jar {
from(targetSrc) { include("META-INF/**") }
from(originalSrc) { include("META-INF/**") }
}
pluginBundle {