Remove custom Kotlin source replacement code (#22)
This commit is contained in:
parent
23dfb368e1
commit
6f718d74fc
21
build.gradle
21
build.gradle
|
@ -89,25 +89,6 @@ shadowJar {
|
||||||
|
|
||||||
tasks.build.dependsOn 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 {
|
artifacts {
|
||||||
archives shadowJar
|
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"))
|
authentication(userName: project.hasProperty("mavenUser") ? project.mavenUser : System.getenv("mavenUser"), password: project.hasProperty("mavenPassword") ? project.mavenPassword : System.getenv("mavenPassword"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue