0f41dc814f
also refactor some locally defined tasks to the creation avoidance API
41 lines
1.2 KiB
Groovy
41 lines
1.2 KiB
Groovy
apply plugin: 'kotlin'
|
|
apply plugin: 'maven'
|
|
apply plugin: 'jps-compatible'
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
jcenter()
|
|
}
|
|
|
|
pill {
|
|
variant = 'FULL'
|
|
}
|
|
|
|
dependencies {
|
|
compile project(':kotlin-gradle-plugin-api')
|
|
// Use this dependency instead when building apart from the other modules:
|
|
// compile "org.jetbrains.kotlin:kotlin-gradle-plugin-api:$kotlin_version"
|
|
|
|
compile project(':kotlin-test::kotlin-test-junit')
|
|
|
|
compileOnly kotlinStdlib()
|
|
compileOnly project(':compiler')
|
|
compileOnly project(':compiler:plugin-api')
|
|
compileOnly project(':compiler:cli-common')
|
|
compileOnly project(':compiler:cli')
|
|
|
|
compileOnly gradleApi()
|
|
|
|
compileOnly("kotlin.build:intellij-core:${rootProject.ext["versions.intellijSdk"]}") {
|
|
artifact {
|
|
name = 'intellij-core'
|
|
type = 'jar'
|
|
extension = 'jar'
|
|
}
|
|
}
|
|
}
|
|
|
|
// Relocate `com.intellij.*` and some other classes to match those in the `kotlin-compiler-embeddable`
|
|
// (for example, the actual package at runtime is `org.jetbrains.kotlin.com.intellij.*`):
|
|
ArtifactsKt.runtimeJar(project, EmbeddableKt.rewriteDefaultJarDepsToShadedCompiler(project, {}), {})
|
|
// In a standalone build, you can setup the relocation with the Shadow plugin. |