Remove custom Kotlin source replacement code (#22)

This commit is contained in:
Marvin Rösch 2017-08-12 23:13:58 +02:00 committed by Shadowfacts
parent 23dfb368e1
commit 6f718d74fc
1 changed files with 1 additions and 20 deletions

View File

@ -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
}