Skip to content

Commit

Permalink
Cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
oehme committed Dec 15, 2015
1 parent 8c86034 commit c707689
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class IdeaPluginPlugin implements Plugin<Project> {
assembleSandbox => [
libraries.from(jar)
libraries.from(runtimeDependencies.filter [ candidate |
!providedDependencies.exists[hasSameArtifactId(candidate, it)]
!providedDependencies.exists[hasSameArtifactIdAs(candidate)]
])
metaInf.from("META-INF")
]
Expand All @@ -43,9 +43,9 @@ class IdeaPluginPlugin implements Plugin<Project> {
file1.artifactId == file2.artifactId
}

private def getArtifactId(File file) {
private def getArtifactIdAs(File file) {
val matcher = ARTIFACT_ID.matcher(file.name)
if (matcher.matches) matcher.group(1) else null
}

}
}

0 comments on commit c707689

Please sign in to comment.