From 7e5024fb887f1a732a0e01a3e9f41c6b84f1b00a Mon Sep 17 00:00:00 2001 From: Dmitriy Novozhilov Date: Wed, 29 Apr 2020 11:49:26 +0300 Subject: [PATCH] [FIR-PLUGIN] Add lib with annotations for allopen plugin --- .../allopen-annotations/build.gradle.kts | 13 +++++++++++++ .../src/org/jetbrains/kotlin/fir/allopen/AllOpen.kt | 8 ++++++++ .../org/jetbrains/kotlin/fir/allopen/WithClass.kt | 8 ++++++++ .../fir/plugins/allopen-plugin/build.gradle.kts | 1 + settings.gradle | 1 + 5 files changed, 31 insertions(+) create mode 100644 compiler/fir/plugins/allopen-plugin/allopen-annotations/build.gradle.kts create mode 100644 compiler/fir/plugins/allopen-plugin/allopen-annotations/src/org/jetbrains/kotlin/fir/allopen/AllOpen.kt create mode 100644 compiler/fir/plugins/allopen-plugin/allopen-annotations/src/org/jetbrains/kotlin/fir/allopen/WithClass.kt diff --git a/compiler/fir/plugins/allopen-plugin/allopen-annotations/build.gradle.kts b/compiler/fir/plugins/allopen-plugin/allopen-annotations/build.gradle.kts new file mode 100644 index 00000000000..87f380866b3 --- /dev/null +++ b/compiler/fir/plugins/allopen-plugin/allopen-annotations/build.gradle.kts @@ -0,0 +1,13 @@ +plugins { + kotlin("jvm") + id("jps-compatible") +} + + +sourceSets { + "main" { projectDefault() } + "test" { none() } +} + +publish() +runtimeJar() diff --git a/compiler/fir/plugins/allopen-plugin/allopen-annotations/src/org/jetbrains/kotlin/fir/allopen/AllOpen.kt b/compiler/fir/plugins/allopen-plugin/allopen-annotations/src/org/jetbrains/kotlin/fir/allopen/AllOpen.kt new file mode 100644 index 00000000000..134a55aa3f6 --- /dev/null +++ b/compiler/fir/plugins/allopen-plugin/allopen-annotations/src/org/jetbrains/kotlin/fir/allopen/AllOpen.kt @@ -0,0 +1,8 @@ +/* + * Copyright 2010-2020 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.fir.allopen + +annotation class AllOpen \ No newline at end of file diff --git a/compiler/fir/plugins/allopen-plugin/allopen-annotations/src/org/jetbrains/kotlin/fir/allopen/WithClass.kt b/compiler/fir/plugins/allopen-plugin/allopen-annotations/src/org/jetbrains/kotlin/fir/allopen/WithClass.kt new file mode 100644 index 00000000000..413390419ef --- /dev/null +++ b/compiler/fir/plugins/allopen-plugin/allopen-annotations/src/org/jetbrains/kotlin/fir/allopen/WithClass.kt @@ -0,0 +1,8 @@ +/* + * Copyright 2010-2020 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.fir.allopen + +annotation class WithClass \ No newline at end of file diff --git a/compiler/fir/plugins/allopen-plugin/build.gradle.kts b/compiler/fir/plugins/allopen-plugin/build.gradle.kts index 6a1c36f8e68..b97559232a2 100644 --- a/compiler/fir/plugins/allopen-plugin/build.gradle.kts +++ b/compiler/fir/plugins/allopen-plugin/build.gradle.kts @@ -41,6 +41,7 @@ projectTest(parallel = true) { workingDir = rootDir jvmArgs!!.removeIf { it.contains("-Xmx") } maxHeapSize = "3g" + dependsOn(":compiler:fir:plugins:allopen-plugin:allopen-annotations:jar") } testsJar() diff --git a/settings.gradle b/settings.gradle index d974343356e..8739763d01a 100644 --- a/settings.gradle +++ b/settings.gradle @@ -97,6 +97,7 @@ include ":kotlin-build-common", ":compiler:fir:checkers", ":compiler:fir:analysis-tests", ":compiler:fir:plugins:allopen-plugin", + ":compiler:fir:plugins:allopen-plugin:allopen-annotations", ":compiler:frontend", ":compiler:frontend.common", ":compiler:frontend.java",