# Build failed bc compile fileTree(dir: 'libs', include: \['\*.jar'\])

**URL:** <https://travis-ci.community/t/build-failed-bc-compile-filetree-dir-libs-include-jar/2807>\
**Category:** Java\
**Created:** [March 27, 2019, 5:06am UTC](https://travis-ci.community/t/build-failed-bc-compile-filetree-dir-libs-include-jar/2807 "2019-03-27T05:06:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![11510746](https://avatars.discourse-cdn.com/v4/letter/1/7cd45c/32.png) [@11510746](https://travis-ci.community/u/11510746)\
**Post date:** [March 27, 2019, 5:06am UTC](https://travis-ci.community/t/build-failed-bc-compile-filetree-dir-libs-include-jar/2807/1 "2019-03-27T05:06:27Z")

</div>

travis-ci build failed since it didn’t load the local jar. How to resolve it ?

#### My travis file

```auto
language: java
jdk: oraclejdk8

```

#### My gradle file

```auto
apply plugin: 'java'
sourceCompatibility = 1.8

repositories {
    mavenCentral()
}

dependencies{

    compile "fr.inria.gforge.spoon:spoon-core:7.3.0"
    compile group: 'commons-io', name: 'commons-io', version: '2.5'
    compile group: 'com.google.guava', name: 'guava', version: '19.0'
    compile "fr.inria.gforge.spoon.labs:gumtree-spoon-ast-diff:1.8"
    compile group: 'org.apache.commons', name: 'commons-math3', version: '3.6.1'
    compile group: 'junit', name: 'junit', version: '4.12'

    // Include the jar by "mvn package" on https://github.com/hammadirshad/InMemoryJavaCompiler
    // This is a substitute for the following:
    // compile "org.mdkt.compiler:InMemoryJavaCompiler:1.3.0"
    // ... because InMemoryJavaCompiler has yet to incorporate the critical bugfix
    compile fileTree(dir: 'libs', include: ['*.jar'])
}

```

#### travis-ci build result

 ![1](https://us1.discourse-cdn.com/flex015/uploads/travis_ci/original/2X/c/c770e86fd584619ab0d82dde8d70a24c5033cbb8.png)
