Hello All, I have a project that I’m working on b...
# kotlin-plugin
a
Hello All, I have a project that I’m working on behind a corporate firewall, so I only have access to our Artifactory instance. This project targets nodejs(), and our build machines already have node and yarn installed. I tried the following to prevent the build from trying to download/install node/yarn, but it doesn’t seem to have any effect:
Copy code
rootProject.plugins.withType(NodeJsRootPlugin::class) {
    var nodeJsRootExt = rootProject.the<NodeJsRootExtension>()
    nodeJsRootExt.download = false
    nodeJsRootExt.nodeVersion = "16.15.4"
}

rootProject.plugins.withType(YarnPlugin::class) {
    var gsmlYarnRootExt = rootProject.the<YarnRootExtension>()
    gsmlYarnRootExt.download = false
    gsmlYarnRootExt.version = "1.22.11"
}
For some reason, the build “sees” the assigned version numbers, but it ignores the download = false. Also, I’m using plugin version 1.5.20, and the YarnRootExtension class clearly has “download” as a field, but IntelliJ says otherwise and when I Cmd+Click to go to the definition of the class, the property is not there, which means to me that gradle is not pulling in the latest for some reason. Do any of you have any insight to this? Thanks! Thread in Slack Conversation