8a82c1618c
When plugins DSL is used, there is no need to manually generate typesafe accessors for extensions and conventions (by running `./gradlew kotlinDslAccessorsSnapshot`).
49 lines
1.2 KiB
Kotlin
49 lines
1.2 KiB
Kotlin
|
|
description = "Kotlin NoArg Compiler Plugin"
|
|
|
|
plugins {
|
|
kotlin("jvm")
|
|
id("jps-compatible")
|
|
}
|
|
|
|
dependencies {
|
|
testRuntime(intellijDep())
|
|
|
|
compileOnly(project(":compiler:frontend"))
|
|
compileOnly(project(":compiler:frontend.java"))
|
|
compileOnly(project(":compiler:backend"))
|
|
compileOnly(project(":compiler:util"))
|
|
compileOnly(project(":compiler:plugin-api"))
|
|
compileOnly(intellijCoreDep()) { includeJars("intellij-core") }
|
|
compileOnly(intellijDep()) { includeJars("asm-all") }
|
|
runtime(projectRuntimeJar(":kotlin-compiler"))
|
|
runtime(projectDist(":kotlin-stdlib"))
|
|
|
|
testCompile(project(":compiler:backend"))
|
|
testCompile(project(":compiler:cli"))
|
|
testCompile(project(":compiler:tests-common"))
|
|
testCompile(projectTests(":compiler:tests-common"))
|
|
testCompile(commonDep("junit:junit"))
|
|
}
|
|
|
|
sourceSets {
|
|
"main" { projectDefault() }
|
|
"test" { projectDefault() }
|
|
}
|
|
|
|
val jar = runtimeJar {
|
|
from(fileTree("$projectDir/src")) { include("META-INF/**") }
|
|
}
|
|
|
|
testsJar {}
|
|
|
|
dist(targetName = the<BasePluginConvention>().archivesBaseName.removePrefix("kotlin-") + ".jar")
|
|
|
|
ideaPlugin {
|
|
from(jar)
|
|
}
|
|
|
|
projectTest {
|
|
workingDir = rootDir
|
|
}
|