Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TravicCI build fails but local build is just fine #2

Closed
aschrijver opened this issue Aug 20, 2016 · 2 comments
Closed

TravicCI build fails but local build is just fine #2

aschrijver opened this issue Aug 20, 2016 · 2 comments
Assignees
Labels

Comments

@aschrijver
Copy link
Contributor

The TravisCI build first failed with a compilation error complaining about generics, that didn't occur locally. Then after upgrading JDK to latest version the Gradle build itself is no longer building on TravisCI.

According to logs both the JDK and Gradle version that are used are exactly similar to what I use locally on Ubuntu 15.

Java compilation failure log on TravisCI:

:compileJava/home/travis/build/engagingspaces/vertx-dataloader/src/main/java/io/engagingspaces/vertx/dataloader/DataLoader.java:103: error: no suitable method found for complete(Object)
                future.complete(compositeFuture.result().result(0));
                      ^
    method Future.complete(V) is not applicable
      (argument mismatch; Object cannot be converted to V)
    method Future.complete() is not applicable
      (actual and formal argument lists differ in length)

  where V is a type-variable:
    V extends Object declared in class DataLoader

1 error

 FAILED

FAILURE: Build failed with an exception.

Gradle build failure log on TravisCI:

FAILURE: Build failed with an exception.

* Where:
Build file '/home/travis/build/engagingspaces/vertx-dataloader/build.gradle' line: 42

* What went wrong:
A problem occurred evaluating root project 'vertx-dataloader'.
> Could not find property 'compileOnly' on configuration container.
@aschrijver
Copy link
Contributor Author

This issue is further discussed on travis-ci/travis-ci#6507

@aschrijver
Copy link
Contributor Author

I created a Gist at https://gist.github.com/aschrijver/795b62fb5b16190bab0e2c7a3eda4f4f

It contains 4 files:

  • One local build output with --stacktrace [succeeds]
  • One TravisCI build output with --stacktrace [fails]
  • One TravisCI build output with --debug [fails]
  • One TravisCI build output with --info [fails, no news here, just for completeness]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant