diff --git a/dependency.gradle b/dependency.gradle index ceb5e5fd..c90275d6 100644 --- a/dependency.gradle +++ b/dependency.gradle @@ -20,11 +20,14 @@ allprojects { task printDependencies << { StringBuilder sb = new StringBuilder(); - ["compileOnly", "compileInclude", "testIntegrationRuntime"].each { + ["compile", "compileOnly", "compileInclude", "testIntegrationRuntime"].each { Configuration configuration = configurations.findByName it if (configuration) { - if (configuration.name == "compileOnly") { + if (configuration.name == "compile") { + sb.append("compile=") + } + else if (configuration.name == "compileOnly") { sb.append("compileOnly=") } else if (configuration.name == "compileInclude") { diff --git a/src/com/liferay/netbeansproject/util/GradleUtil.java b/src/com/liferay/netbeansproject/util/GradleUtil.java index b04674c1..202fe9ee 100644 --- a/src/com/liferay/netbeansproject/util/GradleUtil.java +++ b/src/com/liferay/netbeansproject/util/GradleUtil.java @@ -141,6 +141,11 @@ public static Map> getJarDependencies( for (Path dependencyPath : directoryStream) { Set jarDependencies = new TreeSet<>(); + jarDependencies.addAll( + _getConfigurationDependencies( + dependencyPath, "compile", "compileSources", false, + portalToolsPath, symbolicNameSet)); + jarDependencies.addAll( _getConfigurationDependencies( dependencyPath, "compileOnly", "compileOnlySources",