lgrignon / jsweet-gradle-plugin

Brings the power of JSweet to Gradle
Apache License 2.0
17 stars 15 forks source link

Feature request: Extra Path config for node.js installation #11

Closed philwilkinson closed 7 years ago

philwilkinson commented 7 years ago

I would like to be able to configure the node.js path in gradle. see https://github.com/cincheo/jsweet/issues/347 for details.

lgrignon commented 7 years ago

I added this to JSweet Gradle plugin and deployed to 2.0.0-SNAPSHOT if you want to give a try.

Please tell me if it is ok for you and I will do it on maven plugin as well.

Thanks for your help

Related commit: https://github.com/lgrignon/jsweet-gradle-plugin/commit/77da8478eadeb87c12d434782dff6a150e9d45ff

philwilkinson commented 7 years ago

Hi, yes i've modified the jsweet-examples project locally to work with jsweet-gradle-plugin 2.0.0-SNAPSHOT and gradle-node-plugin with the following configuration in build.gradle

afterEvaluate
{
    jsweet.setExtraSystemPath("${node.variant.nodeBinDir}")
}

and it all works perfectly. Cheers. looking forward to rc2.

lgrignon commented 7 years ago

Great news :)