evant / gradle-retrolambda

A gradle plugin for getting java lambda support in java 6, 7 and android
Apache License 2.0
5.3k stars 449 forks source link

Why oldJdk? #240

Closed bsideup closed 7 years ago

bsideup commented 7 years ago

Hi!

Why Gradle plugin requires oldJdk to be set?

Maven plugin works fine with only JDK 8 installed, is it something new in Retrolambda now yet supported in Gradle plugin?

Having two JDKs adds huge complexity to the project setup process :(

P.S. our project is not for Android, just a normal Java project with JDK 6 as a baseline

evant commented 7 years ago

See https://github.com/evant/gradle-retrolambda/issues/154

bsideup commented 7 years ago

@evant I'm not sure I see the answer there :) Wrong link or I miss something?

evant commented 7 years ago

It's discussion about removing oldJdk and running test with java 8 always. Note: you can always work around the issue by setting

retrolambda {
  oldJdk = "/path/to/jdk8"
}
bsideup commented 7 years ago

@evant I'll try, thanks!

evant commented 7 years ago

Just released 2.6.0 that no longer requires oldJdk to be defined.