We have Gradle script for build the multiple projects. It is working fine with gradle 2.2.1 version but with new Gradle release 2.3 projects are not building. It gives the following error.
org.gradle.api.tasks.TaskValidationException: A problem was found with the configuration of task ':TESTGradle:startScripts'.
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:55)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:306)
at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.executeTask(AbstractTaskPlanExecutor.java:79)
at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:63)
at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:51)
at org.gradle.execution.taskgraph.ParallelTaskPlanExecutor.process(ParallelTaskPlanExecutor.java:45)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:88)
at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:29)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:62)
at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23)
at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:68)
at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:62)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:55)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:149)
at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:106)
at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:86)
at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:80)
at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:33)
at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:24)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:36)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)
at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:51)
at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:169)
at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237)
at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)
at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)
at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)
at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
at org.gradle.launcher.Main.doAction(Main.java:33)
at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)
at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)
at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
Caused by: org.gradle.api.InvalidUserDataException: No value has been specified for property 'mainClassName'.
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:47)
... 40 more
Could you please give some advice to fix this issue?
It was failing also with 2.2.1 version of gradle. See the output below:
[opal#opal-mac-2]/tmp % cat build.gradle
apply plugin: 'application'
[opal#opal-mac-2]/tmp % gradle -v
------------------------------------------------------------
Gradle 2.2.1
------------------------------------------------------------
Build time: 2014-11-24 09:45:35 UTC
Build number: none
Revision: 6fcb59c06f43a4e6b1bcb401f7686a8601a1fb4a
Groovy: 2.3.6
Ant: Apache Ant(TM) version 1.9.3 compiled on December 23 2013
JVM: 1.8.0_05 (Oracle Corporation 25.5-b02)
OS: Mac OS X 10.10.1 x86_64
[opal#opal-mac-2]/tmp % gradle startScripts
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:jar UP-TO-DATE
:startScripts FAILED
FAILURE: Build failed with an exception.
* What went wrong:
A problem was found with the configuration of task ':startScripts'.
> No value has been specified for property 'mainClassName'.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 2.909 secs
[opal#opal-mac-2]/tmp % gvm use gradle 2.3
Using gradle version 2.3 in this shell.
[opal#opal-mac-2]/tmp % gradle -v
------------------------------------------------------------
Gradle 2.3
------------------------------------------------------------
Build time: 2015-02-16 05:09:33 UTC
Build number: none
Revision: 586be72bf6e3df1ee7676d1f2a3afd9157341274
Groovy: 2.3.9
Ant: Apache Ant(TM) version 1.9.3 compiled on December 23 2013
JVM: 1.8.0_05 (Oracle Corporation 25.5-b02)
OS: Mac OS X 10.10.1 x86_64
[opal#opal-mac-2]/tmp % gradle startScripts
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:jar
:startScripts FAILED
FAILURE: Build failed with an exception.
* What went wrong:
A problem was found with the configuration of task ':startScripts'.
> No value has been specified for property 'mainClassName'.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 3.168 secs
You've no mainClassName specified in your build script.
Related
I'm having issues building with gradle. It throws this exception for any project I try to build:
2022-10-26T12:16:04.514+0200 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
2022-10-26T12:16:04.515+0200 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
2022-10-26T12:16:04.515+0200 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
2022-10-26T12:16:04.515+0200 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
2022-10-26T12:16:04.515+0200 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] A problem occurred configuring root project 'LanguageImplementationPatterns'.
2022-10-26T12:16:04.515+0200 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not load compiled classes for build file '/home/svukadin/northbridge/tmp/LanguageImplementationPatterns/build.gradle' from cache.
2022-10-26T12:16:04.515+0200 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
It does not matter which project I try it's the same. It suggests to use the --scan feature so I do and then I get this strange thing:
FAILURE: Build failed with an exception.
* Where:
Auto-applied by using --scan
* What went wrong:
An exception occurred applying plugin request [id: 'com.gradle.enterprise', version: '3.4.1', artifact: 'com.gradle:gradle-enterprise-gradle-plugin:3.4.1']
> Could not find implementation class 'com.gradle.enterprise.gradleplugin.GradleEnterprisePlugin' for plugin 'com.gradle.enterprise' specified in jar:file:/home/svukadin/.gradle/caches/jars-8/8d335fae97ae4c2a6592f56bf32b7baa/gradle-enterprise-gradle-plugin-3.4.1.jar!/META-INF/gradle-plugins/com.gradle.enterprise.properties.
I try to unzip the mentioned jar manualy and I get a lot of bad CRC errors:
inflating: META-INF/MANIFEST.MF
inflating: com.gradle.scan.plugin.internal.meta.buildAgentVersion.txt
inflating: META-INF/NOTICE.txt bad CRC 41e1d32b (should be 7e9f11ac)
inflating: META-INF/licenses/jackson-core-2.11.0/NOTICE.txt bad CRC b086255b (should be 3f58cc88)
inflating: META-INF/licenses/jackson-databind-2.11.0/LICENSE.txt
...
Tried clearing all caches, tried with no deamon, tried changing gradle wrapper version...
Don't know what's the issue... It seems it downloads malformed JAR archives from my perspective.
Java and Gradle versions:
openjdk version "1.8.0_342"
-----------
------------------------------------------------------------
Gradle 6.6.1
------------------------------------------------------------
Build time: 2020-08-25 16:29:12 UTC
Revision: f2d1fb54a951d8b11d25748e4711bec8d128d7e3
Kotlin: 1.3.72
Groovy: 2.5.12
Ant: Apache Ant(TM) version 1.10.8 compiled on May 10 2020
JVM: 1.8.0_342 (Private Build 25.342-b07)
OS: Linux 5.4.0-131-generic amd64
Contents of build.gradle
plugins {
id 'idea'
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'antlr'
repositories {
jcenter()
}
test {
useJUnitPlatform()
workingDir = '.'
}
dependencies {
// Use JUnit test framework
testCompile("org.junit.jupiter:junit-jupiter-api:5.5.1")
testCompile("org.hamcrest:hamcrest-all:1.3")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.5.1")
// ANTLR
antlr "org.antlr:antlr:3.5.2" // use ANTLR version 3
compile 'org.antlr:antlr-runtime:3.5.2'
testCompile 'org.antlr:antlr-runtime:3.5.2'
}
We recently upgraded our gradle to version 2.13 (the latest at the time of this writing). We are using the sonarqube plugin calling it via "gradlew clean test sonarqube". Before the upgrade, everything was working fine with Sonar.
After we upgraded to version 2.13, we get the following error "Incompatible version 1007" and it looks like an incompatibility with the gradle jacoco plugin. We are currently using version 2.0.1 of the sonarqube plugin and we also tried the sonarRunner plugin as well which fails with the same error. Has anybody else run into this and how did you resolve it?
plugins {
id "org.sonarqube" version "2.0.1"
}
4:06:55.845 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':sonarqube'.
14:06:55.845 [ERROR] [org.gradle.BuildExceptionReporter] > Unable to read /var/lib/jenkins/jobs/Indicee-BI-API-Java-Library_platform_team/workspace/build/jacoco/test.exec
14:06:55.845 [ERROR] [org.gradle.BuildExceptionReporter]
14:06:55.846 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is:
14:06:55.846 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':sonarqube'.
14:06:55.852 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.io.IOException: Incompatible version 1007.
14:06:55.852 [ERROR] [org.gradle.BuildExceptionReporter] at org.jacoco.core.data.ExecutionDataReader.readHeader(ExecutionDataReader.java:127)
14:06:55.852 [ERROR] [org.gradle.BuildExceptionReporter] at org.jacoco.core.data.ExecutionDataReader.readBlock(ExecutionDataReader.java:107)
14:06:55.852 [ERROR] [org.gradle.BuildExceptionReporter] at org.jacoco.core.data.ExecutionDataReader.read(ExecutionDataReader.java:87)
14:06:55.853 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.plugins.jacoco.JaCoCoOverallSensor.loadSourceFiles(JaCoCoOverallSensor.java:124)
14:06:55.853 [ERROR] [org.gradle.BuildExceptionReporter] ... 95 more
The Sonar plugin upgrade for Java to 3.13.1 worked. Thank you.
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 have strange problem I have installed plugin https://github.com/craigburke/karma-gradle
I configure it write single simple test and everything was working fine.
After that I removed /build directory from my project and command running karma
gradle karmaRun
stops working!?
I'm using Gradle 2.10, com.craigburke.karma 1.4.3
And I have error I didn't change configuration everything I have on git and there is nothing in diff. When I seted up working configuration gradle karma plugin i have pushed it to my git repository, I have tried to clone my project but I have the same error
I was tring remove .gradle and remove done_modules directory created by this plugin, remove gradle dependencies from repository on my locale but nothing heps! I also try gradle karmaClean task but it didn't help eather.
I'm in shock something what just run stops working after removing /build and rebuild project.
Please give me some advice.
My stack trace is:
gradle karmaRun --stacktrace
:karmaInit UP-TO-DATE
:nodeSetup UP-TO-DATE
:karmaDependencies UP-TO-DATE
:karmaGenerateConfig UP-TO-DATE
:karmaRun FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':karmaRun'.
> Process 'command 'cmd'' finished with non-zero exit value 1
* Try:
Run with --info or --debug option to get more log output.
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':karmaRun'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:185)
at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:66)
at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:50)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:25)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:110)
at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23)
at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43)
at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30)
at org.gradle.initialization.DefaultGradleLauncher$4.run(DefaultGradleLauncher.java:154)
at org.gradle.internal.Factories$1.create(Factories.java:22)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:52)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:151)
at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32)
at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:99)
at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:93)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:62)
at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:93)
at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:82)
at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:94)
at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:43)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28)
at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:78)
at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:48)
at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:51)
at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:28)
at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:43)
at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:170)
at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237)
at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)
at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)
at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)
at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
at org.gradle.launcher.Main.doAction(Main.java:33)
at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)
at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)
at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
Caused by: org.gradle.process.internal.ExecException: Process 'command 'cmd'' finished with non-zero exit value 1
at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:367)
at org.gradle.process.internal.DefaultExecAction.execute(DefaultExecAction.java:31)
at org.gradle.api.internal.file.DefaultFileOperations.exec(DefaultFileOperations.java:165)
at org.gradle.api.internal.project.AbstractProject.exec(AbstractProject.java:814)
at org.gradle.api.internal.project.AbstractProject.exec(AbstractProject.java:810)
at org.gradle.api.Project$exec$10.call(Unknown Source)
at com.moowork.gradle.node.exec.ExecRunner.run(ExecRunner.groovy:43)
at com.moowork.gradle.node.exec.NodeExecRunner.doExecute(NodeExecRunner.groovy:44)
at com.moowork.gradle.node.exec.ExecRunner.execute(ExecRunner.groovy:83)
at com.moowork.gradle.node.exec.ExecRunner$execute.call(Unknown Source)
at com.moowork.gradle.node.task.NodeTask.exec(NodeTask.groovy:78)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:227)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:220)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:209)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:585)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:568)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
... 57 more
BUILD FAILED
Thank You for answers!
Gradle karma plugin contains many erors, so I decide to have karma installed by npm for my javascript testing purpouses in my gradle project so now it contains gradle.build and package.json, kind a hybrid but now I have working karma, without any problems :)
I was using this totorial for set up
https://www.youtube.com/channel/UCdaEMffiYgTf_E7uTMxM4og
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.