f43ad1cb7a
Remove annotations, kotlin-stdlib-common, kotlin-stdlib. Packing those libraries is wrong and probably unexpected. It leads to artifacts size increase. Can be dangerous because of bad classpath. And also have a reproducibility issue because of caching tricks around KotlinVersionCurrentValue class. KTI-942
74 lines
2.1 KiB
Kotlin
74 lines
2.1 KiB
Kotlin
description = "Lombok compiler plugin"
|
|
|
|
plugins {
|
|
kotlin("jvm")
|
|
id("jps-compatible")
|
|
}
|
|
|
|
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(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) }
|
|
|
|
}
|
|
}
|
|
|
|
runtimeJar()
|
|
sourcesJar()
|
|
javadocJar()
|
|
testsJar()
|