fix FilterProjectDir vanillaJar input
This commit is contained in:
parent
3f6c7a5feb
commit
c2d4fcb084
2 changed files with 3 additions and 3 deletions
|
@ -43,7 +43,7 @@ import org.gradle.plugins.ide.idea.model.IdeaModel
|
|||
|
||||
fun Project.setupServerProject(
|
||||
parent: Project,
|
||||
remappedJar: Any,
|
||||
remappedJar: Provider<RegularFile>,
|
||||
remappedJarSources: Any,
|
||||
mcDevSourceDir: Path,
|
||||
libsFile: Any,
|
||||
|
@ -64,7 +64,7 @@ fun Project.setupServerProject(
|
|||
val filterProjectDir by tasks.registering<FilterProjectDir> {
|
||||
inputSrcDir.set(file("src/main/java"))
|
||||
inputResourcesDir.set(file("src/main/resources"))
|
||||
vanillaJar.set(parent.file(remappedJar))
|
||||
vanillaJar.set(remappedJar)
|
||||
outputJar.set(parent.layout.cache.resolve(FINAL_FILTERED_REMAPPED_JAR))
|
||||
}
|
||||
|
||||
|
|
|
@ -169,7 +169,7 @@ class PaperweightPatcher : Plugin<Project> {
|
|||
|
||||
val (_, reobfJar) = serverProj.setupServerProject(
|
||||
target,
|
||||
upstreamData.map { it.remappedJar },
|
||||
upstreamData.map { it.remappedJar }.convertToFileProvider(target.layout, target.providers),
|
||||
upstreamData.map { it.decompiledJar },
|
||||
patcher.mcDevSourceDir.path,
|
||||
upstreamData.map { it.libFile },
|
||||
|
|
Loading…
Reference in a new issue