Commits

Dhananjay Nene committed 43e9faa
  • Participants
  • Parent commits 60d2d4b

Comments (0)

Files changed (1)

File src/main/groovy/in/vayana/gradle_plugins/GradleBndPlugin.groovy

    def Map<String,String> instructions = new HashMap<String,String>() 
    def Set<String> exclusions = new HashSet<String>()
    def Boolean condense = false
+   def Boolean includeTestDependencies = false
 }
 
 class GradleBndPlugin implements Plugin<Project> {
 
                     outputJar = new JarOutputStream(
                                     new FileOutputStream(oldJar.toString()))
-                    ((project.configurations.compile as List) + new File(newJarName)).each { file -> 
+                    depJars = (project.configurations.compile as List) + new File(newJarName) 
+                    if (project.bnd.includeTestDependencies)
+			depJars = depJars + (project.configurations.testCompile 
+as List)
+                    depJars.each { file -> 
                         matcher = (file.name =~ pattern)
                         if (matcher.matches()) jarBaseName = matcher[0][1] else jarBaseName = null
                         if ((jarBaseName != null) && !(jarBaseName in project.bnd.exclusions)) {