1import{u as L,_ as v,a as N}from"./C4gYyaLh.js";import{_ as C}from"./D7wa5oW4.js";import{_ as G}from"./DIqVT0Hv.js";import{_ as S}from"./B1MXTG10.js";import{_ as w}from"./ClAIZZuS.js";import{_ as T}from"./ChvfkB0U.js";import{_ as B}from"./dAz8hvVD.js";import{_ as M}from"./BUuVDvsa.js";import{_ as U}from"./EqS35bke.js";import{_ as P}from"./DhvkxB9Q.js";import{_ as R,a as q}from"./Cu-BPg5A.js";import{_ as I}from"./Dr-vC2py.js";import{_ as V}from"./B9X5dTwJ.js";import{e as A,c as O,b as t,w as o,a as i,d as l,u as Y,o as z}from"./tKNZDzQJ.js";import{u as E}from"./Cichw2AY.js";import"./DlAUqK2U.js";import"./DvpLOCDf.js";const H={class:"list-unstyled my-2 me-3"},Q={class:"mb-2"},W={class:"mb-2"},y="Building a Javascript application with the Gradle Node plugin",j="Guide to get started with the plugin: requirements, supported Node.js, NPM, PNPM, Yarn distributions, installation steps.",an=A({__name:"getting-started",setup(X){const d=Y(),m=`${d.public.canonicalBaseUrl}${d.public.paths.gettingStarted}`;return E({link:[{rel:"canonical",href:m}]}),L({description:j,ogDescription:j,ogTitle:y,ogUrl:m,title:y}),(e,n)=>{const D=v,r=C,f=G,g=S,a=w,p=N,x=T,J=B,K=M,k=U,s=P,u=R,b=I,$=V,F=q;return z(),O("section",null,[t(D,null,{default:o(()=>n[0]||(n[0]=[l("Getting started")])),_:1}),t(r,null,{default:o(()=>n[1]||(n[1]=[l("Requirements")])),_:1}),n[85]||(n[85]=i("p",null,"The following tools must be installed to use the plugin:",-1)),i("ul",null,[i("li",null,[t(f,{path:"/plugin/org.siouan.frontend-jdk17"},{default:o(()=>n[2]||(n[2]=[l("JDK 17 build")])),_:1}),n[3]||(n[3]=l(": ")),t(g),n[4]||(n[4]=l(" 7.3+ "))]),i("li",null,[t(f,{path:"/plugin/org.siouan.frontend-jdk11"},{default:o(()=>n[5]||(n[5]=[l("JDK 11 build")])),_:1}),n[6]||(n[6]=l(": ")),t(g),n[7]||(n[7]=l(" 6.1+ "))])]),i("p",null,[n[9]||(n[9]=l(" The plugin is built and tested on Linux, Mac OS, Windows (see the list of build environments used in the ")),t(a,{path:"/blob/main/CONTRIBUTING.md"},{default:o(()=>n[8]||(n[8]=[l("contributing notes")])),_:1}),n[10]||(n[10]=l("). "))]),t(r,null,{default:o(()=>n[11]||(n[11]=[l("Supported distributions")])),_:1}),i("ul",null,[i("li",null,[t(p),n[12]||(n[12]=l(": ^14.19.0, â¥16.9.0"))]),i("li",null,[t(x),n[13]||(n[13]=l(": any"))]),i("li",null,[t(J),n[14]||(n[14]=l(": ^5.0.0 (requires ")),t(p),n[15]||(n[15]=l(" 14), â¥6.0.0"))]),i("li",null,[t(K),n[16]||(n[16]=l(": â¥1.0.0"))])]),t(r,null,{default:o(()=>n[17]||(n[17]=[l("Steps")])),_:1}),i("ol",null,[i("li",null,[n[52]||(n[52]=l(" Install the plugin. ")),i("ul",H,[i("li",null,[i("p",Q,[n[19]||(n[19]=l(" Using ")),t(k,{path:"/current/userguide/plugins.html#sec:plugins_block"},{default:o(()=>n[18]||(n[18]=[l("Gradle DSL")])),_:1}),n[20]||(n[20]=l()),n[21]||(n[21]=i("span",{class:"text-muted"},"(recommended)",-1))]),t(b,{id:"install-gradle-dsl"},{groovy:o(()=>[i("pre",null,[t(u,null,{default:o(()=>[n[24]||(n[24]=l(`plugins { 2 `)),t(s,null,{default:o(()=>n[22]||(n[22]=[l("// For JDK 17+")])),_:1}),n[25]||(n[25]=l(` 3 id 'org.siouan.frontend-jdk17' version '7.0.0' 4 `)),t(s,null,{default:o(()=>n[23]||(n[23]=[l("// For JDK 11+")])),_:1}),n[26]||(n[26]=l(` 5 id 'org.siouan.frontend-jdk11' version '7.0.0' 6}`))]),_:1})])]),kotlin:o(()=>[i("pre",null,[t(u,null,{default:o(()=>[n[29]||(n[29]=l(`plugins { 7 `)),t(s,null,{default:o(()=>n[27]||(n[27]=[l("// For JDK 17+")])),_:1}),n[30]||(n[30]=l(` 8 id("org.siouan.frontend-jdk17") version "7.0.0" 9 `)),t(s,null,{default:o(()=>n[28]||(n[28]=[l("// For JDK 11+")])),_:1}),n[31]||(n[31]=l(` 10 id("org.siouan.frontend-jdk11") version "7.0.0" 11}`))]),_:1})])]),_:1})]),i("li",null,[i("p",W,[n[33]||(n[33]=l(" Using ")),t(k,{path:"/current/userguide/plugins.html#sec:applying_plugins_buildscript"},{default:o(()=>n[32]||(n[32]=[l("Gradle build script block")])),_:1})]),t(b,{id:"install-build-script-block"},{groovy:o(()=>[i("pre",null,[t(u,null,{default:o(()=>[n[38]||(n[38]=l(`buildscript { 12 repositories { 13 url 'https://plugins.gradle.org/m2/' 14 } 15 dependencies { 16 `)),t(s,null,{default:o(()=>n[34]||(n[34]=[l("// For JDK 17+")])),_:1}),n[39]||(n[39]=l(` 17 classpath 'org.siouan:frontend-gradle-plugin-jdk17:7.0.0' 18 `)),t(s,null,{default:o(()=>n[35]||(n[35]=[l("// For JDK 11+")])),_:1}),n[40]||(n[40]=l(` 19 classpath 'org.siouan:frontend-gradle-plugin-jdk11:7.0.0' 20 } 21} 22 23`)),t(s,null,{default:o(()=>n[36]||(n[36]=[l("// For JDK 17+")])),_:1}),n[41]||(n[41]=l(` 24apply plugin: 'org.siouan.frontend-jdk17' 25`)),t(s,null,{default:o(()=>n[37]||(n[37]=[l("// For JDK 11+")])),_:1}),n[42]||(n[42]=l(` 26apply plugin: 'org.siouan.frontend-jdk11'`))]),_:1})])]),kotlin:o(()=>[i("pre",null,[t(u,null,{default:o(()=>[n[47]||(n[47]=l(`buildscript {
27 repositories { 28 url = uri("https://plugins.gradle.org/m2/") 29 } 30 dependencies { 31 `)),t(s,null,{default:o(()=>n[43]||(n[43]=[l("// For JDK 17+")])),_:1}),n[48]||(n[48]=l(` 32 classpath("org.siouan:frontend-gradle-plugin-jdk17:7.0.0") 33 `)),t(s,null,{default:o(()=>n[44]||(n[44]=[l("// For JDK 11+")])),_:1}),n[49]||(n[49]=l(` 34 classpath("org.siouan:frontend-gradle-plugin-jdk11:7.0.0") 35 } 36} 37 38`)),t(s,null,{default:o(()=>n[45]||(n[45]=[l("// For JDK 17+")])),_:1}),n[50]||(n[50]=l(` 39apply(plugin = "org.siouan.frontend-jdk17") 40`)),t(s,null,{default:o(()=>n[46]||(n[46]=[l("// For JDK 11+")])),_:1}),n[51]||(n[51]=l(` 41apply(plugin = "org.siouan.frontend-jdk11")`))]),_:1})])]),_:1})])])]),i("li",null,[n[55]||(n[55]=l(" Define the ")),t(u,null,{default:o(()=>[t(p,{path:"/api/packages.html#packagemanager",label:"packageManager"})]),_:1}),n[56]||(n[56]=l(" property in the ")),t(u,null,{default:o(()=>n[53]||(n[53]=[l("package.json")])),_:1}),n[57]||(n[57]=l(" file: ")),t(u,null,{default:o(()=>n[54]||(n[54]=[l("(npm|pnpm|yarn)@x.y.z")])),_:1}),n[58]||(n[58]=l(" (other syntax defined by ")),t($),n[59]||(n[59]=l(" is not supported). "))]),i("li",null,[n[62]||(n[62]=l("Add ")),t(u,null,{default:o(()=>n[60]||(n[60]=[l(".frontend-gradle-plugin/")])),_:1}),n[63]||(n[63]=l(" directory to ")),t(u,null,{default:o(()=>n[61]||(n[61]=[l(".gitignore")])),_:1}),n[64]||(n[64]=l(" file(s)."))]),i("li",null,[t(F,{path:e.$config.public.paths.configuration},{default:o(()=>n[65]||(n[65]=[l("Configure")])),_:1},8,["path"]),n[67]||(n[67]=l(" your project, optionally with the help of ")),t(a,{path:"/tree/main/examples"},{default:o(()=>n[66]||(n[66]=[l("examples")])),_:1}),n[68]||(n[68]=l(" provided for typical use cases. "))]),i("li",null,[n[70]||(n[70]=l("Run ")),t(u,null,{default:o(()=>n[69]||(n[69]=[l("gradlew build")])),_:1}),n[71]||(n[71]=l("."))]),i("li",null,[n[78]||(n[78]=l(" If you need to run ")),t(u,null,{default:o(()=>n[72]||(n[72]=[l("node")])),_:1}),n[79]||(n[79]=l("/")),t(u,null,{default:o(()=>n[73]||(n[73]=[l("corepack")])),_:1}),n[80]||(n[80]=l("/")),t(u,null,{default:o(()=>n[74]||(n[74]=[l("npm")])),_:1}),n[81]||(n[81]=l("/")),t(u,null,{default:o(()=>n[75]||(n[75]=[l("pnpm")])),_:1}),n[82]||(n[82]=l("/")),t(u,null,{default:o(()=>n[76]||(n[76]=[l("yarn")])),_:1}),n[83]||(n[83]=l(" executables from a command line (e.g. to start a development server), take a look at the ")),t(F,{path:e.$config.public.paths.faqs},{default:o(()=>n[77]||(n[77]=[l("FAQ")])),_:1},8,["path"]),n[84]||(n[84]=l(". "))])])])}}});export{an as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.