From: Samyak Jain <samyak.jn11@gmail.com>
Date: Wed, 20 May 2020 15:25:52 +0530
Subject: plugins//allopen-ide: Convert kts to groovy
Forwarded: not-needed
Last-Update: 2021-04-22

---
 plugins/allopen/allopen-ide/build.gradle     | 35 ++++++++++++++++++++++++++++
 plugins/allopen/allopen-ide/build.gradle.kts | 31 ------------------------
 2 files changed, 35 insertions(+), 31 deletions(-)
 create mode 100644 plugins/allopen/allopen-ide/build.gradle
 delete mode 100644 plugins/allopen/allopen-ide/build.gradle.kts

diff --git a/plugins/allopen/allopen-ide/build.gradle b/plugins/allopen/allopen-ide/build.gradle
new file mode 100644
index 0000000..c8bd97c
--- /dev/null
+++ b/plugins/allopen/allopen-ide/build.gradle
@@ -0,0 +1,35 @@
+
+plugins {
+    id("org.jetbrains.kotlin.jvm")
+    id("jps-compatible")
+}
+project.description = "Kotlin AllOpen IDEA Plugin"
+
+dependencies {
+    compile(project(":kotlin-allopen-compiler-plugin"))
+    compile(project(":compiler:util"))
+    compile(project(":compiler:frontend"))
+    compile(project(":compiler:cli-common"))
+    compile(project(":idea"))
+    compile(project(":idea:idea-jvm"))
+    compile(project(":idea:idea-jps-common"))
+    compile(project(":plugins:annotation-based-compiler-plugins-ide-support"))
+    compileOnly(IntellijDependenciesKt.getIntellijDep(project,"intellij"))
+    if (!rootProject.ext.has("versions.androidStudioRelease")) {
+        compileOnly(IntellijDependenciesKt.getIntellijDep(project,"maven"))
+    }
+    compileOnly(IntellijDependenciesKt.getIntellijDep(project,"gradle"))
+}
+
+sourceSets {
+    "main" {
+		java.srcDirs("src")
+		resources.srcDir("resources")
+    }
+    "test" {}
+}
+
+ArtifactsKt.customRuntimeJar(project,"default")
+
+ArtifactsKt.customIdeaPlugin(project)
+
diff --git a/plugins/allopen/allopen-ide/build.gradle.kts b/plugins/allopen/allopen-ide/build.gradle.kts
deleted file mode 100644
index e404993..0000000
--- a/plugins/allopen/allopen-ide/build.gradle.kts
+++ /dev/null
@@ -1,31 +0,0 @@
-
-description = "Kotlin AllOpen IDEA Plugin"
-
-plugins {
-    kotlin("jvm")
-    id("jps-compatible")
-}
-
-dependencies {
-    compile(project(":kotlin-allopen-compiler-plugin"))
-    compile(project(":compiler:util"))
-    compile(project(":compiler:frontend"))
-    compile(project(":compiler:cli-common"))
-    compile(project(":idea"))
-    compile(project(":idea:idea-jvm"))
-    compile(project(":idea:idea-jps-common"))
-    compile(project(":plugins:annotation-based-compiler-plugins-ide-support"))
-    compileOnly(intellijDep())
-    excludeInAndroidStudio(rootProject) { compileOnly(intellijPluginDep("maven")) }
-    compileOnly(intellijPluginDep("gradle"))
-}
-
-sourceSets {
-    "main" { projectDefault() }
-    "test" {}
-}
-
-runtimeJar()
-
-ideaPlugin()
-
