Fork us on GitHub

Java 8 & API 23 defaults

Updating default build targets so we can move forward fluidly
Post Image

Java 8 & API 23 defaults

One of the biggest changes we made in the past couple of years was the introduction of Java 8 language support features and making it the default target. We are now ready for the next step: removing compatibility for Java 5 targeted builds.

Notice that this won’t break existing projects…​ They will compile with the retrolambda pipeline even if you set the build hint java.version=5.

We are doing this so we can integrate Java 8 features into the core of the Codename One itself and make the implementation more efficient/easy.

This change will go in this Friday, if you have old projects that you haven’t compiled in a while we would suggest testing them.

Android API 23 Default

We mentioned Android permissions a while back. We are now switching to API level 23 by default as this makes more sense moving forward.

Unlike the language change you could still revert this change manually by defining android.targetSDKVersion=21. Notice that this is a short term solution as our goal is to keep up with the current Android release cycle.

Share this Post:

Posted by Shai Almog

Shai is the co-founder of Codename One. He's been a professional programmer for over 25 years. During that time he has worked with dozens of companies including Sun Microsystems.
For more follow Shai on Twitter & github.