Skip to content

Commit

Permalink
Fix warning in build script (#9717)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurit authored Oct 19, 2023
1 parent e9026cd commit 3e84ede
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ fun newRepositorySystem(): RepositorySystem {
}

fun newRepositorySystemSession(system: RepositorySystem): RepositorySystemSession {
val muzzleRepo = file("${buildDir}/muzzleRepo")
val localRepo = LocalRepository(muzzleRepo)
val muzzleRepo = layout.buildDirectory.dir("muzzleRepo")
val localRepo = LocalRepository(muzzleRepo.get().asFile)
return MavenRepositorySystemUtils.newSession().apply {
localRepositoryManager = system.newLocalRepositoryManager(this, localRepo)
}
Expand Down

0 comments on commit 3e84ede

Please sign in to comment.