Make project work using both NetBeans or Gradle.