Skip to content

Commit

Permalink
fix: look for gradle wrapper at project root
Browse files Browse the repository at this point in the history
  • Loading branch information
kasiaMarek committed May 23, 2024
1 parent d12e21e commit b4e9cf7
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ case class GradleBuildTool(
}
}

private def workspaceGradleLauncher(workspace: AbsolutePath): AbsolutePath = {
workspace.resolve(gradleWrapper)
private def projectGradleLauncher: AbsolutePath = {
projectRoot.resolve(gradleWrapper)
}

override def digest(workspace: AbsolutePath): Option[String] =
Expand All @@ -95,9 +95,9 @@ case class GradleBuildTool(
case Some(script) =>
script :: cmd
case None =>
val workspaceGradle = workspaceGradleLauncher(workspace)
if (workspaceGradle.isFile)
workspaceGradle.toString() :: cmd
val projectGradle = projectGradleLauncher
if (projectGradle.isFile)
projectGradle.toString() :: cmd
else
embeddedGradleLauncher.toString() :: cmd
}
Expand Down

0 comments on commit b4e9cf7

Please sign in to comment.