Fix type mismatch

Just pulled the master branch and got the error:

`C:\Users\{owner}\IdeaProjects\Terra\buildSrc\src\main\kotlin\DistributionConfig.kt: (49, 39): Type mismatch: inferred type is Path! but URI! was expected`
This commit is contained in:
Browsit
2022-07-20 22:27:22 -04:00
committed by GitHub
parent a175601424
commit 43adf056c3

View File

@@ -44,7 +44,7 @@ fun Project.configureDistribution() {
doLast {
// https://github.com/johnrengelman/shadow/issues/111
val dest = tasks.named<ShadowJar>("shadowJar").get().archiveFile.get().asFile.toPath()
val dest = tasks.named<ShadowJar>("shadowJar").get().archiveFile.get().asFile.toURI()
FileSystems.newFileSystem(dest, mapOf("create" to "false"), null).use { fs ->
forSubProjects(":common:addons") {