{"id":1000,"date":"2013-11-19T11:07:18","date_gmt":"2013-11-19T10:07:18","guid":{"rendered":"https:\/\/mihosoft.eu\/?p=1000"},"modified":"2013-11-24T22:01:36","modified_gmt":"2013-11-24T21:01:36","slug":"gradle-project-for-automatic-openjdkopenjfx-builds","status":"publish","type":"post","link":"https:\/\/mihosoft.eu\/?p=1000","title":{"rendered":"Gradle project for automatic OpenJDK\/OpenJFX builds"},"content":{"rendered":"<p>I&#8217;m currently working on a Gradle project that downloads OpenJDK &amp; OpenJFX sources and builds both afterwards with little to no configuration necessary. Currently it works for OS X. Other operating systems coming soon!<\/p>\n\n<p><strong>Feel free to <a href=\"https:\/\/github.com\/miho\/OpenJDK-Builder\">contribute!<\/a><\/strong><\/p>\n\n<h3>Requirements<\/h3>\n\n<ul>\n<li>Mac OS = 10.8.x (unknown whether it will work for 10.9)<\/li>\n<li>XCode == 4.6.x<\/li>\n<li>X11\/XQuartz (provides freetype for JDK) <\/li>\n<li>Mercurial (version?)<\/li>\n<li>JDK >= 1.7.0_25 and &lt; 1.8.x<\/li>\n<\/ul>\n\n<h3>Download The Project<\/h3>\n\n<p>The project can be found on GitHub: <a href=\"https:\/\/github.com\/miho\/OpenJDK-Builder\">https:\/\/github.com\/miho\/OpenJDK-Builder<\/a><\/p>\n\n<h3>I Cant Wait!<\/h3>\n\n<p>If you want to try right away here&#8217;s what you have to do:<\/p>\n\n<pre><code>#&gt; cd PathToOpenJDK-Builder\/jdk8\n#&gt; .\/gradlew assemble\n<\/code><\/pre>\n\n<p>If something goes wrong please keep on reading.<\/p>\n\n<h3>Usage<\/h3>\n\n<p>First we explore the file structure:<\/p>\n\n<pre><code>#&gt; cd PathToOpenJDK-Builder\/jdk8\n#&gt; ls\nbinary_stub     gradle    gradlew.bat    jfx8-src\nbuild.gradle    gradlew   jdk8-src\n<\/code><\/pre>\n\n<p>The <code>build.gradle<\/code> file contains several important variables:<\/p>\n\n<ul>\n<li><code>BOOTSTRAP_JDK<\/code>: location of the boostrap JDK. Defaults is <code>JDK 7.0_45<\/code><\/li>\n<li><code>DEVKIT<\/code>:        Xcode location (must be Xcode 4.6.x).<\/li>\n<li><code>MAC_OSX_SDK<\/code>:   OS X SDK for building OpenJFX. Default is 10.7<\/li>\n<li><code>BRANCH<\/code>:        OpenJFX mercurial branch. Default is <code>graphics<\/code><\/li>\n<\/ul>\n\n<p>Before proceeding please copy a <code>jfxrt.jar<\/code> from JavaFX 8 preview release to the <code>binary_stub<\/code> folder.<\/p>\n\n<p>Now it is time for building OpenJDK and OpenJFX:<\/p>\n\n<pre><code>#&gt; .\/gradlew assemble\n<\/code><\/pre>\n\n<p>That&#8217;s it!<\/p>\n\n<p>Other operating systems coming soon!<\/p>\n\n<p>Stay tuned and <a href=\"https:\/\/twitter.com\/intent\/user?screen_name=mihosoft\">follow me on Twitter<\/a><\/p>\n\n<p><strong>To be continued&#8230;<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m currently working on a Gradle project that downloads OpenJDK &amp; OpenJFX sources and builds both afterwards with little to no configuration necessary. Currently it works for OS X. Other operating systems coming soon! Feel free to contribute! Requirements Mac OS = 10.8.x (unknown whether it will work for 10.9) &#8230;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[129,21],"tags":[131,98,65,101,124,54,102,99,100],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2P2yR-g8","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/mihosoft.eu\/index.php?rest_route=\/wp\/v2\/posts\/1000"}],"collection":[{"href":"https:\/\/mihosoft.eu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mihosoft.eu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mihosoft.eu\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mihosoft.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1000"}],"version-history":[{"count":7,"href":"https:\/\/mihosoft.eu\/index.php?rest_route=\/wp\/v2\/posts\/1000\/revisions"}],"predecessor-version":[{"id":1010,"href":"https:\/\/mihosoft.eu\/index.php?rest_route=\/wp\/v2\/posts\/1000\/revisions\/1010"}],"wp:attachment":[{"href":"https:\/\/mihosoft.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1000"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mihosoft.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1000"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mihosoft.eu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1000"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}