• Home
  • Events
  • About
  • Using lambdas with JavaFX 8 and gradle

    September 22nd, 2013

    UPDATE: the workaround described in the following sections does only apply to gradle 1.9 and below. From version 1.10 of gradle everything works as expected again.

    Lambda expressions coming with Java 8 are really great. Having played around with them I decided to migrate my current JavaFX projects and apply lambda expressions where it makes sense. In my IDE (IntelliJ IDEA) all worked fine but when I ran my gradle (1.7) build a weird message appeared:

    It turns out that the way gradle is scanning for class files to find out which ones are test classes causes the problem. Most likely due to different bytecodes produced by the Java 8 compiler.
    Fortunately the scanning process can be turned off as described in gradle’s documentation. Then you just have to configure your test classes manually as in the following example and everything works again.

    – Sven Ehrke, @syendar

    Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
    • email
    • Print
    • Twitter
    • LinkedIn
    • XING
    • Facebook
    • Google Bookmarks

    JavaOne 2013 | September 22-26, 2013 | San Francisco

    September 18th, 2013
    JavaOne JavaOne 2013 will be beginning in 4 days’ time in San Francisco. And conference attendees can scarcely miss Canoo. Our speakers – two JavaOne Rockstars and a Java Champion – will be giving a total of 13 talks on the topics of JavaFX, Groovy and RIA technologies.

    Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
    • email
    • Print
    • Twitter
    • LinkedIn
    • XING
    • Facebook
    • Google Bookmarks

    css.php