After updating my jenkins server xcode version to 6, i got the following error.
Pods-Facebook-iOS-SDK.build/Objects-normal/armv7/FBShareDialogParams.o Facebook-iOS-SDK/src/DeviceAPI/FBShareDialogParams.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
22:35:31.397 [DEBUG] [org.openbakery.CommandRunner] (1 failure)
22:35:31.463 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':build'
22:35:31.463 [LIFECYCLE] [org.gradle.TaskExecutionLogger] :build FAILED
22:35:31.463 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :build (Thread[main,5,main]) completed. Took 37.493 secs.
22:35:31.464 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[main,5,main]] finished, busy: 1 mins 9.044 secs, idle: 0.01 secs
22:35:31.718 [ERROR] [org.gradle.BuildExceptionReporter]
22:35:31.719 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
22:35:31.719 [ERROR] [org.gradle.BuildExceptionReporter]
22:35:31.719 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
22:35:31.719 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':build'.
Anyone came across such an issue.
Also while building I got the warning ,
22:34:27.447 [QUIET] [system.out] [33mWARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
22:34:27.447 [QUIET] [system.out] See https://github.com/CocoaPods/guides.cocoapods.org/issues/26 for
Is this causing the issue ?
I found what the issue was.
I was using Pod file, where facebook SDK's version was 3.12.
When updated it to ,pod 'Facebook-iOS-SDK', '3.18.2' it worked fine.
Related
I have a new Gradle problem. I managed to setup the eclipse workspace for forge 1.7.10. But I can't do it for forge 1.10.2, 1.11.2 or 1.12.2
My gradle.properties are setting -Xmx to 1G. When I try to decompile MC, the Error "Could not reserve enough space for 3145728KB object heap" occures, but the heap space is set to 1G, not 3G. The Error code isn't helpful too:
13:46:04.822 [INFO] [org.gradle.process.internal.DefaultExecHandle] Successfully started process 'command 'C:\Program Files (x86)\Java\jdk1.8.0_181\bin\java.exe''
13:46:04.906 [QUIET] [system.out] Error occurred during initialization of VM
Could not reserve enough space for 3145728KB object heap
13:46:04.913 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: FAILED
13:46:04.914 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Process 'command 'C:\Program Files (x86)\Java\jdk1.8.0_181\bin\java.exe'' finished with exit value 1 (state: FAILED)
13:46:04.917 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':decompileMc'
13:46:04.918 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :decompileMc FAILED
13:46:04.918 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :decompileMc (Thread[Daemon worker,5,main]) completed. Took 0.871 secs.
13:46:04.919 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[Daemon worker,5,main]] finished, busy: 12.474 secs, idle: 0.011 secs
13:46:04.928 [ERROR] [org.gradle.BuildExceptionReporter]
13:46:04.929 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
13:46:04.929 [ERROR] [org.gradle.BuildExceptionReporter]
13:46:04.929 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
13:46:04.929 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':decompileMc'.
13:46:04.930 [ERROR] [org.gradle.BuildExceptionReporter] > Process 'command 'C:\Program Files (x86)\Java\jdk1.8.0_181\bin\java.exe'' finished with non-zero exit value 1
13:46:04.930 [ERROR] [org.gradle.BuildExceptionReporter]
13:46:04.930 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
13:46:04.931 [ERROR] [org.gradle.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.
13:46:04.931 [LIFECYCLE] [org.gradle.BuildResultLogger]
13:46:04.932 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED
13:46:04.932 [LIFECYCLE] [org.gradle.BuildResultLogger]
13:46:04.932 [LIFECYCLE] [org.gradle.BuildResultLogger] Total time: 28.788 secs
Can anyone help me so my gradle problems are finally out of this world?
1 GB is not enough to store 3 GB worth of needed data.
The JVM wants 3 GB of space and you told it that its maximum of 1 GB. You didn't give it enough and it needs more than what you gave it.
Raise the -Xmx to 3GB.
I am creating a deployment script in gradle. I need to zip up my application in order to upload it to s3 and deploy a revision via code deploy. I can manually run zip -r Archive.zip * to achieve this. However when I try to run the same command in gradle I get an error, please see debug log below.
Task:
task zip {
doLast {
exec {
workingDir '.'
commandLine 'zip', '-r', 'Archive.zip', '*'
}
}
}
Log:
13:01:24.961 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: STARTING
13:01:24.961 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Waiting until process started: command 'zip'.
13:01:24.987 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: STARTED
13:01:24.988 [DEBUG] [org.gradle.process.internal.ExecHandleRunner] waiting until streams are handled...
13:01:24.988 [INFO] [org.gradle.process.internal.DefaultExecHandle] Successfully started process 'command 'zip''
13:01:25.018 [QUIET] [system.out]
13:01:25.018 [QUIET] [system.out] zip error: Nothing to do! (try: zip -r Archive.zip . -i *)
13:01:25.019 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: FAILED
13:01:25.019 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Process 'command 'zip'' finished with exit value 12 (state: FAILED)
13:01:25.019 [DEBUG] [org.gradle.internal.progress.DefaultBuildOperationExecutor] Completing Build operation 'Execute doLast {} action for :zip'
13:01:25.019 [DEBUG] [org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter] Removed task artifact state for {} from context.
13:01:25.020 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':zip'
13:01:25.020 [DEBUG] [org.gradle.internal.progress.DefaultBuildOperationExecutor] Completing Build operation 'Task :zip'
13:01:25.020 [null] [org.gradle.internal.progress.DefaultBuildOperationExecutor]
13:01:25.020 [DEBUG] [org.gradle.internal.progress.DefaultBuildOperationExecutor] Build operation 'Task :zip' completed
13:01:25.020 [INFO] [org.gradle.execution.taskgraph.DefaultTaskPlanExecutor] :zip (Thread[Task worker for ':',5,main]) completed. Took 0.063 secs.
13:01:25.020 [DEBUG] [org.gradle.internal.work.DefaultWorkerLeaseService] Worker lease root.1.2 completed (1 worker(s) in use)
13:01:25.020 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Task worker for ':': released lock on root.1.2
13:01:25.020 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Task worker for ':': released lock on :
13:01:25.020 [DEBUG] [org.gradle.execution.taskgraph.DefaultTaskPlanExecutor] Task worker [Thread[Task worker for ':',5,main]] finished, busy: 0.063 secs, idle: 0.002 secs
12:56:42.933 [DEBUG] [org.gradle.internal.progress.DefaultBuildOperationExecutor] Completing Build operation 'Run tasks'
12:56:42.935 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
12:56:42.935 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
12:56:42.935 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
12:56:42.935 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Where:
12:56:42.935 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Build file '/app/build.gradle' line: 50
12:56:42.935 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
12:56:42.935 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
12:56:42.935 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':zip'.
12:56:42.935 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Process 'command 'zip'' finished with non-zero exit value 12
12:56:42.935 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
12:56:42.935 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
12:56:42.935 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.
12:56:42.935 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
12:56:42.935 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Get more help at https://help.gradle.org
12:56:42.935 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger]
12:56:42.935 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED in 0s
There's a clear message printed to stdout in your logs:
13:01:25.018 [QUIET] [system.out] zip error: Nothing to do! (try: zip
-r Archive.zip . -i *)
Your command is invalid.
Also.. There's no need to run zip manually in gradle. There's a predefined task for that.
The following task resolved my issue:
task zip {
doLast {
exec {
workingDir '.'
commandLine 'zip', '-r', 'Archive.zip', '.'
}
}
}
> ➜ ofbiz-release15.12 ./gradlew build --debug
07:49:47.388 [INFO] [org.gradle.BuildLogger] Starting Build
07:49:47.411 [DEBUG] [org.gradle.BuildLogger] Gradle user home: /Users/qk/.gradle
07:49:47.415 [DEBUG] [org.gradle.BuildLogger] Current dir: /Users/qk/Documents/workspace-neon/ofbiz-release15.12
07:49:47.418 [DEBUG] [org.gradle.BuildLogger] Settings file: null
07:49:47.422 [DEBUG] [org.gradle.BuildLogger] Build file: null
07:49:47.477 [DEBUG] [org.gradle.initialization.buildsrc.BuildSourceBuilder] Starting to build the build sources.
07:49:47.481 [DEBUG] [org.gradle.initialization.buildsrc.BuildSourceBuilder] Gradle source dir does not exist. We leave.
07:49:47.486 [DEBUG] [org.gradle.initialization.DefaultGradlePropertiesLoader] Found env project properties: []
07:49:47.498 [DEBUG] [org.gradle.initialization.DefaultGradlePropertiesLoader] Found system project properties: []
07:49:47.736 [DEBUG] [org.gradle.api.internal.artifacts.mvnsettings.DefaultLocalMavenRepositoryLocator] No local repository in Settings file defined. Using default path: /Users/qk/.m2/repository
07:49:48.088 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on buildscript class cache for settings file '/Users/qk/Documents/workspace-neon/ofbiz-release15.12/settings.gradle' (/Users/qk/.gradle/caches/2.0/scripts/settings_74ne66nuu6asrd265d84ulhlp3/SettingsScript/buildscript).
07:49:48.092 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired.
07:49:48.175 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on no_buildscript class cache for settings file '/Users/qk/Documents/workspace-neon/ofbiz-release15.12/settings.gradle' (/Users/qk/.gradle/caches/2.0/scripts/settings_74ne66nuu6asrd265d84ulhlp3/SettingsScript/no_buildscript).
07:49:48.177 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired.
07:49:48.345 [DEBUG] [org.gradle.initialization.ScriptEvaluatingSettingsProcessor] Timing: Processing settings took: 0.843 secs
07:49:48.349 [INFO] [org.gradle.BuildLogger] Settings evaluated using settings file '/Users/qk/Documents/workspace-neon/ofbiz-release15.12/settings.gradle'.
07:49:48.473 [DEBUG] [org.gradle.initialization.ProjectPropertySettingBuildLoader] Looking for project properties from: /Users/qk/Documents/workspace-neon/ofbiz-release15.12/gradle.properties
07:49:48.475 [DEBUG] [org.gradle.initialization.ProjectPropertySettingBuildLoader] project property file does not exists. We continue!
07:49:48.478 [DEBUG] [org.gradle.initialization.ProjectPropertySettingBuildLoader] Looking for project properties from: /Users/qk/Documents/workspace-neon/ofbiz-release15.12/framework/start/build/gradle.properties
07:49:48.480 [DEBUG] [org.gradle.initialization.ProjectPropertySettingBuildLoader] project property file does not exists. We continue!
07:49:48.484 [INFO] [org.gradle.BuildLogger] Projects loaded. Root project using empty build file.
07:49:48.487 [INFO] [org.gradle.BuildLogger] Included projects: [root project 'ofbiz-parent', project ':ofbiz-start']
07:49:49.344 [INFO] [org.gradle.configuration.project.BuildScriptProcessor] Evaluating root project 'ofbiz-parent' using empty build file.
07:49:49.385 [DEBUG] [org.gradle.configuration.project.BuildScriptProcessor] Timing: Running the build script took 0.038 secs
07:49:49.433 [INFO] [org.gradle.configuration.project.BuildScriptProcessor] Evaluating project ':ofbiz-start' using empty build file.
07:49:49.452 [DEBUG] [org.gradle.configuration.project.BuildScriptProcessor] Timing: Running the build script took 0.017 secs
07:49:49.456 [INFO] [org.gradle.BuildLogger] All projects evaluated.
07:49:49.501 [ERROR] [org.gradle.BuildExceptionReporter]
07:49:49.504 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
07:49:49.507 [ERROR] [org.gradle.BuildExceptionReporter]
07:49:49.508 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
07:49:49.512 [ERROR] [org.gradle.BuildExceptionReporter] Task 'build' not found in root project 'ofbiz-parent'.
07:49:49.515 [ERROR] [org.gradle.BuildExceptionReporter]
07:49:49.530 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
07:49:49.532 [ERROR] [org.gradle.BuildExceptionReporter] Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace.
07:49:49.535 [LIFECYCLE] [org.gradle.BuildResultLogger]
07:49:49.539 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED
07:49:49.546 [LIFECYCLE] [org.gradle.BuildResultLogger]
07:49:49.549 [LIFECYCLE] [org.gradle.BuildResultLogger] Total time: 3.664 secs
It is my first time using gradle and in ofbiz-release15.12 use gradlew to start the demo. It seems that all the tasks do not exist. I have /gradlew init build successful. How can I add the build task?
In OFBiz, Gradle has replaced Ant after the creation of the 15.12 branch.
In 15.12 you still have to use ant to build the system.
You can run:
./ant build
or you can get the list of tasks with:
./ant -p
trying to upgrade sonar-runner from 2.4 to 2.5, using gradle version 2.3
here is the snippet from build.gradle:
classpath 'org.codehaus.sonar.runner:sonar-runner-dist:2.5'
and i use the following to upload the sonar-runner-dist-2.5.jar
<dependency>
<groupId>org.codehaus.sonar.runner</groupId>
<artifactId>sonar-runner-dist</artifactId>
<version>2.5</version>
</dependency>
to nexus
but get error when running
gradle build :noINT :Backend:TestServices:sonarRunner
error:
[system.err] Error: Could not find or load main class org.sonar.runner.Main
also, i have sonar-runner 2.4 working, with the following configuration:
Group: org.codehaus.sonar.runner
Artifact: sonar-runner-dist
Version: 2.4
Extension: jar
XML:
<dependency>
<groupId>org.codehaus.sonar.runner</groupId>
<artifactId>sonar-runner-dist</artifactId>
<version>2.4</version>
</dependency>
Here is a summary:
I am trying to use SonarQube version 5.3 , with sonar-runner version 2.5
First i run sonar-runner 2.4 against sonarQube 5.2 which works fine , but when i upgrade sonar-runner via local nexus repo to sonar-runner 2.5 and run it against sonarQube 5.3
i get build failed and the exception:
16:31:05.880 [ERROR] [system.err] Error: Could not find or load main class org.sonar.runner.Main
16:31:05.887 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: FAILED
16:31:05.887 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Process 'command '/usr/lib/jvm/jdk1.7.0_80/bin/java'' finished with exit value 1 (state: FAILED)
16:31:05.887 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':Backend:E2Services:sonarRunner'
16:31:05.887 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :Backend:E2Services:sonarRunner FAILED
16:31:05.888 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :Backend:E2Services:sonarRunner (Thread[Daemon worker Thread 3,5,main]) completed. Took 0.544 secs.
16:31:05.888 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[Daemon worker Thread 3,5,main]] finished, busy: 10 mins 55.24 secs, idle: 0.025 secs
16:31:05.888 [ERROR] [org.gradle.BuildExceptionReporter]
16:31:05.889 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
16:31:05.889 [ERROR] [org.gradle.BuildExceptionReporter]
16:31:05.889 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
16:31:05.889 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':Backend:E2Services:sonarRunner'.
Switch to Sonar Scanner 1.2 , problem fixed.
I updated our sonar as described in the Upgrade Guide. After doing so, I tried to invoke our Jenkins build that normally feeds the sonar. We use gradle 1.6 (Wrapper) and the buildin sonarRunner.
After all the tests have been executed, the sonarRunner produces the following error:
14:50:27.684 [QUIET] [system.out] 14:50:27.682 INFO - Load batch settings
14:50:27.763 [QUIET] [system.out] 14:50:27.763 INFO - User cache: /***/***/.sonar/cache
14:50:27.766 [QUIET] [system.out] 14:50:27.766 INFO - Install plugins
14:50:28.017 [QUIET] [system.out] 14:50:28.017 INFO - Install JDBC driver
14:50:28.045 [QUIET] [system.out] 14:50:28.045 INFO - Create JDBC datasource for jdbc:mysql://***/sonar?useUnicode=true&characterEncoding=utf8
14:50:29.947 [QUIET] [system.out] 14:50:29.947 INFO - Initializing Hibernate
14:50:33.249 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire exclusive lock on task artifact state cache (/***/***/.gradle/1.6/taskArtifacts).
14:50:33.250 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired.
14:50:33.250 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':sonarRunner'
14:50:33.250 [LIFECYCLE] [org.gradle.TaskExecutionLogger] :sonarRunner FAILED
14:50:33.254 [ERROR] [org.gradle.BuildExceptionReporter]
14:50:33.255 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
14:50:33.255 [ERROR] [org.gradle.BuildExceptionReporter]
14:50:33.255 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
14:50:33.255 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':sonarRunner'.
14:50:33.255 [ERROR] [org.gradle.BuildExceptionReporter] > org.sonar.api.utils.SonarException: Task null does not exist
Before the upgrade, this worked. Has anyone else encountered this problem yet?
Meh. Unloading the old sonar web application and loading the new version didn't work correctly.
I restarted the tomcat and the problem was gone.
Have you tried turning it off and on again?