From 6f718d74fc6af8a83633762c2b6c3ba91c384d94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marvin=20R=C3=B6sch?= Date: Sat, 12 Aug 2017 23:13:58 +0200 Subject: [PATCH] Remove custom Kotlin source replacement code (#22) --- build.gradle | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/build.gradle b/build.gradle index 0a93b49..3075d1c 100644 --- a/build.gradle +++ b/build.gradle @@ -89,25 +89,6 @@ shadowJar { tasks.build.dependsOn shadowJar -import net.minecraftforge.gradle.user.TaskSourceCopy - -// Enables source replacements for Kotlin code -for (set in sourceSets) { - def taskName = "source${set.name.capitalize()}Kotlin" - def dir = new File(project.getBuildDir(), "sources/${set.name}/kotlin") - task(taskName, type: TaskSourceCopy) { - source = set.getKotlin() - output = dir - } - def compileTask = tasks[set.getCompileTaskName("kotlin")] - compileTask.source = dir - compileTask.dependsOn taskName - def dirPath = dir.toPath() - compileKotlin.include { - return it.file.toPath().startsWith(dirPath) - } -} - artifacts { archives shadowJar } @@ -126,4 +107,4 @@ uploadArchives { authentication(userName: project.hasProperty("mavenUser") ? project.mavenUser : System.getenv("mavenUser"), password: project.hasProperty("mavenPassword") ? project.mavenPassword : System.getenv("mavenPassword")) } } -} \ No newline at end of file +}