Fix fabric output jar

This commit is contained in:
Kenzie Togami 2019-07-14 00:00:11 -07:00
parent 58863c22e8
commit 98e29f634f
No known key found for this signature in database
GPG Key ID: 5D200B325E157A81

View File

@ -99,7 +99,7 @@ tasks.register<RemapJarTask>("remapShadowJar") {
val shadowJar = tasks.getByName<ShadowJar>("shadowJar")
dependsOn(shadowJar)
setInput(shadowJar.archiveFile)
setOutput(shadowJar.archiveFile.get().asFile.getAbsolutePath().replaceFirst("-dev\\.jar$", ".jar"))
setOutput(shadowJar.archiveFile.get().asFile.absolutePath.replace(Regex("-dev\\.jar$"), ".jar"))
}
tasks.named("assemble").configure {