44 lines
1.1 KiB
Kotlin
44 lines
1.1 KiB
Kotlin
|
|
description = "Kotlin NoArg Compiler Plugin"
|
|
|
|
apply { plugin("kotlin") }
|
|
|
|
dependencies {
|
|
compileOnly(project(":compiler:frontend"))
|
|
compileOnly(project(":compiler:frontend.java"))
|
|
compileOnly(project(":compiler:backend"))
|
|
compileOnly(project(":compiler:util"))
|
|
compileOnly(project(":compiler:plugin-api"))
|
|
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"))
|
|
|
|
testRuntime(ideaSdkDeps("*.jar"))
|
|
}
|
|
|
|
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)
|
|
rename("^kotlin-", "")
|
|
}
|
|
|
|
projectTest {
|
|
workingDir = rootDir
|
|
} |