Skip to content

Commit

Permalink
Newer version gradle is not loading init script from current working …
Browse files Browse the repository at this point in the history
…dir. Feed it absolute path.
  • Loading branch information
shuyangzhou committed Nov 14, 2018
1 parent 7175807 commit 1b88d8c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/com/liferay/netbeansproject/util/GradleUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,10 @@ public static Map<String, Set<Dependency>> getJarDependencies(
gradleTask.add("--daemon");
}

String userDir = System.getProperty("user.dir");

gradleTask.add("--parallel");
gradleTask.add("--init-script=dependency.gradle");
gradleTask.add("--init-script=" + userDir + "/dependency.gradle");
gradleTask.add("-p");
gradleTask.add(String.valueOf(portalDirPath.resolve("modules")));
gradleTask.add(_getTaskName(portalDirPath, workDirPath));
Expand Down

0 comments on commit 1b88d8c

Please sign in to comment.