[Lombok] Reorganize module structure of Lombok compiler plugin
Also rename its jar to `kotlin-lombok-compiler-plugin` ^KT-52468 Fixed
This commit is contained in:
committed by
teamcity
parent
bfb908dcd9
commit
c2bf68c9d3
+2
-2
@@ -73,11 +73,11 @@
|
||||
<option value="$PROJECT_DIR$/plugins/kapt3/kapt3-cli/testData" />
|
||||
<option value="$PROJECT_DIR$/plugins/kapt3/kapt3-compiler/testData" />
|
||||
<option value="$PROJECT_DIR$/plugins/kotlin-serialization/kotlin-serialization-compiler/testData" />
|
||||
<option value="$PROJECT_DIR$/plugins/lombok/lombok-compiler-plugin/testData" />
|
||||
<option value="$PROJECT_DIR$/plugins/noarg/testData" />
|
||||
<option value="$PROJECT_DIR$/plugins/parcelize/parcelize-compiler/testData" />
|
||||
<option value="$PROJECT_DIR$/plugins/sam-with-receiver/sam-with-receiver-cli/testData" />
|
||||
<option value="$PROJECT_DIR$/plugins/lombok/testData" />
|
||||
</array>
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
||||
</project>
|
||||
@@ -65,7 +65,7 @@ dependencies {
|
||||
testApi(projectTests(":kotlin-annotation-processing-cli"))
|
||||
testApi(projectTests(":kotlin-allopen-compiler-plugin"))
|
||||
testApi(projectTests(":kotlin-noarg-compiler-plugin"))
|
||||
testApi(projectTests(":plugins:lombok:lombok-compiler-plugin"))
|
||||
testApi(projectTests(":kotlin-lombok-compiler-plugin"))
|
||||
testApi(projectTests(":kotlin-sam-with-receiver-compiler-plugin"))
|
||||
testApi(projectTests(":kotlinx-serialization-compiler-plugin"))
|
||||
testApi(projectTests(":kotlinx-atomicfu-compiler-plugin"))
|
||||
|
||||
@@ -248,7 +248,7 @@ fun main(args: Array<String>) {
|
||||
}
|
||||
}
|
||||
|
||||
testGroup("plugins/lombok/lombok-compiler-plugin/tests", "plugins/lombok/lombok-compiler-plugin/testData") {
|
||||
testGroup("plugins/lombok/tests-gen", "plugins/lombok/testData") {
|
||||
testClass<AbstractLombokCompileTest> {
|
||||
model("compile")
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ plugins {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
embedded(project(":plugins:lombok:lombok-compiler-plugin")) { isTransitive = false }
|
||||
embedded(project(":kotlin-lombok-compiler-plugin")) { isTransitive = false }
|
||||
|
||||
commonApi(project(":kotlin-gradle-plugin-model"))
|
||||
}
|
||||
|
||||
+13
-12
@@ -6,16 +6,15 @@ plugins {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":compiler:util"))
|
||||
implementation(project(":compiler:cli"))
|
||||
implementation(project(":compiler:plugin-api"))
|
||||
implementation(project(":compiler:frontend"))
|
||||
implementation(project(":compiler:frontend.java"))
|
||||
|
||||
compileOnly(intellijCore())
|
||||
|
||||
embedded(project(":kotlin-lombok-compiler-plugin.common"))
|
||||
embedded(project(":kotlin-lombok-compiler-plugin.k1"))
|
||||
embedded(project(":kotlin-lombok-compiler-plugin.cli"))
|
||||
|
||||
testImplementation(intellijCore())
|
||||
testImplementation(project(":kotlin-lombok-compiler-plugin.common"))
|
||||
testImplementation(project(":kotlin-lombok-compiler-plugin.k1"))
|
||||
testImplementation(project(":kotlin-lombok-compiler-plugin.cli"))
|
||||
|
||||
testImplementation(commonDependency("junit:junit"))
|
||||
testImplementation(projectTests(":compiler:tests-common"))
|
||||
|
||||
@@ -25,8 +24,11 @@ dependencies {
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
"main" { projectDefault() }
|
||||
"test" { projectDefault() }
|
||||
"main" { none() }
|
||||
"test" {
|
||||
projectDefault()
|
||||
generatedTestDir()
|
||||
}
|
||||
}
|
||||
|
||||
projectTest(parallel = true) {
|
||||
@@ -35,7 +37,6 @@ projectTest(parallel = true) {
|
||||
}
|
||||
|
||||
runtimeJar()
|
||||
testsJar()
|
||||
|
||||
sourcesJar()
|
||||
javadocJar()
|
||||
testsJar()
|
||||
@@ -0,0 +1,28 @@
|
||||
description = "Lombok compiler plugin (CLI)"
|
||||
|
||||
plugins {
|
||||
kotlin("jvm")
|
||||
id("jps-compatible")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly(project(":compiler:util"))
|
||||
compileOnly(project(":compiler:cli"))
|
||||
compileOnly(project(":compiler:plugin-api"))
|
||||
compileOnly(project(":compiler:frontend"))
|
||||
compileOnly(project(":compiler:frontend.java"))
|
||||
|
||||
implementation(project(":kotlin-lombok-compiler-plugin.common"))
|
||||
implementation(project(":kotlin-lombok-compiler-plugin.k1"))
|
||||
|
||||
compileOnly(intellijCore())
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
"main" { projectDefault() }
|
||||
"test" { none() }
|
||||
}
|
||||
|
||||
runtimeJar()
|
||||
sourcesJar()
|
||||
javadocJar()
|
||||
+1
-3
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
@@ -40,8 +40,6 @@ class LombokComponentRegistrar : ComponentRegistrar {
|
||||
}
|
||||
}
|
||||
|
||||
data class LombokPluginConfig(val configFile: File?)
|
||||
|
||||
object LombokConfigurationKeys {
|
||||
val CONFIG_FILE: CompilerConfigurationKey<File> = CompilerConfigurationKey.create("lombok config file location")
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
description = "Lombok compiler plugin (Common)"
|
||||
|
||||
plugins {
|
||||
kotlin("jvm")
|
||||
id("jps-compatible")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly(project(":core:compiler.common"))
|
||||
compileOnly(project(":core:compiler.common.jvm"))
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
"main" { projectDefault() }
|
||||
"test" { none() }
|
||||
}
|
||||
|
||||
runtimeJar()
|
||||
sourcesJar()
|
||||
javadocJar()
|
||||
+5
-8
@@ -1,15 +1,13 @@
|
||||
/*
|
||||
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.lombok.config
|
||||
|
||||
import org.jetbrains.kotlin.descriptors.DescriptorVisibility
|
||||
import org.jetbrains.kotlin.descriptors.Visibilities
|
||||
import org.jetbrains.kotlin.descriptors.Visibility
|
||||
import org.jetbrains.kotlin.descriptors.java.JavaVisibilities
|
||||
import org.jetbrains.kotlin.load.java.JavaDescriptorVisibilities
|
||||
|
||||
|
||||
enum class AccessLevel {
|
||||
PUBLIC, MODULE, PROTECTED, PACKAGE, PRIVATE,
|
||||
@@ -17,18 +15,17 @@ enum class AccessLevel {
|
||||
/** Represents not generating anything or the complete lack of a method. */
|
||||
NONE;
|
||||
|
||||
fun toDescriptorVisibility(): DescriptorVisibility = toDescriptorVisibility(this)
|
||||
fun toVisibility(): Visibility = toVisibility(this)
|
||||
|
||||
companion object {
|
||||
fun toDescriptorVisibility(v: AccessLevel): DescriptorVisibility {
|
||||
val visibility = when (v) {
|
||||
private fun toVisibility(v: AccessLevel): Visibility {
|
||||
return when (v) {
|
||||
PUBLIC -> Visibilities.Public
|
||||
PROTECTED -> Visibilities.Protected
|
||||
PACKAGE, MODULE -> JavaVisibilities.PackageVisibility
|
||||
PRIVATE -> Visibilities.Private
|
||||
NONE -> Visibilities.Private
|
||||
}
|
||||
return JavaDescriptorVisibilities.toDescriptorVisibility(visibility)
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
description = "Lombok compiler plugin (K1)"
|
||||
|
||||
plugins {
|
||||
kotlin("jvm")
|
||||
id("jps-compatible")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly(project(":compiler:util"))
|
||||
compileOnly(project(":compiler:cli"))
|
||||
compileOnly(project(":compiler:frontend"))
|
||||
compileOnly(project(":compiler:frontend.java"))
|
||||
|
||||
implementation(project(":kotlin-lombok-compiler-plugin.common"))
|
||||
|
||||
compileOnly(intellijCore())
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
"main" { projectDefault() }
|
||||
"test" { none() }
|
||||
}
|
||||
|
||||
runtimeJar()
|
||||
sourcesJar()
|
||||
javadocJar()
|
||||
+4
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
@@ -8,6 +8,7 @@ package org.jetbrains.kotlin.lombok
|
||||
import org.jetbrains.kotlin.lombok.config.LombokConfig
|
||||
import org.jetbrains.kotlin.resolve.jvm.SyntheticJavaPartsProvider
|
||||
import org.jetbrains.kotlin.resolve.jvm.extensions.SyntheticJavaResolveExtension
|
||||
import java.io.File
|
||||
|
||||
class LombokResolveExtension(pluginConfig: LombokPluginConfig) : SyntheticJavaResolveExtension {
|
||||
|
||||
@@ -15,3 +16,5 @@ class LombokResolveExtension(pluginConfig: LombokPluginConfig) : SyntheticJavaRe
|
||||
|
||||
override fun buildProvider(): SyntheticJavaPartsProvider = LombokSyntheticJavaPartsProvider(config)
|
||||
}
|
||||
|
||||
data class LombokPluginConfig(val configFile: File?)
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.lombok.config
|
||||
|
||||
import org.jetbrains.kotlin.descriptors.DescriptorVisibility
|
||||
import org.jetbrains.kotlin.load.java.JavaDescriptorVisibilities
|
||||
|
||||
fun AccessLevel.toDescriptorVisibility(): DescriptorVisibility {
|
||||
return JavaDescriptorVisibilities.toDescriptorVisibility(toVisibility())
|
||||
}
|
||||
+3
-4
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
@@ -88,7 +88,7 @@ object LombokAnnotations {
|
||||
}
|
||||
|
||||
class Setter(val visibility: AccessLevel = AccessLevel.PUBLIC) {
|
||||
companion object : AnnotationCompanion<Setter>( LombokNames.SETTER) {
|
||||
companion object : AnnotationCompanion<Setter>(LombokNames.SETTER) {
|
||||
|
||||
override fun extract(annotation: AnnotationDescriptor): Setter =
|
||||
Setter(
|
||||
@@ -116,7 +116,7 @@ object LombokAnnotations {
|
||||
override val visibility: DescriptorVisibility,
|
||||
override val staticName: String?
|
||||
) : ConstructorAnnotation {
|
||||
companion object : AnnotationCompanion<NoArgsConstructor>( LombokNames.NO_ARGS_CONSTRUCTOR) {
|
||||
companion object : AnnotationCompanion<NoArgsConstructor>(LombokNames.NO_ARGS_CONSTRUCTOR) {
|
||||
|
||||
override fun extract(annotation: AnnotationDescriptor): NoArgsConstructor =
|
||||
NoArgsConstructor(
|
||||
@@ -187,7 +187,6 @@ object LombokAnnotations {
|
||||
Value(
|
||||
staticConstructor = annotation.getNonBlankStringArgument("staticConstructor")
|
||||
)
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
+2
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
@@ -10,6 +10,7 @@ import org.jetbrains.kotlin.descriptors.PropertyDescriptor
|
||||
import org.jetbrains.kotlin.descriptors.SimpleFunctionDescriptor
|
||||
import org.jetbrains.kotlin.lombok.config.AccessLevel
|
||||
import org.jetbrains.kotlin.lombok.config.LombokAnnotations.With
|
||||
import org.jetbrains.kotlin.lombok.config.toDescriptorVisibility
|
||||
import org.jetbrains.kotlin.lombok.utils.*
|
||||
import org.jetbrains.kotlin.name.Name
|
||||
|
||||
+2
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
@@ -8,6 +8,7 @@ package org.jetbrains.kotlin.lombok.utils
|
||||
import org.jetbrains.kotlin.descriptors.DescriptorVisibility
|
||||
import org.jetbrains.kotlin.descriptors.annotations.AnnotationDescriptor
|
||||
import org.jetbrains.kotlin.lombok.config.AccessLevel
|
||||
import org.jetbrains.kotlin.lombok.config.toDescriptorVisibility
|
||||
import org.jetbrains.kotlin.name.Name
|
||||
import org.jetbrains.kotlin.resolve.constants.*
|
||||
|
||||
Vendored
+34
-34
@@ -17,7 +17,7 @@ import java.util.regex.Pattern;
|
||||
|
||||
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
|
||||
@SuppressWarnings("all")
|
||||
@TestMetadata("plugins/lombok/lombok-compiler-plugin/testData/compile")
|
||||
@TestMetadata("plugins/lombok/testData/compile")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class LombokCompileTestGenerated extends AbstractLombokCompileTest {
|
||||
@@ -27,154 +27,154 @@ public class LombokCompileTestGenerated extends AbstractLombokCompileTest {
|
||||
|
||||
@TestMetadata("accessorsStripPrefix.kt")
|
||||
public void testAccessorsStripPrefix() throws Exception {
|
||||
runTest("plugins/lombok/lombok-compiler-plugin/testData/compile/accessorsStripPrefix.kt");
|
||||
runTest("plugins/lombok/testData/compile/accessorsStripPrefix.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("accessorsStripPrefixCombined.kt")
|
||||
public void testAccessorsStripPrefixCombined() throws Exception {
|
||||
runTest("plugins/lombok/lombok-compiler-plugin/testData/compile/accessorsStripPrefixCombined.kt");
|
||||
runTest("plugins/lombok/testData/compile/accessorsStripPrefixCombined.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("accessorsStripPrefixConfig.kt")
|
||||
public void testAccessorsStripPrefixConfig() throws Exception {
|
||||
runTest("plugins/lombok/lombok-compiler-plugin/testData/compile/accessorsStripPrefixConfig.kt");
|
||||
runTest("plugins/lombok/testData/compile/accessorsStripPrefixConfig.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("allArgsConstructor.kt")
|
||||
public void testAllArgsConstructor() throws Exception {
|
||||
runTest("plugins/lombok/lombok-compiler-plugin/testData/compile/allArgsConstructor.kt");
|
||||
runTest("plugins/lombok/testData/compile/allArgsConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("allArgsConstructorStatic.kt")
|
||||
public void testAllArgsConstructorStatic() throws Exception {
|
||||
runTest("plugins/lombok/lombok-compiler-plugin/testData/compile/allArgsConstructorStatic.kt");
|
||||
runTest("plugins/lombok/testData/compile/allArgsConstructorStatic.kt");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCompile() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("plugins/lombok/lombok-compiler-plugin/testData/compile"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("plugins/lombok/testData/compile"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("clashAccessors.kt")
|
||||
public void testClashAccessors() throws Exception {
|
||||
runTest("plugins/lombok/lombok-compiler-plugin/testData/compile/clashAccessors.kt");
|
||||
runTest("plugins/lombok/testData/compile/clashAccessors.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("configAccessors.kt")
|
||||
public void testConfigAccessors() throws Exception {
|
||||
runTest("plugins/lombok/lombok-compiler-plugin/testData/compile/configAccessors.kt");
|
||||
runTest("plugins/lombok/testData/compile/configAccessors.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("configAccessorsOverride.kt")
|
||||
public void testConfigAccessorsOverride() throws Exception {
|
||||
runTest("plugins/lombok/lombok-compiler-plugin/testData/compile/configAccessorsOverride.kt");
|
||||
runTest("plugins/lombok/testData/compile/configAccessorsOverride.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("configCaseInsensitive.kt")
|
||||
public void testConfigCaseInsensitive() throws Exception {
|
||||
runTest("plugins/lombok/lombok-compiler-plugin/testData/compile/configCaseInsensitive.kt");
|
||||
runTest("plugins/lombok/testData/compile/configCaseInsensitive.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("configSimple.kt")
|
||||
public void testConfigSimple() throws Exception {
|
||||
runTest("plugins/lombok/lombok-compiler-plugin/testData/compile/configSimple.kt");
|
||||
runTest("plugins/lombok/testData/compile/configSimple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("data.kt")
|
||||
public void testData() throws Exception {
|
||||
runTest("plugins/lombok/lombok-compiler-plugin/testData/compile/data.kt");
|
||||
runTest("plugins/lombok/testData/compile/data.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("genericsAccessors.kt")
|
||||
public void testGenericsAccessors() throws Exception {
|
||||
runTest("plugins/lombok/lombok-compiler-plugin/testData/compile/genericsAccessors.kt");
|
||||
runTest("plugins/lombok/testData/compile/genericsAccessors.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("genericsConstructors.kt")
|
||||
public void testGenericsConstructors() throws Exception {
|
||||
runTest("plugins/lombok/lombok-compiler-plugin/testData/compile/genericsConstructors.kt");
|
||||
runTest("plugins/lombok/testData/compile/genericsConstructors.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("genericsConstructorsStatic.kt")
|
||||
public void testGenericsConstructorsStatic() throws Exception {
|
||||
runTest("plugins/lombok/lombok-compiler-plugin/testData/compile/genericsConstructorsStatic.kt");
|
||||
runTest("plugins/lombok/testData/compile/genericsConstructorsStatic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("getters.kt")
|
||||
public void testGetters() throws Exception {
|
||||
runTest("plugins/lombok/lombok-compiler-plugin/testData/compile/getters.kt");
|
||||
runTest("plugins/lombok/testData/compile/getters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("gettersClassLevel.kt")
|
||||
public void testGettersClassLevel() throws Exception {
|
||||
runTest("plugins/lombok/lombok-compiler-plugin/testData/compile/gettersClassLevel.kt");
|
||||
runTest("plugins/lombok/testData/compile/gettersClassLevel.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("gettersFluent.kt")
|
||||
public void testGettersFluent() throws Exception {
|
||||
runTest("plugins/lombok/lombok-compiler-plugin/testData/compile/gettersFluent.kt");
|
||||
runTest("plugins/lombok/testData/compile/gettersFluent.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noArgsConstructor.kt")
|
||||
public void testNoArgsConstructor() throws Exception {
|
||||
runTest("plugins/lombok/lombok-compiler-plugin/testData/compile/noArgsConstructor.kt");
|
||||
runTest("plugins/lombok/testData/compile/noArgsConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noArgsConstructorStatic.kt")
|
||||
public void testNoArgsConstructorStatic() throws Exception {
|
||||
runTest("plugins/lombok/lombok-compiler-plugin/testData/compile/noArgsConstructorStatic.kt");
|
||||
runTest("plugins/lombok/testData/compile/noArgsConstructorStatic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullability.kt")
|
||||
public void testNullability() throws Exception {
|
||||
runTest("plugins/lombok/lombok-compiler-plugin/testData/compile/nullability.kt");
|
||||
runTest("plugins/lombok/testData/compile/nullability.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyFromSuper.kt")
|
||||
public void testPropertyFromSuper() throws Exception {
|
||||
runTest("plugins/lombok/lombok-compiler-plugin/testData/compile/propertyFromSuper.kt");
|
||||
runTest("plugins/lombok/testData/compile/propertyFromSuper.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("requiredArgsConstructor.kt")
|
||||
public void testRequiredArgsConstructor() throws Exception {
|
||||
runTest("plugins/lombok/lombok-compiler-plugin/testData/compile/requiredArgsConstructor.kt");
|
||||
runTest("plugins/lombok/testData/compile/requiredArgsConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("requiredArgsConstructorStatic.kt")
|
||||
public void testRequiredArgsConstructorStatic() throws Exception {
|
||||
runTest("plugins/lombok/lombok-compiler-plugin/testData/compile/requiredArgsConstructorStatic.kt");
|
||||
runTest("plugins/lombok/testData/compile/requiredArgsConstructorStatic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("setters.kt")
|
||||
public void testSetters() throws Exception {
|
||||
runTest("plugins/lombok/lombok-compiler-plugin/testData/compile/setters.kt");
|
||||
runTest("plugins/lombok/testData/compile/setters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("settersClassLevel.kt")
|
||||
public void testSettersClassLevel() throws Exception {
|
||||
runTest("plugins/lombok/lombok-compiler-plugin/testData/compile/settersClassLevel.kt");
|
||||
runTest("plugins/lombok/testData/compile/settersClassLevel.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("settersVariations.kt")
|
||||
public void testSettersVariations() throws Exception {
|
||||
runTest("plugins/lombok/lombok-compiler-plugin/testData/compile/settersVariations.kt");
|
||||
runTest("plugins/lombok/testData/compile/settersVariations.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("plugins/lombok/lombok-compiler-plugin/testData/compile/simple.kt");
|
||||
runTest("plugins/lombok/testData/compile/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("value.kt")
|
||||
public void testValue() throws Exception {
|
||||
runTest("plugins/lombok/lombok-compiler-plugin/testData/compile/value.kt");
|
||||
runTest("plugins/lombok/testData/compile/value.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("with.kt")
|
||||
public void testWith() throws Exception {
|
||||
runTest("plugins/lombok/lombok-compiler-plugin/testData/compile/with.kt");
|
||||
runTest("plugins/lombok/testData/compile/with.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("plugins/lombok/lombok-compiler-plugin/testData/compile/processErrors")
|
||||
@TestMetadata("plugins/lombok/testData/compile/processErrors")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ProcessErrors extends AbstractLombokCompileTest {
|
||||
@@ -183,12 +183,12 @@ public class LombokCompileTestGenerated extends AbstractLombokCompileTest {
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInProcessErrors() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("plugins/lombok/lombok-compiler-plugin/testData/compile/processErrors"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("plugins/lombok/testData/compile/processErrors"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("annotationTypes.kt")
|
||||
public void testAnnotationTypes() throws Exception {
|
||||
runTest("plugins/lombok/lombok-compiler-plugin/testData/compile/processErrors/annotationTypes.kt");
|
||||
runTest("plugins/lombok/testData/compile/processErrors/annotationTypes.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -20,7 +20,7 @@ abstract class AbstractLombokCompileTest : CodegenTestCase() {
|
||||
private val commonClassLoader = URLClassLoader(arrayOf(getLombokJar().toURI().toURL()))
|
||||
private val commonSourceFile = TestFile(
|
||||
"common.kt",
|
||||
File("plugins/lombok/lombok-compiler-plugin/testData/common.kt").readText()
|
||||
File("plugins/lombok/testData/common.kt").readText()
|
||||
)
|
||||
|
||||
override fun doMultiFileTest(wholeFile: File, files: List<TestFile>) {
|
||||
@@ -115,7 +115,7 @@ val distCompilerPluginProjects = listOf(
|
||||
":kotlin-noarg-compiler-plugin",
|
||||
":kotlin-sam-with-receiver-compiler-plugin",
|
||||
":kotlinx-serialization-compiler-plugin",
|
||||
":plugins:lombok:lombok-compiler-plugin"
|
||||
":kotlin-lombok-compiler-plugin"
|
||||
)
|
||||
|
||||
val distSourcesProjects = listOfNotNull(
|
||||
|
||||
@@ -2,4 +2,4 @@ plugins {
|
||||
kotlin("jvm")
|
||||
}
|
||||
|
||||
publishJarsForIde(listOf(":plugins:lombok:lombok-compiler-plugin"))
|
||||
publishJarsForIde(listOf(":kotlin-lombok-compiler-plugin.k1", ":kotlin-lombok-compiler-plugin.common"))
|
||||
|
||||
+12
-1
@@ -352,7 +352,10 @@ include ":plugins:parcelize:parcelize-compiler",
|
||||
":plugins:parcelize:parcelize-runtime",
|
||||
":kotlin-parcelize-compiler"
|
||||
|
||||
include ":plugins:lombok:lombok-compiler-plugin",
|
||||
include ":kotlin-lombok-compiler-plugin",
|
||||
":kotlin-lombok-compiler-plugin.common",
|
||||
":kotlin-lombok-compiler-plugin.k1",
|
||||
":kotlin-lombok-compiler-plugin.cli",
|
||||
":kotlin-lombok"
|
||||
|
||||
if (!buildProperties.inJpsBuildIdeaSync) {
|
||||
@@ -687,15 +690,23 @@ project(':plugins:android-extensions-compiler').projectDir = "$rootDir/plugins/a
|
||||
project(':kotlin-android-extensions').projectDir = "$rootDir/prepare/android-extensions-compiler-gradle" as File
|
||||
project(':kotlin-parcelize-compiler').projectDir = "$rootDir/prepare/parcelize-compiler-gradle" as File
|
||||
project(':kotlin-android-extensions-runtime').projectDir = "$rootDir/plugins/android-extensions/android-extensions-runtime" as File
|
||||
|
||||
project(':kotlin-allopen-compiler-plugin').projectDir = "$rootDir/plugins/allopen" as File
|
||||
project(':kotlin-allopen-compiler-plugin.cli').projectDir = "$rootDir/plugins/allopen/allopen.cli" as File
|
||||
project(':kotlin-allopen-compiler-plugin.k1').projectDir = "$rootDir/plugins/allopen/allopen.k1" as File
|
||||
project(':kotlin-allopen-compiler-plugin.k2').projectDir = "$rootDir/plugins/allopen/allopen.k2" as File
|
||||
|
||||
project(':kotlin-lombok-compiler-plugin').projectDir = "$rootDir/plugins/lombok" as File
|
||||
project(':kotlin-lombok-compiler-plugin.cli').projectDir = "$rootDir/plugins/lombok/lombok.cli" as File
|
||||
project(':kotlin-lombok-compiler-plugin.k1').projectDir = "$rootDir/plugins/lombok/lombok.k1" as File
|
||||
project(':kotlin-lombok-compiler-plugin.common').projectDir = "$rootDir/plugins/lombok/lombok.common" as File
|
||||
|
||||
project(':kotlin-noarg-compiler-plugin').projectDir = "$rootDir/plugins/noarg" as File
|
||||
project(':kotlin-noarg-compiler-plugin.k1').projectDir = "$rootDir/plugins/noarg/noarg.k1" as File
|
||||
project(':kotlin-noarg-compiler-plugin.k2').projectDir = "$rootDir/plugins/noarg/noarg.k2" as File
|
||||
project(':kotlin-noarg-compiler-plugin.backend').projectDir = "$rootDir/plugins/noarg/noarg.backend" as File
|
||||
project(':kotlin-noarg-compiler-plugin.cli').projectDir = "$rootDir/plugins/noarg/noarg.cli" as File
|
||||
|
||||
project(':kotlin-sam-with-receiver-compiler-plugin').projectDir = "$rootDir/plugins/sam-with-receiver/sam-with-receiver-cli" as File
|
||||
project(':tools:kotlinp').projectDir = "$rootDir/libraries/tools/kotlinp" as File
|
||||
project(':kotlin-project-model').projectDir = "$rootDir/libraries/tools/kotlin-project-model" as File
|
||||
|
||||
Reference in New Issue
Block a user