blob: b96aacd1d62acdd642ff5b5b0209bc474c530ef8 [file] [log] [blame] [edit]
description = "Lombok compiler plugin"
plugins {
kotlin("jvm")
id("jps-compatible")
id("org.jetbrains.kotlinx.kover")
}
dependencies {
embedded(project(":kotlin-lombok-compiler-plugin.common")) { isTransitive = false }
embedded(project(":kotlin-lombok-compiler-plugin.k1")) { isTransitive = false }
embedded(project(":kotlin-lombok-compiler-plugin.k2")) { isTransitive = false }
embedded(project(":kotlin-lombok-compiler-plugin.cli")) { isTransitive = false }
testImplementation(intellijCore())
testImplementation(project(":kotlin-lombok-compiler-plugin.common"))
testImplementation(project(":kotlin-lombok-compiler-plugin.k1"))
testImplementation(project(":kotlin-lombok-compiler-plugin.k2"))
testImplementation(project(":kotlin-lombok-compiler-plugin.cli"))
testImplementation(commonDependency("org.projectlombok:lombok"))
testApi(project(":compiler:util"))
testApi(project(":compiler:backend"))
testApi(project(":compiler:ir.backend.common"))
testApi(project(":compiler:backend.jvm"))
testApi(project(":compiler:cli"))
testApi(projectTests(":compiler:tests-common-new"))
testApi(projectTests(":compiler:test-infrastructure"))
testApi(projectTests(":compiler:test-infrastructure-utils"))
// FIR dependencies
testApi(project(":compiler:fir:checkers"))
testApi(project(":compiler:fir:checkers:checkers.jvm"))
testRuntimeOnly(project(":compiler:fir:fir-serialization"))
testRuntimeOnly(project(":core:descriptors.runtime"))
testApi(commonDependency("junit:junit"))
testRuntimeOnly(commonDependency("com.google.guava:guava"))
testRuntimeOnly(commonDependency("org.codehaus.woodstox:stax2-api"))
testRuntimeOnly(commonDependency("com.fasterxml:aalto-xml"))
testRuntimeOnly(toolsJar())
}
optInToExperimentalCompilerApi()
sourceSets {
"main" { none() }
"test" {
projectDefault()
generatedTestDir()
}
}
projectTest(jUnitMode = JUnitMode.JUnit5) {
useJUnitPlatform()
workingDir = rootDir
doFirst {
project.configurations
.testRuntimeClasspath.get()
.files
.find { "guava" in it.name }
?.absolutePath
?.let { systemProperty("org.jetbrains.kotlin.test.guava-location", it) }
}
setTestNameIncludePatterns(listOf("*Fir*", "Fir*", "*fir*"))
}
publish()
runtimeJar()
sourcesJar()
javadocJar()
testsJar()