{"id":230223,"date":"2023-11-14T22:34:40","date_gmt":"2023-11-15T06:34:40","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/java\/?p=230223"},"modified":"2023-11-14T22:34:40","modified_gmt":"2023-11-15T06:34:40","slug":"announcing-the-build-server-for-gradle-open-source-repository","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/java\/announcing-the-build-server-for-gradle-open-source-repository\/","title":{"rendered":"Announcing the Build Server for Gradle Open-Source Repository"},"content":{"rendered":"<h3><span style=\"font-size: 18pt;\"><strong>Build Server for Gradle<\/strong><\/span><\/h3>\n<p>In September, we shared that Microsoft and Gradle <a href=\"https:\/\/devblogs.microsoft.com\/java\/new-build-server-for-gradle\/\">have joined forces<\/a> to explore a novel approach to Gradle project import and building, based on the\u00a0<a href=\"https:\/\/build-server-protocol.github.io\/\" target=\"_blank\" rel=\"noopener\">Build Server Protocol (BSP)<\/a>. The objective is address the existing Gradle issues on Visual Studio Code and improve support for Gradle projects.<\/p>\n<p><strong>The Build Server for Gradle<\/strong>, developed in collaboration with Gradle, will delegate build tasks to the Gradle build tool, which will be responsible for compiling and generating code directly. This ensures that the results of building in Visual Studio Code will be consistent with the output obtained by running Gradle build commands. The preview version for this was released in September version and stable version was released in October on Visual Studio Code. We have received many positive comments after the release.<\/p>\n<h3><span style=\"font-size: 18pt;\"><strong>Open-sourcing the Build Server for Gradle Project<\/strong><\/span><\/h3>\n<p>After two months of testing and collecting feedback, we have observed that Build Server has performed as expected. Based on data we have collected, the import success rate for non-Android Gradle projects has increased by 19%. Additionally, we have received a lot of useful feedback from the community for this kind of approach. Therefore, we are excited to announce our decision to officially open-source <a href=\"https:\/\/github.com\/microsoft\/build-server-for-gradle\">Build Server for Gradle<\/a> project today! You can use <a href=\"https:\/\/github.com\/microsoft\/build-server-for-gradle\">this link<\/a> to visit the repo.<\/p>\n<h3><span style=\"font-size: 18pt;\"><strong>How to use Build Server for Gradle<\/strong><\/span><\/h3>\n<p>Using Build Server for Gradle is straightforward. You can follow these simple steps.<\/p>\n<h4><strong><span style=\"font-size: 12pt;\">Step 1 &#8211; Install the &#8220;Extension Pack for Java&#8221; extension.<\/span><\/strong><\/h4>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2023\/09\/javaext.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-230153\" src=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2023\/09\/javaext.png\" alt=\"Image javaext\" width=\"906\" height=\"176\" srcset=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2023\/09\/javaext.png 906w, https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2023\/09\/javaext-300x58.png 300w, https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2023\/09\/javaext-768x149.png 768w\" sizes=\"(max-width: 906px) 100vw, 906px\" \/><\/a><\/p>\n<h4><strong><span style=\"font-size: 12pt;\">Step 2 &#8211; Install the &#8220;Gradle for Java&#8221; extension. <\/span><\/strong><span style=\"font-size: 12pt;\">(<\/span><span style=\"font-size: 12pt;\">Currently, Build Server for Gradle is integrated into <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=vscjava.vscode-gradle\">Gradle for Java extension<\/a>)<\/span><\/h4>\n<p><img decoding=\"async\" class=\"alignnone size-full\" src=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2023\/09\/gradleext.png\" width=\"906\" height=\"176\" \/><\/p>\n<p>After installing this extension, you can enable Build Server for Gradle for import your Gradle projects.<\/p>\n<p><span data-contrast=\"none\">By default, Build Server for Gradle will only import newly opened Gradle projects. If your project has been imported into Visual Studio Code before, you need to execute the &#8216;<strong>Java: Clean Java Language Server Workspace &gt; Reload and delete<\/strong>&#8216; command to clear the cache and reimport.<\/span><span data-ccp-props=\"{&quot;335551550&quot;:0,&quot;335551620&quot;:0}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"none\">If you wish to disable Build Server for Gradle, you can go to the settings and set &#8216;<strong>java.gradle.buildServer.enabled<\/strong>&#8216; to &#8216;<strong>off<\/strong>.&#8217;<\/span><span data-ccp-props=\"{&quot;335551550&quot;:0,&quot;335551620&quot;:0}\">\u00a0<\/span><\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2023\/11\/bsg.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-230228\" src=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2023\/11\/bsg.png\" alt=\"Turning build server for gradle off\" width=\"1100\" height=\"270\" srcset=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2023\/11\/bsg.png 1100w, https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2023\/11\/bsg-300x74.png 300w, https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2023\/11\/bsg-1024x251.png 1024w, https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2023\/11\/bsg-768x189.png 768w\" sizes=\"(max-width: 1100px) 100vw, 1100px\" \/><\/a><\/p>\n<h3><strong><span style=\"font-size: 18pt;\">Future Plans\u00a0<\/span><\/strong><\/h3>\n<p><span data-contrast=\"none\">We will continue to improve the Build Server for Gradle project in the future to enhance the development experience for Visual Studio Code Java users working on Gradle projects. This includes:<\/span><span data-ccp-props=\"{&quot;335551550&quot;:0,&quot;335551620&quot;:0}\">\u00a0<\/span><\/p>\n<ul>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"2\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559684&quot;:-2,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"1\" data-aria-level=\"1\"><span data-contrast=\"none\">Further optimizing and improving project loading accuracy<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335551550&quot;:0,&quot;335551620&quot;:0,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"2\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559684&quot;:-2,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"2\" data-aria-level=\"1\"><span data-contrast=\"none\">Enhancing project loading and building performance<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335551550&quot;:0,&quot;335551620&quot;:0,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"2\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559684&quot;:-2,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"3\" data-aria-level=\"1\"><span data-contrast=\"none\">Supporting the execution of Gradle tasks<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335551550&quot;:0,&quot;335551620&quot;:0,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"2\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559684&quot;:-2,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"4\" data-aria-level=\"1\"><span data-contrast=\"none\">Supporting test delegation<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335551550&quot;:0,&quot;335551620&quot;:0,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<\/ul>\n<h3><strong><span style=\"font-size: 18pt;\">Feedback and suggestions\u00a0<\/span><\/strong><\/h3>\n<p><span data-contrast=\"none\">Currently, the project is still in its early stages, and there will be many issues to explore and resolve in the future. We encourage everyone to try out Build Server for Gradle and provide feedback for improvement.<\/span><span data-ccp-props=\"{&quot;335551550&quot;:0,&quot;335551620&quot;:0}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"none\">We also greatly appreciate various forms of contributions, including but not limited to submitting issues and pull requests. Project repository link: <\/span><a href=\"https:\/\/github.com\/microsoft\/build-server-for-gradle\"><span data-contrast=\"none\">https:\/\/github.com\/microsoft\/build-server-for-gradle<\/span><\/a><span data-contrast=\"none\">.<\/span><span data-ccp-props=\"{&quot;335551550&quot;:0,&quot;335551620&quot;:0}\">\u00a0<\/span><\/p>\n<p><strong>Thank you as always!<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Build Server for Gradle In September, we shared that Microsoft and Gradle have joined forces to explore a novel approach to Gradle project import and building, based on the\u00a0Build Server Protocol (BSP). The objective is address the existing Gradle issues on Visual Studio Code and improve support for Gradle projects. The Build Server for Gradle, [&hellip;]<\/p>\n","protected":false},"author":31999,"featured_media":230252,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[14,22,1,8,15],"tags":[],"class_list":["post-230223","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud","category-desktop","category-java","category-open-source","category-vscode"],"acf":[],"blog_post_summary":"<p>Build Server for Gradle In September, we shared that Microsoft and Gradle have joined forces to explore a novel approach to Gradle project import and building, based on the\u00a0Build Server Protocol (BSP). The objective is address the existing Gradle issues on Visual Studio Code and improve support for Gradle projects. The Build Server for Gradle, [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/posts\/230223","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/users\/31999"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/comments?post=230223"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/posts\/230223\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/media\/230252"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/media?parent=230223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/categories?post=230223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/tags?post=230223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}