以下のようなエラーメッセージが表示される。
> Could not resolve com.moowork.gradle:gradle-node-plugin:0.11.
> Could not get resource 'https://repo1.maven.org/maven2/com/moowork/gradle/gradle-node-plugin/0.11/gradle-node-plugin-0.11.pom'.
> Could not GET 'https://repo1.maven.org/maven2/com/moowork/gradle/gradle-node-plugin/0.11/gradle-node-plugin-0.11.pom'.
> Connection to http://127.0.0.1:8888 refused
> Could not resolve com.moowork.gradle:gradle-node-plugin:0.11.
> Could not get resource 'https://jcenter.bintray.com/com/moowork/gradle/gradle-node-plugin/0.11/gradle-node-plugin-0.11.pom'.
> Could not GET 'https://jcenter.bintray.com/com/moowork/gradle/gradle-node-plugin/0.11/gradle-node-plugin-0.11.pom'.
> Connection to http://127.0.0.1:8888 refused
> Could not resolve com.moowork.gradle:gradle-node-plugin:0.11.
> Could not get resource 'https://oss.sonatype.org/content/repositories/snapshots/com/moowork/gradle/gradle-node-plugin/0.11/gradle-node-plugin-0.11.pom'.
> Could not GET 'https://oss.sonatype.org/content/repositories/snapshots/com/moowork/gradle/gradle-node-plugin/0.11/gradle-node-plugin-0.11.pom'.
> Connection to http://127.0.0.1:8888 refused
> Could not resolve com.moowork.gradle:gradle-node-plugin:0.11.
> Could not get resource 'http://jcenter.bintray.com/com/moowork/gradle/gradle-node-plugin/0.11/gradle-node-plugin-0.11.pom'.
> Could not GET 'http://jcenter.bintray.com/com/moowork/gradle/gradle-node-plugin/0.11/gradle-node-plugin-0.11.pom'.
> Connection to http://127.0.0.1:8888 refused
Could not resolve com.moowork.gradle:gradle-node-plugin:0.11. Required by: onlineclaim-parent:onlineclaim:unspecified > com.moowork.gradle:gradle-gulp-plugin:0.10 > Could not resolve com.moowork.gradle:gradle-node-plugin:0.11. > Could not get resource 'https://repo1.maven.org/maven2/com/moowork/gradle/gradle-node-plugin/0.11/gradle-node-plugin-0.11.pom'. > Could not GET 'https://repo1.maven.org/maven2/com/moowork/gradle/gradle-node-plugin/0.11/gradle-node-plugin-0.11.pom'. > Connection to http://127.0.0.1:8888 refused > Could not resolve com.moowork.gradle:gradle-node-plugin:0.11. > Could not get resource 'https://jcenter.bintray.com/com/moowork/gradle/gradle-node-plugin/0.11/gradle-node-plugin-0.11.pom'. > Could not GET 'https://jcenter.bintray.com/com/moowork/gradle/gradle-node-plugin/0.11/gradle-node-plugin-0.11.pom'. > Connection to http://127.0.0.1:8888 refused > Could not resolve com.moowork.gradle:gradle-node-plugin:0.11. > Could not get resource 'https://oss.sonatype.org/content/repositories/snapshots/com/moowork/gradle/gradle-node-plugin/0.11/gradle-node-plugin-0.11.pom'. > Could not GET 'https://oss.sonatype.org/content/repositories/snapshots/com/moowork/gradle/gradle-node-plugin/0.11/gradle-node-plugin-0.11.pom'. > Connection to http://127.0.0.1:8888 refused > Could not resolve com.moowork.gradle:gradle-node-plugin:0.11. > Could not get resource 'http://jcenter.bintray.com/com/moowork/gradle/gradle-node-plugin/0.11/gradle-node-plugin-0.11.pom'. > Could not GET 'http://jcenter.bintray.com/com/moowork/gradle/gradle-node-plugin/0.11/gradle-node-plugin-0.11.pom'. > Connection to http://127.0.0.1:8888 refused
原因はgradle-gulp-pluginのapply時にgradle-node-pluginが見付からないこと。(gradle-gulp-pluginはgradle-node-pluginに依存している) 以下のようにgradle-node-pluginを先にapplyするようにすればよい。
apply plugin: 'com.moowork.node' apply plugin: 'com.moowork.gulp'