Trying to include a local lib, but 'packages do not exist'

Does this gradle syntax (flatdir) look ok for lib? It doesn’t seem to see my jars in my local lib directory, and errors out. I have confirmed the projectDir variable resolves correct in respect to holding the lib dir. Also confirmed the repositories section is executed. My command is ‘gradlew build’. Here is build.gradle: apply plugin: ‘java’ apply from: “${buildToolsRoot}/company.gradle”

group=“com. company.biit” version=“1-${buildNumber}”

sourceCompatibility = JavaVersion.VERSION_1_6 targetCompatibility = JavaVersion.VERSION_1_6

def librepo = “${projectDir}\lib” repositories {

flatDir {

dirs librepo


println(“lib is here: ${projectDir}\lib”) }

Here is one error:

:compileJavaC:\mercurialRepository\automation\CompanyTestAutomation\src\main\java\com\company\automation\tests\api\ package does not exist import;

answering myself:

dependencies { compile fileTree(dir: ‘lib’) }