From f02a99882c9e2422b3a47c6302df3132c57472e8 Mon Sep 17 00:00:00 2001 From: Robinson Date: Mon, 20 Sep 2021 00:56:13 +0200 Subject: [PATCH] Removed test code --- build.gradle.kts | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index eba9c22..64bdcc6 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import dorkbox.gradle.kotlin import java.time.Instant gradle.startParameter.showStacktrace = ShowStacktrace.ALWAYS // always show the stacktrace! @@ -73,53 +72,6 @@ sourceSets { } } } -// -//fun hasKotlin(project: Project, debug: Boolean = false): Boolean { -// try { -// // check if plugin is available -// project.plugins.findPlugin("org.jetbrains.kotlin.jvm") ?: return false -// -// if (debug) println("\tHas kotlin plugin") -// -// // this will check if the task exists, and throw an exception if it does not or return false -// project.tasks.named("compileKotlin", org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class.java).orNull ?: return false -// -// if (debug) println("\tHas compile kotlin task") -// -// // check to see if we have any kotlin file -// val sourceSets = project.extensions.getByName("sourceSets") as SourceSetContainer -// val main = sourceSets.getByName("main") -// -// project.extensions.getByType(org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension::class.java).sourceSets.getByName("main").kotlin.apply { -// println("DIRS: ${this.srcDirs}") -// } -// -// if (debug) { -// println("ASDASDSD") -// println("\tmain dirs: ${main.java.srcDirs}") -// println("\tkotlin dirs: ${main.kotlin.srcDirs}") -// -// project.buildFile.parentFile.walkTopDown().filter { it.extension == "kt" }.forEach { -// println("\t\t$it") -// } -// } -// -// val files = main.java.srcDirs + main.kotlin.srcDirs -// files.forEach { srcDir -> -// val kotlinFile = srcDir.walkTopDown().find { it.extension == "kt" } -// if (kotlinFile?.exists() == true) { -// if (debug) println("\t Has kotlin file: $kotlinFile") -// return true -// } -// } -// } catch (e: Exception) { -// if (debug) e.printStackTrace() -// } -// -// return false -//} -// -//println("HASKOT = ${hasKotlin(project, true)}") repositories { mavenLocal()