-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Process 'command 'cmd'' finished with non-zero exit value 1 #10
Comments
Hi. I tested your code here (on my Mac) and it seems to be working. What's the On Fri, Aug 14, 2015 at 5:38 AM, Hierony Manurung [email protected]
Vennlig hilsen/Best regards Sten Roger Sandvik The fastest way from idea to Digital Experience - |
dear @srs, Gradle version 2.4. Here's my gulpfile.js /*
gulpfile.js
===========
Rather than manage one giant configuration file responsible
for creating multiple tasks, each task has been broken out into
its own file in gulp/tasks. Any files in that directory get
automatically required below.
To add a new task, simply add a new task file that directory.
gulp/tasks/default.js specifies the default set of tasks to run
when you run `gulp`.
*/
var requireDir = require('require-dir');
// Require all tasks in gulp/tasks, including subfolders
requireDir('./gulp/tasks', { recurse: true }); and here for package.json: {
"name": "gulp-starter",
"version": "0.1.1",
"description": "Gulp starter with common tasks and scenarios",
"repository": {
"type": "git",
"url": "git://github.com/greypants/gulp-starter.git"
},
"//": [
"The following 'underscore' example demonstrates exposing a module included ",
"by another module. If you were to npm install underscore separately and ",
"require('underscore'), you'd end up with two copies in your bundle. The one",
"you installed, and the one that shipped with another package (backbone in ",
"this example). This is an edge case and should rarely happen.",
"",
"The 'plugin' example makes that file requireable with `require('plugin')`,",
"and available to browserify-shim as 'plugin' on line 30."
],
"browser": {
"underscore": "backbone/node_modules/underscore",
"plugin": "./src/javascript/vendor/jquery-plugin.js"
},
"browserify": {
"transform": [
"browserify-shim",
"coffeeify",
"hbsfy"
]
},
"browserify-shim": {
"plugin": {
"exports": "plugin",
"depends": [
"jquery:$"
]
}
},
"devDependencies": {
"browser-sync": "~2.2.2",
"browserify": "^9.0.3",
"browserify-shim": "^3.8.2",
"coffeeify": "~1.0.0",
"gulp": "^3.8.11",
"gulp-autoprefixer": "^2.1.0",
"gulp-changed": "^1.1.1",
"gulp-filesize": "0.0.6",
"gulp-iconfont": "^1.0.0",
"gulp-imagemin": "^2.2.1",
"gulp-minify-css": "~0.5.1",
"gulp-notify": "^2.2.0",
"gulp-rename": "^1.2.0",
"gulp-sass": "~1.3.3",
"gulp-sourcemaps": "^1.5.0",
"gulp-swig": "^0.7.4",
"gulp-uglify": "^1.1.0",
"gulp-util": "^3.0.4",
"handlebars": "^3.0.0",
"hbsfy": "~2.2.1",
"karma": "^0.12.31",
"karma-browserify": "^4.0.0",
"karma-chrome-launcher": "^0.1.7",
"karma-coffee-preprocessor": "^0.2.1",
"karma-mocha": "^0.1.10",
"karma-nyan-reporter": "0.0.51",
"karma-sinon-chai": "^0.3.0",
"lodash": "^3.3.1",
"merge-stream": "^0.1.7",
"pretty-hrtime": "~1.0.0",
"require-dir": "^0.1.0",
"vinyl-source-stream": "~1.0.0",
"watchify": "^2.4.0"
},
"dependencies": {
"backbone": "~1.1.2",
"jquery": "~2.1.0"
}
} Thanks for your help. |
Hey everyone, My team has hit this issue too. We also hit the same error when using plain old Gradle Exec to call npm. Has anyone else seen similar behavior? |
I just hit this issue myself. If there's an update i'd love to know it. |
@mmayors I was able to solve this in my environment at least (untested with our full jenkins) by upgrading to this: node version: 6.9.4 (latest our team has legal approval to use) I had to reconfigure my tasks to a degree - i removed the npm_install config I had and used this for node node {
} I also went to using the built in gulp_build instead of gulpBuildWithOpts (which I could get away with). I'm not sure the last bit is required but hopefully that helps. I have a strong suspicion (but could be wrong) that the version of node/gradle plugin version, gulp version combination is what can result in the error we're seeing. (Priorly was running a very old node 0.12.4 and the 0.12 plugin version) |
@mmayors Solved this using this method: |
I am trying to create mongodb database using gradle task. And facing the following issue while running gradle create task. $ gradle create --stacktrace exception: connect failed FAILURE: Build failed with an exception.
And my build.gradle file as follows task create(type: Exec) { |
If I run this task on my IDE or from command line, it works. But on Jenkins (with wrapped gradle), it fails:
I noticed that if I comment out solved: Actually the error was because it was unable to get the script, because it is on a submodule that I weren't initializing it. |
Hey I am getting this issue in android studio, when I am trying to build a signed apk |
Hello Everyone..!! If you are trying to build a react-native project with expo-kit ejected make sure you are running And then build your project. It should definitely build..!! Thanks in Advance..! |
Hi, FAILURE: Build failed with an exception.
Please find my gradle : version = '0.1' buildscript {
} apply plugin: 'com.moowork.gulp' node {
} gulp { task build(dependsOn: gulp_build) { task clean(dependsOn: gulp_clean) { task bundle(dependsOn: gulp_bundle) { task 'test'(type: GulpTask) { task 'build-send-watch'(type: GulpTask) { task 'bsw'(dependsOn: 'build-send-watch') task 'watch' (type: GulpTask) { task 'build-send-everything'(type: GulpTask) { task 'send-everything'(type: GulpTask) { task 'send' (type: GulpTask) { def addOptionalArguments(args) {
} and package.json{ |
same here ! |
I got same error when try to build signed apk ./gradlew assembleRelease |
Dear @srs,
Thanks for such a great plugin.
But I am hitting the wall when using this plugin in my application.
Here the error when i run gradle build --info
Here's my build.gradle file.
Please help me figuring out what's wrong in my configuration.
thanks.
The text was updated successfully, but these errors were encountered: