title: Gradle compileJava Task keeps failing
body: <p>alright i've been hiting my head against the wall for quite sometime now, and now i dont even know what to search for to find a solution, here are my files</p>
  
  <p>build.gradle</p>
  
  <pre><code>    //Applying the Gradle BND Plugin for Workspace Builds
      //https://github.com/bndtools/bnd/blob/master/biz.aQute.bnd.gradle/README.md
  buildscript {
      repositories {
          mavenCentral()
      }
      dependencies {
          classpath "biz.aQute.bnd:biz.aQute.bnd.gradle:${bnd_version}"
      }
  }
  
  apply plugin: 'biz.aQute.bnd.workspace'
  apply plugin: 'java'
  
      // Repositorios, aguante Maven Central.
  repositories {
      mavenCentral()
  
      /* Excluded, uso la dependecia de otro lado ahora.
      flatDir {
          dirs '/home/feddericokz/devTools/Equinox/Equinox-Oxygen-1a/plugins'
      }
      */
  }
  
      // Dependencias
  dependencies {
      // https://mvnrepository.com/artifact/org.osgi/org.osgi.core
      compile group: 'org.osgi', name: 'org.osgi.core', version: '6.0.0'
  }
  </code></pre>
  
  <p>settings.gradle</p>
  
  <pre><code>/*
   * This settings file was generated by the Gradle 'init' task.
   *
   * The settings file is used to specify which projects to include in your build.
   * In a single project build this file can be empty or even removed.
   *
   * Detailed information about configuring a multi-project build in Gradle can be found
   * in the user guide at https://docs.gradle.org/4.3.1/userguide/multi_project_builds.html
   */
  
  /*
  // To declare projects as part of a multi-project build use the 'include' method
  include 'shared'
  include 'api'
  include 'services:webservice'
  */
  
  rootProject.name = 'bndWorkspace'
  
  include 'com.feddericokz.helloworld'
  </code></pre>
  
  <p>when trying to run gradle jar from the command line, i get an error as it the compiler cant find the osgi dependencies to compile the classes </p>
  
  <pre><code>Task :com.feddericokz.helloworld:compileJava FAILED
  /home/feddericokz/testingDir/bndWorkspace/com.feddericokz.helloworld/src/com/feddericokz/helloworld/HelloWorldActivator.java:3: error: package org.osgi.framework does not exist
  import org.osgi.framework.BundleActivator;
                           ^
  /home/feddericokz/testingDir/bndWorkspace/com.feddericokz.helloworld/src/com/feddericokz/helloworld/HelloWorldActivator.java:4: error: package org.osgi.framework does not exist
  import org.osgi.framework.BundleContext;
                           ^
  /home/feddericokz/testingDir/bndWorkspace/com.feddericokz.helloworld/src/com/feddericokz/helloworld/HelloWorldActivator.java:6: error: cannot find symbol
  public class HelloWorldActivator implements BundleActivator {
                                              ^
    symbol: class BundleActivator
  /home/feddericokz/testingDir/bndWorkspace/com.feddericokz.helloworld/src/com/feddericokz/helloworld/HelloWorldActivator.java:8: error: cannot find symbol
      public void start(BundleContext bundleContext) throws Exception {
                        ^
    symbol:   class BundleContext
    location: class HelloWorldActivator
  /home/feddericokz/testingDir/bndWorkspace/com.feddericokz.helloworld/src/com/feddericokz/helloworld/HelloWorldActivator.java:13: error: cannot find symbol
      public void stop(BundleContext bundleContext) throws Exception {
                       ^
    symbol:   class BundleContext
    location: class HelloWorldActivator
  /home/feddericokz/testingDir/bndWorkspace/com.feddericokz.helloworld/src/com/feddericokz/helloworld/HelloWorldActivator.java:7: error: method does not override or implement a method from a supertype
      @Override
      ^
  /home/feddericokz/testingDir/bndWorkspace/com.feddericokz.helloworld/src/com/feddericokz/helloworld/HelloWorldActivator.java:12: error: method does not override or implement a method from a supertype
      @Override
      ^
  7 errors
  
  
  FAILURE: Build failed with an exception.
  
  * What went wrong:
  Execution failed for task ':com.feddericokz.helloworld:compileJava'.
  &gt; Compilation failed; see the compiler error output for details.
  
  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
  
  * Get more help at https://help.gradle.org
  
  BUILD FAILED in 0s
  2 actionable tasks: 1 executed, 1 up-to-date
  </code></pre>
  
  <p>What am i doing wrong?</p>
  
  <p>EDIT: a typo</p>