Skip to content

Commit

Permalink
Add support for "compile group"
Browse files Browse the repository at this point in the history
  • Loading branch information
shuyangzhou committed Nov 27, 2018
1 parent 1b88d8c commit 93fc008
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 5 additions & 2 deletions dependency.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down
5 changes: 5 additions & 0 deletions src/com/liferay/netbeansproject/util/GradleUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ public static Map<String, Set<Dependency>> getJarDependencies(
for (Path dependencyPath : directoryStream) {
Set<Dependency> jarDependencies = new TreeSet<>();

jarDependencies.addAll(
_getConfigurationDependencies(
dependencyPath, "compile", "compileSources", false,
portalToolsPath, symbolicNameSet));

jarDependencies.addAll(
_getConfigurationDependencies(
dependencyPath, "compileOnly", "compileOnlySources",
Expand Down

0 comments on commit 93fc008

Please sign in to comment.