[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Gradle and JDK 11 issues



Hi José,

On 03/11/2018 19:05, Jose Gutierrez de la Concha wrote:

> In all the bug reports I seeing the same "error: invalid source release:
> 1.11" seems to come from gradle createCompileTask and unrelated to the
> projects being compiled

For mockito (#910738) this issue has been fixed [1]. It seems to happen
when the build.gradle file doesn't specify the source/target level. Try
adding this:

  sourceCompatibility = 8
  targetCompatibility = 8


Emmanuel Bourg

[1] https://salsa.debian.org/java-team/mockito/commit/4331c15d


Reply to: