Problem using Gradle plugin

I'm try to building a project with the gradle plugin and keeps throwing this exception, any ideas?

:language-adaptors:rxjava-kotlin:compileKotlin Annotations path entry points to a non-existent location: java.lang.NoSuchMethodError: com.google.common.collect.Queues.newArrayDeque()Ljava/util/ArrayDeque;      at org.jetbrains.jet.lang.cfg.pseudocode.PseudocodeImpl.traverseFollowingInstructions(PseudocodeImpl.java:332)      at org.jetbrains.jet.lang.cfg.pseudocode.PseudocodeImpl.collectReachableInstructions(PseudocodeImpl.java:314)      at org.jetbrains.jet.lang.cfg.pseudocode.PseudocodeImpl.postProcess(PseudocodeImpl.java:244)      at org.jetbrains.jet.lang.cfg.JetControlFlowProcessor.generatePseudocode(JetControlFlowProcessor.java:60)      at org.jetbrains.jet.lang.cfg.JetFlowInformationProvider.<init>(JetFlowInformationProvider.java:67)      at org.jetbrains.jet.lang.resolve.ControlFlowAnalyzer.checkDeclarationContainer(ControlFlowAnalyzer.java:79)      at org.jetbrains.jet.lang.resolve.ControlFlowAnalyzer.process(ControlFlowAnalyzer.java:49)      at org.jetbrains.jet.lang.resolve.BodyResolver.resolveBodies(BodyResolver.java:141)      at org.jetbrains.jet.lang.resolve.TopDownAnalyzer.doProcess(TopDownAnalyzer.java:132)      at org.jetbrains.jet.lang.resolve.TopDownAnalyzer.analyzeFiles(TopDownAnalyzer.java:257)      at org.jetbrains.jet.lang.resolve.java.AnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration(AnalyzerFacadeForJVM.java:211)      at org.jetbrains.jet.cli.jvm.compiler.KotlinToJVMBytecodeCompiler$1.invoke(KotlinToJVMBytecodeCompiler.java:318)      at org.jetbrains.jet.cli.jvm.compiler.KotlinToJVMBytecodeCompiler$1.invoke(KotlinToJVMBytecodeCompiler.java:313)      at org.jetbrains.jet.cli.common.messages.AnalyzerWithCompilerReport.analyzeAndReport(AnalyzerWithCompilerReport.java:235)      at org.jetbrains.jet.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.analyze(KotlinToJVMBytecodeCompiler.java:312)      at org.jetbrains.jet.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.analyzeAndGenerate(KotlinToJVMBytecodeCompiler.java:292)      at org.jetbrains.jet.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.analyzeAndGenerate(KotlinToJVMBytecodeCompiler.java:273)      at org.jetbrains.jet.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileBunchOfSources(KotlinToJVMBytecodeCompiler.java:182)      at org.jetbrains.jet.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.java:153)      at org.jetbrains.jet.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.java:52)      at org.jetbrains.jet.cli.common.CLICompiler.exec(CLICompiler.java:128)      at org.jetbrains.kotlin.gradle.tasks.KotlinCompile.compile(Tasks.kt:112)      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)      at java.lang.reflect.Method.invoke(Method.java:601)      at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)      at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1047)      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:877)      at org.gradle.api.internal.BeanDynamicObject$MetaClassAdapter.invokeMethod(BeanDynamicObject.java:216)      at org.gradle.api.internal.BeanDynamicObject.invokeMethod(BeanDynamicObject.java:122)      at org.gradle.api.internal.CompositeDynamicObject.invokeMethod(CompositeDynamicObject.java:147)      at org.jetbrains.kotlin.gradle.tasks.KotlinCompile_Decorated.invokeMethod(Unknown Source)      at groovy.lang.GroovyObject$invokeMethod.call(Unknown Source)      at org.gradle.util.ReflectionUtil.invoke(ReflectionUtil.groovy:23)      at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$4.execute(AnnotationProcessingTaskFactory.java:161)      at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$4.execute(AnnotationProcessingTaskFactory.java:156)      at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:472)      at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:461)      at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:60)      at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)      at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:34)      at org.gradle.api.internal.changedetection.CacheLockHandlingTaskExecuter$1.run(CacheLockHandlingTaskExecuter.java:34)      at org.gradle.internal.Factories$1.create(Factories.java:22)      at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(DefaultCacheAccess.java:179)      at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(DefaultCacheAccess.java:232)      at org.gradle.cache.internal.DefaultPersistentDirectoryStore.longRunningOperation(DefaultPersistentDirectoryStore.java:138)      at org.gradle.api.internal.changedetection.DefaultTaskArtifactStateCacheAccess.longRunningOperation(DefaultTaskArtifactStateCacheAccess.java:83)      at org.gradle.api.internal.changedetection.CacheLockHandlingTaskExecuter.execute(CacheLockHandlingTaskExecuter.java:32)      at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:55)      at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:57)      at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:41)      at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:51)      at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:52)      at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:42)      at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:247)      at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.executeTask(DefaultTaskPlanExecutor.java:52)      at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.processTask(DefaultTaskPlanExecutor.java:38)      at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:30)      at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:83)      at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:29)      at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61)      at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23)      at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:67)      at org.gradle.api.internal.changedetection.TaskCacheLockHandlingBuildExecuter$1.run(TaskCacheLockHandlingBuildExecuter.java:31)      at org.gradle.internal.Factories$1.create(Factories.java:22)      at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:124)      at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:112)      at org.gradle.cache.internal.DefaultPersistentDirectoryStore.useCache(DefaultPersistentDirectoryStore.java:130)      at org.gradle.api.internal.changedetection.DefaultTaskArtifactStateCacheAccess.useCache(DefaultTaskArtifactStateCacheAccess.java:79)      at org.gradle.api.internal.changedetection.TaskCacheLockHandlingBuildExecuter.execute(TaskCacheLockHandlingBuildExecuter.java:29)      at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61)      at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23)      at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:67)      at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)      at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61)      at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:54)      at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:158)      at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:113)      at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:81)      at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:38)      at org.gradle.launcher.exec.InProcessGradleLauncherActionExecuter.execute(InProcessGradleLauncherActionExecuter.java:39)      at org.gradle.launcher.exec.InProcessGradleLauncherActionExecuter.execute(InProcessGradleLauncherActionExecuter.java:25)      at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:50)      at org.gradle.api.internal.Actions$RunnableActionAdapter.execute(Actions.java:137)      at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:201)      at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:174)      at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:170)      at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:139)      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:48)      at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)      at org.gradle.launcher.Main.main(Main.java:39)      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)      at java.lang.reflect.Method.invoke(Method.java:601)      at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:50)      at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:32)      at org.gradle.launcher.GradleMain.main(GradleMain.java:26)      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)      at java.lang.reflect.Method.invoke(Method.java:601)      at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:33)      at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:130)      at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:47)

:language-adaptors:rxjava-kotlin:compileKotlin FAILED

FAILURE: Build failed with an exception.


My build.gradle

buildscript {   repositories {   mavenCentral()   maven {            url 'http://repository.jetbrains.com/all'   }   }   dependencies {   classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:0.5.429'   } }

apply plugin: ‘java’
apply plugin: ‘kotlin’
apply plugin: ‘eclipse’
apply plugin: ‘idea’
apply plugin: ‘osgi’

repositories {
  maven {
  url ‘http://repository.jetbrains.com/all
  }
}

dependencies {
  compile project(‘:rxjava-core’)
  compile ‘org.jetbrains.kotlin:kotlin-stdlib:0.5.429’
  provided ‘junit:junit-dep:4.10’
  provided ‘org.mockito:mockito-core:1.8.5’
}

eclipse {
  classpath {
  // include ‘provided’ dependencies on the classpath
  plusConfigurations += configurations.provided

  &nbsp;&nbsp;downloadSources = true
  &nbsp;&nbsp;downloadJavadoc = true

  }
}

idea {
  module {
  // include ‘provided’ dependencies on the classpath
  scopes.PROVIDED.plus += configurations.provided
  }
}

jar {
  manifest {
  name = ‘rxjava-kotlin’
  instruction ‘Bundle-Vendor’, ‘Netflix’
  instruction ‘Bundle-DocURL’, ‘https://github.com/Netflix/RxJava
  instruction ‘Import-Package’, ‘!org.junit,!junit.framework,!org.mockito.,
  instruction ‘Fragment-Host’, ‘com.netflix.rxjava.core’
  }
}


I try to add the guava dependency in both, buildscript dependencies and project dependencies without success

Thank you for stacktrace and project information. I'm investigating the issue and will let you know as soon as I have some results.

Seems, I've nailed down the problem. But still I need a piece of Kotlin code to create a test. So far I was unable to reproduce the stacktrace.

Could you share a sample fragment of Kotlin code that causes problem?

You can git clone this

https://github.com/MarioAriasC/RxJava

And then execute ./gradlew build

Great. thank you.

Hello,

While fix is underway, there is a workaround for the issue.

Please, comment out line

apply from: file(‘gradle/license.gradle’)

in build.gradle file and line

classpath ‘nl.javadude.gradle.plugins:license-gradle-plugin:0.6.0’

in gradle/buildscript.gradle

this will fully disable license plugin. It is the plugin that brings in the wrong Guava version )