From: Samyak Jain <samyak.jn11@gmail.com>
Date: Sat, 23 May 2020 02:06:10 +0530
Subject: build-common: Convert kts to groovy

---
 build-common/build.gradle     | 48 +++++++++++++++++++++++++++++++++++++++++++
 build-common/build.gradle.kts | 43 --------------------------------------
 2 files changed, 48 insertions(+), 43 deletions(-)
 create mode 100644 build-common/build.gradle
 delete mode 100644 build-common/build.gradle.kts

diff --git a/build-common/build.gradle b/build-common/build.gradle
new file mode 100644
index 0000000..a5d9d54
--- /dev/null
+++ b/build-common/build.gradle
@@ -0,0 +1,48 @@
+
+plugins {
+    id("org.jetbrains.kotlin.jvm")
+    id("jps-compatible")
+}
+
+description = "Kotlin Build Common"
+
+dependencies {
+    compileOnly(project(":core:util.runtime"))
+    compileOnly(project(":compiler:util"))
+    compileOnly(project(":compiler:cli-common"))
+    compileOnly(project(":compiler:frontend.java"))
+    compileOnly(project(":js:js.serializer"))
+    compileOnly(project(":js:js.frontend"))
+    compileOnly(IntellijDependenciesKt.customIntellijCoreDep(project)) { IntellijDependenciesKt.customIncludeJars(it,["intellij-core"],null) }
+    compileOnly(IntellijDependenciesKt.getIntellijDep(project,"intellij")) { IntellijDependenciesKt.customIncludeJars(it,["asm-all", "trove4j", "util"], rootProject) }
+    compileOnly(project(":kotlin-reflect-api"))
+
+    testCompileOnly(project(":compiler:cli-common"))
+    //testCompile(DependenciesKt.customProjectTests(it,":compiler:tests-common"))
+    testCompile(DependenciesKt.customCommonDep(project,"junit:junit"))
+    testCompile(DependenciesKt.customProtobufFull(project))
+    testCompile(DependenciesKt.customKotlinStdlib(project,null))
+    testCompileOnly(IntellijDependenciesKt.getIntellijDep(project,"intellij")) { IntellijDependenciesKt.customIncludeJars(it,["openapi"],null) }
+
+    testRuntime(project(":kotlin-reflect"))
+}
+
+sourceSets {
+    "main" {
+    	java.srcDirs("src")
+		resources.srcDir("resources")
+	}
+    "test" {
+        java.srcDirs("test", "tests")
+    }
+}
+
+//publish()
+
+ArtifactsKt.customRuntimeJar(project){}
+//sourcesJar()
+//javadocJar()
+
+ArtifactsKt.customTestsJar(project){}
+
+TasksKt.customProjectTest(project,"test"){}
diff --git a/build-common/build.gradle.kts b/build-common/build.gradle.kts
deleted file mode 100644
index 2e1166a..0000000
--- a/build-common/build.gradle.kts
+++ /dev/null
@@ -1,43 +0,0 @@
-
-description = "Kotlin Build Common"
-
-plugins {
-    kotlin("jvm")
-    id("jps-compatible")
-}
-
-dependencies {
-    compileOnly(project(":core:util.runtime"))
-    compileOnly(project(":compiler:util"))
-    compileOnly(project(":compiler:cli-common"))
-    compileOnly(project(":compiler:frontend.java"))
-    compileOnly(project(":js:js.serializer"))
-    compileOnly(project(":js:js.frontend"))
-    compileOnly(intellijCoreDep()) { includeJars("intellij-core") }
-    compileOnly(intellijDep()) { includeJars("asm-all", "trove4j", "util", rootProject = rootProject) }
-    compileOnly(project(":kotlin-reflect-api"))
-
-    testCompileOnly(project(":compiler:cli-common"))
-    testCompile(projectTests(":compiler:tests-common"))
-    testCompile(commonDep("junit:junit"))
-    testCompile(protobufFull())
-    testCompile(kotlinStdlib())
-    testCompileOnly(intellijDep()) { includeJars("openapi") }
-
-    testRuntime(project(":kotlin-reflect"))
-}
-
-sourceSets {
-    "main" { projectDefault() }
-    "test" { projectDefault() }
-}
-
-publish()
-
-runtimeJar()
-sourcesJar()
-javadocJar()
-
-testsJar()
-
-projectTest()
