ben-manes / gradle-versions-plugin Goto Github PK
View Code? Open in Web Editor NEWGradle plugin to discover dependency updates
License: Apache License 2.0
Gradle plugin to discover dependency updates
License: Apache License 2.0
The following exception appears with version 0.4 of the plugin in combination with Gradle 1.10 and 1.11
Execution failed for task ':griffon-core:dependencyUpdates'.
> java.lang.ClassNotFoundException: org.gradle.api.internal.artifacts.version.LatestVersionSemanticComparator
It would be nice if the e.g. detected that itself can be updated.
Today i did gradlew dependencyUpdates
and got told that there is a 0.4 of this plugin.
after setting my 0.3 to 0.4 i get this message:
* Where:
Build file 'E:\RadioApp\application\build.gradle' line: 13
A problem occurred evaluating project ':application'.
> Failed to notify action.
> java.lang.NoSuchMethodError: com.google.common.base.Objects.toStringHelper(Ljava/lang/Object;)Lcom/google/common/base/Objects$ToStringHelper;
Line 13 is: apply plugin: 'android'
Here is the stacktrace.
* Exception is:
org.gradle.api.GradleScriptException: A problem occurred evaluating project ':application'.
at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:54)
at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:131)
at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:38)
at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:25)
at org.gradle.configuration.project.ConfigureActionsProjectEvaluator.evaluate(ConfigureActionsProjectEvaluator.java:34)
at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:55)
at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:469)
at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:77)
at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:31)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:142)
at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:113)
at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:81)
at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:64)
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:35)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)
at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:50)
at org.gradle.api.internal.Actions$RunnableActionAdapter.execute(Actions.java:171)
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 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 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:61)
Caused by: org.gradle.listener.ListenerNotificationException: Failed to notify action.
at org.gradle.listener.BroadcastDispatch.dispatch(BroadcastDispatch.java:90)
at org.gradle.listener.BroadcastDispatch.dispatch(BroadcastDispatch.java:30)
at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
at com.sun.proxy.$Proxy9.execute(Unknown Source)
at org.gradle.listener.ActionBroadcast.execute(ActionBroadcast.java:30)
at org.gradle.api.internal.DefaultDomainObjectCollection.doAdd(DefaultDomainObjectCollection.java:164)
at org.gradle.api.internal.DefaultDomainObjectCollection.add(DefaultDomainObjectCollection.java:159)
at org.gradle.api.internal.DefaultNamedDomainObjectCollection.add(DefaultNamedDomainObjectCollection.java:71)
at org.gradle.api.internal.AbstractNamedDomainObjectContainer.create(AbstractNamedDomainObjectContainer.java:57)
at org.gradle.api.internal.AbstractNamedDomainObjectContainer.create(AbstractNamedDomainObjectContainer.java:39)
at org.gradle.api.internal.BeanDynamicObject$MetaClassAdapter.invokeMethod(BeanDynamicObject.java:248)
at org.gradle.api.internal.BeanDynamicObject.invokeMethod(BeanDynamicObject.java:136)
at org.gradle.api.internal.CompositeDynamicObject.invokeMethod(CompositeDynamicObject.java:147)
at org.gradle.api.internal.CompositeDynamicObject.invokeMethod(CompositeDynamicObject.java:147)
at org.gradle.api.internal.FactoryNamedDomainObjectContainer_Decorated.invokeMethod(Unknown Source)
at com.android.build.gradle.AppPlugin.apply(AppPlugin.groovy:115)
at com.android.build.gradle.AppPlugin.apply(AppPlugin.groovy)
at org.gradle.api.internal.plugins.DefaultPluginContainer.providePlugin(DefaultPluginContainer.java:107)
at org.gradle.api.internal.plugins.DefaultPluginContainer.addPluginInternal(DefaultPluginContainer.java:71)
at org.gradle.api.internal.plugins.DefaultPluginContainer.apply(DefaultPluginContainer.java:37)
at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.applyPlugin(DefaultObjectConfigurationAction.java:101)
at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.access$200(DefaultObjectConfigurationAction.java:32)
at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction$3.run(DefaultObjectConfigurationAction.java:72)
at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.execute(DefaultObjectConfigurationAction.java:114)
at org.gradle.api.internal.project.AbstractPluginAware.apply(AbstractPluginAware.java:39)
at org.gradle.api.internal.BeanDynamicObject$MetaClassAdapter.invokeMethod(BeanDynamicObject.java:248)
at org.gradle.api.internal.BeanDynamicObject.invokeMethod(BeanDynamicObject.java:136)
at org.gradle.api.internal.CompositeDynamicObject.invokeMethod(CompositeDynamicObject.java:147)
at org.gradle.api.internal.project.DefaultProject_Decorated.invokeMethod(Unknown Source)
at org.gradle.api.internal.project.ProjectScript.apply(ProjectScript.groovy:34)
at org.gradle.api.Script$apply.callCurrent(Unknown Source)
at build_1g57u27vcohlhd9dkd88uet837.run(E:\RadioApp\application\build.gradle:13)
at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:52)
... 33 more
Caused by: org.codehaus.groovy.runtime.InvokerInvocationException: java.lang.NoSuchMethodError: com.google.common.base.Objects.toStringHelper(Ljava/lang/Object;)Lcom/google/common/base/Objects$ToStringHelper;
at org.gradle.api.internal.ClosureBackedAction.execute(ClosureBackedAction.java:58)
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at org.gradle.listener.BroadcastDispatch.dispatch(BroadcastDispatch.java:81)
... 65 more
Caused by: java.lang.NoSuchMethodError: com.google.common.base.Objects.toStringHelper(Ljava/lang/Object;)Lcom/google/common/base/Objects$ToStringHelper;
at com.android.build.gradle.internal.dsl.SigningConfigDsl.toString(SigningConfigDsl.java:133)
at org.gradle.api.internal.BeanDynamicObject.getDisplayName(BeanDynamicObject.java:86)
at org.gradle.api.internal.ExtensibleDynamicObject.getDisplayName(ExtensibleDynamicObject.java:101)
at org.gradle.api.internal.AbstractDynamicObject.propertyMissingException(AbstractDynamicObject.java:43)
at org.gradle.api.internal.AbstractDynamicObject.getProperty(AbstractDynamicObject.java:35)
at org.gradle.api.internal.CompositeDynamicObject.getProperty(CompositeDynamicObject.java:94)
at com.android.build.gradle.internal.dsl.SigningConfigDsl_Decorated.getProperty(Unknown Source)
at com.android.build.gradle.AppPlugin$_apply_closure1.doCall(AppPlugin.groovy:102)
... 69 more
maybe it is an incompability with the android plugin... no idea :(
I use gradle 1.7
Hi,
not sure whether this is a valid report or what to do about it. I get:
The following dependencies have later milestone versions:
- org.springframework.data:spring-data-commons [1.7.0.RELEASE -> 1.7.0.RC1]
- org.springframework.data:spring-data-mongodb [1.4.0.RELEASE -> 1.4.0.RC1]
However, release obviously is a later milestone than release candidate.
I suddenly get lots of messages like
Error listing versions of org.apache.maven.wagon:wagon-webdav-jackrabbit:latest.milestone using class org.gradle.api.internal.artifacts.repositories.resolver.MavenVersionLister$1. Will attempt an alternate way to list versions. This behaviour has been deprecated and is scheduled to be removed in Gradle 2.0
I didn't have this problem before. It was introduced by the this (rather trivial) commit which looks OK to me.
Everything seems to be working fine beside those messages.
Here we go again:
Caused by: groovy.lang.MissingMethodException: No signature of method: org.gradle.api.internal.artifacts.ivyservice.ivyresolve.strategy.ResolverStrategy.getVersionMatcher() is applicable for argument types: () values: []
at com.github.benmanes.gradle.versions.updates.DependencyUpdates.getVersionComparator(DependencyUpdates.groovy:193)
I assume we have to use org.gradle.api.internal.artifacts.ivyservice.ivyresolve.strategy.StaticVersionComparator
now (https://code-review.gradle.org/changelog/Gradle?cs=87e3e0b5122b8a99d4db39790156a06c9752d2ef).
Do you have plans when to release the updated version?
I'd like to use your official release working with the current Gradle 1.10.
Thanks!
Environment:
./gradlew --version
------------------------------------------------------------
Gradle 1.12
------------------------------------------------------------
Build time: 2014-04-29 09:24:31 UTC
Build number: none
Revision: a831fa866d46cbee94e61a09af15f9dd95987421
Groovy: 1.8.6
Ant: Apache Ant(TM) version 1.9.3 compiled on December 23 2013
Ivy: 2.2.0
JVM: 1.7.0_40 (Oracle Corporation 24.0-b56)
OS: Mac OS X 10.9.4 x86_64
Stack trace:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':dependencyUpdates'.
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: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:289)
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.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:23)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:86)
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.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:166)
at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:113)
at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:81)
at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:64)
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:35)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)
at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:50)
at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:171)
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:46)
at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
at org.gradle.launcher.Main.main(Main.java:37)
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:23)
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:48)
Caused by: java.lang.NoClassDefFoundError: org/codehaus/groovy/runtime/typehandling/ShortTypeHandling
at com.github.benmanes.gradle.versions.reporter.result.Dependency.<init>(Dependency.groovy)
at com.github.benmanes.gradle.versions.updates.DependencyUpdatesReporter.buildDependency(DependencyUpdatesReporter.groovy:186)
at com.github.benmanes.gradle.versions.updates.DependencyUpdatesReporter$_buildCurrentGroup_closure2.doCall(DependencyUpdatesReporter.groovy:147)
at com.github.benmanes.gradle.versions.updates.DependencyUpdatesReporter.buildCurrentGroup(DependencyUpdatesReporter.groovy:146)
at com.github.benmanes.gradle.versions.updates.DependencyUpdatesReporter.buildBaseObject(DependencyUpdatesReporter.groovy:129)
at com.github.benmanes.gradle.versions.updates.DependencyUpdatesReporter.write(DependencyUpdatesReporter.groovy:69)
at com.github.benmanes.gradle.versions.updates.DependencyUpdatesReporter$write.call(Unknown Source)
at com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask.dependencyUpdates(DependencyUpdatesTask.groovy:45)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:63)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:219)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:212)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:201)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:533)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:516)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
... 46 more
Caused by: java.lang.ClassNotFoundException: org.codehaus.groovy.runtime.typehandling.ShortTypeHandling
... 62 more
This probably happened during the CodeNarc-related refactorings. DependencyUpdatesTask.outputFormatterProp()
returns a String now but it should return an Object.
There should be a way to have the dependencyUpdates
output only the dependencies for which newer versions are available.
I usually call the task for many projects in a loop and in that case, I don't care about up-to-date dependencies.
One way to solve this would be a command-line switch to include/exclude dependencies with a certain status from the list.
Another way I could think of would be a machine-readable output, e.g. no introductory lines like "The following dependencies..", one line per dependency, maybe starting with a +, a - oder a * depending on the status. I could easily filter the output using grep
or awk
then. A sample output could read:
*log4j:log4j,1.2.17,1.2.7
+commons-io:commons-io,2.3,2.4
-joda-time:joda-time,3.0,2.3
Parallel execution is an incubating feature.
:subproj1:dependencyUpdates
:subproj2:dependencyUpdates
:subproj3:dependencyUpdates
:subproj4:dependencyUpdates
:subproj5:dependencyUpdates
:subproj6:dependencyUpdates
:subproj7:dependencyUpdates
:subproj8:dependencyUpdates
------------------------------------------------------------
------------------------------------------------------------
:subproj3 Project Dependency Updates
:subproj4 Project Dependency Updates
------------------------------------------------------------
------------------------------------------------------------
The following dependencies are using the latest milestone version:
The following dependencies are using the latest milestone version:
- junit:junit:4.11
- junit:junit:4.11
- log4j:log4j:1.2.17
- org.mockito:mockito-all:1.9.5
- org.spockframework:spock-core:0.7-groovy-2.0
- log4j:log4j:1.2.17
------------------------------------------------------------
:subproj2 Project Dependency Updates
------------------------------------------------------------
The following dependencies are using the latest milestone version:
- org.mockito:mockito-all:1.9.5
- junit:junit:4.11
- log4j:log4j:1.2.17
- org.spockframework:spock-core:0.7-groovy-2.0
- org.mockito:mockito-all:1.9.5
The following dependencies have later milestone versions:
- org.spockframework:spock-core:0.7-groovy-2.0
The following dependencies have later milestone versions:
The following dependencies have later milestone versions:
- cglib:cglib-nodep [2.2 -> 3.1]
- org.codehaus.groovy:groovy-all [2.1.4 -> 2.2.1]
- org.slf4j:slf4j-log4j12 [1.5.8 -> 1.7.5]
- cglib:cglib-nodep [2.2 -> 3.1]
- org.springframework:spring-test [3.1.0.RELEASE -> 4.0.0.RC2]
- org.codehaus.groovy:groovy-all [2.1.4 -> 2.2.1]
- cglib:cglib-nodep [2.2 -> 3.1]
- com.google.guava:guava [14.0.1 -> 15.0]
- commons-lang:commons-lang [2.5 -> 2.6]
- org.codehaus.groovy:groovy-all [2.1.4 -> 2.2.1]
:subproj9:dependencyUpdates
- org.springframework:spring-test [3.1.0.RELEASE -> 4.0.0.RC2]
:subproj10:dependencyUpdates
:subproj11:dependencyUpdates
------------------------------------------------------------
:subproj7 Project Dependency Updates
------------------------------------------------------------
The following dependencies are using the latest milestone version:
- junit:junit:4.11
- log4j:log4j:1.2.17
- org.mockito:mockito-all:1.9.5
- org.spockframework:spock-core:0.7-groovy-2.0
The following dependencies have later milestone versions:
- cglib:cglib-nodep [2.2 -> 3.1]
- commons-io:commons-io [1.4 -> 2.4]
- org.bouncycastle:bcprov-jdk16 [1.45 -> 1.46]
- org.codehaus.groovy:groovy-all [2.1.4 -> 2.2.1]
:subproj12:LstAlertListener:dependencyUpdates
------------------------------------------------------------
:subproj6 Project Dependency Updates
------------------------------------------------------------
The following dependencies are using the latest milestone version:
- junit:junit:4.11
- log4j:log4j:1.2.17
- org.mockito:mockito-all:1.9.5
- org.spockframework:spock-core:0.7-groovy-2.0
The following dependencies have later milestone versions:
- cglib:cglib-nodep [2.2 -> 3.1]
- com.google.guava:guava [14.0.1 -> 15.0]
- com.thoughtworks.xstream:xstream [1.4.4 -> 1.4.5]
- dom4j:dom4j [1.6 -> 1.6.1]
- org.codehaus.groovy:groovy-all [2.1.4 -> 2.2.1]
- org.springframework:spring-test [3.1.0.RELEASE -> 4.0.0.RC2]
:subproj12:SendObjectStore:dependencyUpdates
------------------------------------------------------------
:subproj5 Project Dependency Updates
------------------------------------------------------------
The following dependencies are using the latest milestone version:
- junit:junit:4.11
- log4j:log4j:1.2.17
- org.mockito:mockito-all:1.9.5
- org.spockframework:spock-core:0.7-groovy-2.0
The following dependencies have later milestone versions:
- antlr:antlr [2.7.5 -> 2.7.7]
- cglib:cglib-nodep [2.2 -> 3.1]
- com.google.guava:guava [14.0.1 -> 15.0]
- org.codehaus.groovy:groovy-all [2.1.4 -> 2.2.1]
- org.snmp4j:snmp4j [1.9.1f -> 1.11.3]
------------------------------------------------------------
:subproj8 Project Dependency Updates
------------------------------------------------------------
The following dependencies are using the latest milestone version:
- commons-net:commons-net:3.3
- junit:junit:4.11
- log4j:log4j:1.2.17
- org.mockito:mockito-all:1.9.5
- org.spockframework:spock-core:0.7-groovy-2.0
The following dependencies have later milestone versions:
- cglib:cglib-nodep [2.2 -> 3.1]
- org.apache.httpcomponents:httpclient [4.2.5 -> 4.3.1]
- org.apache.httpcomponents:httpmime [4.2.5 -> 4.3.1]
- org.codehaus.groovy:groovy-all [2.1.4 -> 2.2.1]
- org.springframework:spring-test [3.1.0.RELEASE -> 4.0.0.RC2]
------------------------------------------------------------
:subproj11 Project Dependency Updates
------------------------------------------------------------
The following dependencies are using the latest milestone version:
------------------------------------------------------------
:subproj9 Project Dependency Updates
- junit:junit:4.11
------------------------------------------------------------
- log4j:log4j:1.2.17
- org.mockito:mockito-all:1.9.5
The following dependencies are using the latest milestone version:
- org.spockframework:spock-core:0.7-groovy-2.0
- junit:junit:4.11
The following dependencies have later milestone versions:
- log4j:log4j:1.2.17
- cglib:cglib-nodep [2.2 -> 3.1]
- org.mockito:mockito-all:1.9.5
- com.thoughtworks.xstream:xstream [1.4.4 -> 1.4.5]
- org.spockframework:spock-core:0.7-groovy-2.0
- org.codehaus.groovy:groovy-all [2.1.4 -> 2.2.1]
The following dependencies have later milestone versions:
- cglib:cglib-nodep [2.2 -> 3.1]
- dom4j:dom4j [1.6 -> 1.6.1]
- org.codehaus.groovy:groovy-all [2.1.4 -> 2.2.1]
- org.springframework:spring-test [3.1.0.RELEASE -> 4.0.0.RC2]
------------------------------------------------------------
:subproj12:LstAlertListener Project Dependency Updates
------------------------------------------------------------
The following dependencies are using the latest milestone version:
- commons-cli:commons-cli:1.2
- junit:junit:4.11
- log4j:log4j:1.2.17
- org.mockito:mockito-all:1.9.5
- org.spockframework:spock-core:0.7-groovy-2.0
The following dependencies have later milestone versions:
- cglib:cglib-nodep [2.2 -> 3.1]
- org.codehaus.groovy:groovy-all [2.1.4 -> 2.2.1]
------------------------------------------------------------
:subproj10 Project Dependency Updates
------------------------------------------------------------
The following dependencies are using the latest milestone version:
- junit:junit:4.11
------------------------------------------------------------
- log4j:log4j:1.2.17
:subproj1 Project Dependency Updates
- org.mockito:mockito-all:1.9.5
------------------------------------------------------------
- org.spockframework:spock-core:0.7-groovy-2.0
The following dependencies are using the latest milestone version:
- org.spockframework:spock-spring:0.7-groovy-2.0
- junit:junit:4.11
- log4j:log4j:1.2.17
------------------------------------------------------------
- net.sf.opencsv:opencsv:2.3
The following dependencies have later milestone versions:
- org.mockito:mockito-all:1.9.5
:subproj12:SendObjectStore Project Dependency Updates
- org.spockframework:spock-core:0.7-groovy-2.0
- cglib:cglib-nodep [2.2 -> 3.1]
- org.spockframework:spock-spring:0.7-groovy-2.0
------------------------------------------------------------
- com.google.guava:guava [14.0.1 -> 15.0]
The following dependencies have later milestone versions:
- org.codehaus.groovy:groovy-all [2.1.4 -> 2.2.1]
The following dependencies are using the latest milestone version:
- org.springframework:spring-test [3.1.0.RELEASE -> 4.0.0.RC2]
- commons-cli:commons-cli:1.2
- junit:junit:4.11
- cglib:cglib-nodep [2.2 -> 3.1]
- log4j:log4j:1.2.17
- com.google.guava:guava [14.0.1 -> 15.0]
- org.mockito:mockito-all:1.9.5
- com.thoughtworks.xstream:xstream [1.4.4 -> 1.4.5]
- org.spockframework:spock-core:0.7-groovy-2.0
- commons-codec:commons-codec [1.6 -> 1.8]
- commons-collections:commons-collections [3.2.1 -> 20040616]
The following dependencies have later milestone versions:
- commons-lang:commons-lang [2.5 -> 2.6]
- cglib:cglib-nodep [2.2 -> 3.1]
- commons-logging:commons-logging [1.1.1 -> 99.0-does-not-exist]
- org.codehaus.groovy:groovy-all [2.1.4 -> 2.2.1]
- jmdns:jmdns [0.2 -> 2.1.0]
- org.codehaus.groovy:groovy-all [2.1.4 -> 2.2.1]
- org.hibernate:hibernate-annotations [3.5.4-Final -> 3.5.6-Final]
- org.hibernate:hibernate-core [3.5.4-Final -> 4.3.0.CR2]
- org.hibernate:hibernate-envers [3.5.4-Final -> 4.3.0.CR2]
- org.hibernate.javax.persistence:hibernate-jpa-2.0-api [1.0.0.Final -> 1.0.1.Final]
- org.jasypt:jasypt [1.7 -> 1.9.1]
- org.springframework:spring-beans [3.1.0.RELEASE -> 4.0.0.RC2]
- org.springframework:spring-context [3.1.0.RELEASE -> 4.0.0.RC2]
- org.springframework:spring-core [3.1.0.RELEASE -> 4.0.0.RC2]
- org.springframework:spring-test [3.1.0.RELEASE -> 4.0.0.RC2]
BUILD SUCCESSFUL
Total time: 2.989 secs
Is there a way to get the plugin to ignore snapshot dependencies?
When I update to version 0.5, I got the "Unsupported major. minor version 51.0" error. The same project is running great at 0.5-beta-5.
Sorry to bother but is there any plan to support JDK 1.6 again because it's such a wide use still.
It would be nice to be able to disable the console output when saving results to a file, this is especially useful for CI systems which are also scanning the console output for warnings and we don't want to confuse the output.
If a subproject has no external dependencies (i.e. only depends on sibling modules within the same multi-project build), the report says:
All dependencies have later versions.
All dependencies are using the latest milestone versions.
We probably want to exit early if there are no external module dependencies at all.
The readme points to https://github.com/ben-manes/gradle-versions-plugin/raw/mvnrepo, but that doesn't work.
The plugin appears to be incompatible with Gradle 2.4. When I run "gradle dU" I get the following output:
java.lang.String cannot be cast to org.gradle.api.internal.artifacts.ivyservice.ivyresolve.strategy.Version
* What went wrong:
Execution failed for task ':dependencyUpdates'.
> java.lang.ClassNotFoundException: org.gradle.api.internal.artifacts.version.LatestVersionSemanticComparator
I use +
for the patch version. This leads to following output
The following dependencies exceed the version found at the milestone revision level:
- ch.qos.logback:logback-classic [1.0.+ <- 1.0.9]
I think +
should always be interpreted as the latest version, shouldn't it?
This plugin not work wit h java8
LatestVersionSemanticComparator
was removed from the Gradle code-base in gradle/gradle@123a5dd.
As the versions plugin uses that class, it will no longer run with newer Gradle versions.
I would appreciate it if there was a changelog of the updates between each version. Just a brief way to know what's changed.
Hi @ben-manes
Are there any examples/docs how to configure Jenkins or Sonar to use reports?
Thanks a lot.
It looks like Java 6 compatibility was dropped. Is that on purpose? Could it be reverted?
See https://travis-ci.org/airbnb/plog/builds/35919650 for a Travis build that failed due to the versions plugin.
Run dependencyUpdate task from the root of a multi-project build, where the plugin is applied to both the root and all sub projects.
The console output correctly captures all projects, however each project writes to build/dependencyUpdates/report.txt
, and when I look at that file, it only contains the report for the root project, none of the subs.
I am running with org.gradle.parallel=true
See #26.
A new detached configuration is created to resolve the latest dependencies. This will lead to ResolutionStrategy configurations on the original configuration(s) being ignored.
Hi,my problem is that when using the version plugin and the grunt plugin like this:
apply plugin: 'versions'
apply plugin: 'grunt' // and grunt_tasks. implies node plugin
buildscript {
repositories {
jcenter() // bintray jcenter faster than mavenCentral
maven { url 'http://dl.bintray.com/robfletcher/gradle-plugins' }
}
dependencies {
classpath 'com.moowork.gradle:gradle-grunt-plugin:0.5'
}
}
node {
version = '0.10.20'
download = true
workDir = file("${projectDir}/nodejs") // Set the work directory for unpacking node
}
then the dependencyUpdates Task takes an eternity because the each dependency is tried 100 times against the nodejs repo:
$ gradle dependencyUpdates --info
Task has not declared any outputs.
Resolving with repositories:
- BintrayJCenter: http://jcenter.bintray.com/
...
- ivy: http://nodejs.org/dist
Resource missing. [HTTP GET: http://nodejs.org/dist/v0.11.13/ivy.xml]
Resource missing. [HTTP HEAD: http://nodejs.org/dist/v0.11.13/powermock-classloading-xstream.jar]
Resource missing. [HTTP GET: http://nodejs.org/dist/v0.11.12/ivy.xml]
Resource missing. [HTTP HEAD: http://nodejs.org/dist/v0.11.12/powermock-classloading-xstream.jar]
Resource missing. [HTTP GET: http://nodejs.org/dist/v0.11.11/ivy.xml]
Resource missing. [HTTP HEAD: http://nodejs.org/dist/v0.11.11/powermock-classloading-xstream.jar]
Resource missing. [HTTP GET: http://nodejs.org/dist/v0.11.10/ivy.xml]
Resource missing. [HTTP HEAD: http://nodejs.org/dist/v0.11.10/powermock-classloading-xstream.jar]
Resource missing. [HTTP GET: http://nodejs.org/dist/v0.11.9/ivy.xml]
Resource missing. [HTTP HEAD: http://nodejs.org/dist/v0.11.9/powermock-classloading-xstream.jar]
Resource missing. [HTTP GET: http://nodejs.org/dist/v0.11.8/ivy.xml]
Resource missing. [HTTP HEAD: http://nodejs.org/dist/v0.11.8/powermock-classloading-xstream.jar]
Resource missing. [HTTP GET: http://nodejs.org/dist/v0.11.7/ivy.xml]
Resource missing. [HTTP HEAD: http://nodejs.org/dist/v0.11.7/powermock-classloading-xstream.jar]
Resource missing. [HTTP GET: http://nodejs.org/dist/v0.11.6/ivy.xml]
Resource missing. [HTTP HEAD: http://nodejs.org/dist/v0.11.6/powermock-classloading-xstream.jar]
Resource missing. [HTTP GET: http://nodejs.org/dist/v0.11.5/ivy.xml]
Resource missing. [HTTP HEAD: http://nodejs.org/dist/v0.11.5/powermock-classloading-xstream.jar]
Resource missing. [HTTP GET: http://nodejs.org/dist/v0.11.4/ivy.xml]
Resource missing. [HTTP HEAD: http://nodejs.org/dist/v0.11.4/powermock-classloading-xstream.jar]
Resource missing. [HTTP GET: http://nodejs.org/dist/v0.11.3/ivy.xml]
...
Not sure how this can best be prevented. The repo is actually added in the gradle_node_plugin:
https://github.com/srs/gradle-node-plugin/blob/master/src/main/groovy/com/moowork/gradle/node/NodePlugin.groovy
I use +
for the patch version. This leads to following output
The following dependencies exceed the version found at the milestone revision level:
- ch.qos.logback:logback-classic [1.0.+ <- 1.0.9]
I think +
should always be interpreted as the latest version, shouldn't it?
Local AAR packages cause NullPointerException:
repositories {
jcenter()
flatDir {
dirs 'libs'
}
}
dependencies {
compile(name: 'facebook-api-android-aar', ext :'aar')
compile(name: 'SlidingMenu-aar-1.3', ext :'aar')
}
I have a question about exceeding version.
According to the Java Version String Naming convension the underscore is used to indicate an update release, and the dash is used to indicate a non-GA-relase, so as I understand it, a version that only contain an underscore but not a dash is still a GA-release.
I have an component that have the version 1.8.9_build9, but in the repository there is an older version 1.8.8_build8. When running gradle dependencyUpdates I get this message:
The following dependencies exceed the version found at the milestone revision level:
What exactly does this mean? Is that correct? Shall this not only be reported for non-GA-releases?
Running with:
dependencies {
classpath 'com.github.ben-manes:gradle-versions-plugin:0.8'
classpath 'org.codehaus.groovy:groovy-backports-compat23:2.3.5'
}
Results with:
java.lang.ClassNotFoundException: org.gradle.api.internal.artifacts.ivyservice.ivyresolve.strategy.StaticVersionComparator
(StaticVersionComparator does not exist in Gradle 1.x)
Downgrading to 0.7 it works fine.
And again, the version comparator internals have changed:
Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to org.gradle.api.internal.artifacts.ivyservice.ivyresolve.strategy.Version
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.strategy.StaticVersionComparator.compare(StaticVersionComparator.java:25)
at java_util_Comparator$compare.call(Unknown Source)
at com.github.benmanes.gradle.versions.updates.DependencyUpdates$_composeVersionMapping_closure13.doCall(DependencyUpdates.groovy:178)
Ever since I decoupled the projects on my Gradle build I've had this problem pop up with dependencyUpdates
:
* What went wrong:
Execution failed for task ':dependencyUpdates'.
> java.lang.NullPointerException (no error message)
* Try:
Run with --info or --debug option to get more log output.
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':dependencyUpdates'.
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: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:310)
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.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:23)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:88)
at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)
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:90)
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:41)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28)
at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:50)
at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:27)
at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:40)
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: java.lang.NullPointerException
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.strategy.VersionParser.transform(VersionParser.java:33)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.strategy.DefaultVersionComparator$1.compare(DefaultVersionComparator.java:28)
at com.github.benmanes.gradle.versions.updates.DependencyUpdates$_composeVersionMapping_closure13.doCall(DependencyUpdates.groovy:172)
at com.github.benmanes.gradle.versions.updates.DependencyUpdates.composeVersionMapping(DependencyUpdates.groovy:166)
at com.github.benmanes.gradle.versions.updates.DependencyUpdates.this$2$composeVersionMapping(DependencyUpdates.groovy)
at com.github.benmanes.gradle.versions.updates.DependencyUpdates$this$2$composeVersionMapping$2.callCurrent(Unknown Source)
at com.github.benmanes.gradle.versions.updates.DependencyUpdates.run(DependencyUpdates.groovy:70)
at com.github.benmanes.gradle.versions.updates.DependencyUpdates$run.call(Unknown Source)
at com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask.dependencyUpdates(DependencyUpdatesTask.groovy:48)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:226)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:219)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:208)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:589)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:572)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
... 46 more
This seems to pop up when it checks JARs for newer versions.
The main difference before decoupling and after is that I got rid of allprojects
adding the repositories {}
block automatically to all projects. I'm fully willing to admit that maybe my project structure is a bit wonky now, but it feels like this ought to still work (since the project still builds).
I'm using plugin version 0.9 at the moment and have reproduced on Gradle 2.3 and 2.4.
I found out what was the cause for the unresolved dependencies.
I applied the 'versions' plugin to the root project of a multi-module build and I didn't specify any repositories in the root project. Instead, I defined the repositories {} in subprojects {}.
The fix was to define repositories {} inside allprojects {} instead.
It would be nice if the plugin would show a nice error message in such a case.
Finding the solution was a bit tricky without it...
Thanks for your previous fast fix and also for this awesome plugin!
Even though -Drevision=release is specified, dependencyUpdates suggest upgrading to other versions.
For example:
Specifying it in the gradle file doesn't help either:
dependencyUpdates {
revision 'release'
}
(Using gradle-versions-plugin 0.8 on gradle 2.3)
Add @kellyrob99 dependency analyze task to detect unused dependencies. It needs to be cleaned up and updated to reflect the latest version of Gradle.
0.5-beta-5 works for me but on 0.5-beta-6 I get the following stacktrace:
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':dependencyUpdates'.
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: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:289)
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.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:23)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:86)
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.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:166)
at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:113)
at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:81)
at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:64)
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:35)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)
at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:50)
at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:171)
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:46)
at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
at org.gradle.launcher.Main.main(Main.java:37)
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:23)
at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:30)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:127)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:58)
Caused by: java.lang.NoClassDefFoundError: org/codehaus/groovy/runtime/typehandling/ShortTypeHandling
at com.github.benmanes.gradle.versions.reporter.result.Dependency.<init>(Dependency.groovy)
at com.github.benmanes.gradle.versions.updates.DependencyUpdatesReporter.buildDependency(DependencyUpdatesReporter.groovy:186)
at com.github.benmanes.gradle.versions.updates.DependencyUpdatesReporter$_buildCurrentGroup_closure2.doCall(DependencyUpdatesReporter.groovy:147)
at com.github.benmanes.gradle.versions.updates.DependencyUpdatesReporter.buildCurrentGroup(DependencyUpdatesReporter.groovy:146)
at com.github.benmanes.gradle.versions.updates.DependencyUpdatesReporter.buildBaseObject(DependencyUpdatesReporter.groovy:129)
at com.github.benmanes.gradle.versions.updates.DependencyUpdatesReporter.write(DependencyUpdatesReporter.groovy:69)
at com.github.benmanes.gradle.versions.updates.DependencyUpdatesReporter$write.call(Unknown Source)
at com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask.dependencyUpdates(DependencyUpdatesTask.groovy:45)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:63)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:219)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:212)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:201)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:533)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:516)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
... 46 more
Caused by: java.lang.ClassNotFoundException: org.codehaus.groovy.runtime.typehandling.ShortTypeHandling
... 62 more
Currently, the 0.3
version of the plugin appears to incorrectly report that spring-context
and spring-test
3.2.2.RELEASE
exceed the version found at both the milestone
and release
levels (which it claims is 3.1.4.RELEASE
).
The following dependencies are using the newest release version:
- ch.qos.logback:logback-classic:1.0.13
- com.github.ben-manes:gradle-versions-plugin:0.3
- commons-cli:commons-cli:1.2
- jaxen:jaxen:1.1.4
- junit:junit:4.11
- org.asciidoctor:asciidoctor-gradle-plugin:0.3.0
- org.jacoco:org.jacoco.agent:0.6.2.201302030002
- org.jdom:jdom:2.0.2
- org.mockito:mockito-core:1.9.5
- org.slf4j:jcl-over-slf4j:1.7.5
- org.slf4j:slf4j-api:1.7.5
- org.slf4j:slf4j-simple:1.7.5
- org.springframework:spring-core:3.2.2.RELEASE
- org.springframework.build:aws-maven:4.7.0.RELEASE
The following dependencies exceed the version found at the release revision level:
- org.springframework:spring-context [3.2.2.RELEASE <- 3.1.4.RELEASE]
- org.springframework:spring-test [3.2.2.RELEASE <- 3.1.4.RELEASE]
All dependencies are using the latest release versions.
BUILD SUCCESSFUL
Notice that it correctly lists the version for spring-core
and Maven Central reports 3.2.2.RELEASE
as the latest version of both spring-context
and spring-test
.
I'm not clear what criteria and metadata the plugin uses to properly determine the latest versions, so please let me know if the problem is in Spring's metadata versus the plugin and I can have that fixed. Thanks.
I tried to use the plugin on a multi module project, but I keep getting the error message
Task 'dependencyUpdates' not found in root project 'degraph'.
degraph being the project I'm trying to use it on.
The complete setup is on github: https://github.com/schauder/degraph/tree/versions-plugin-problem
I just updated AS and now I get this build error:
Error:(27, 0) Cause: com/github/benmanes/gradle/versions/VersionsPlugin : Unsupported major.minor version 51.0
I want to keep some revisions on their major releases, but want to upgrade if there is a new minor release. One example is tomcat 8.0.x, which is still a beta product -- I want to stay at 7.x.x.
So maybe a -Drevision=minor could support this?
I develop library and use plugin inside it.
I found that plugin add task into hierarchy into wrong location. Take a look on image.
:samples
- is a sub-directory, it does not have any active tasks. Why plugin add own task into it?
bindint-tc
- is a root of the project, I also believe that dependecyUpdates
should not be there.
So is it possible to fix?
I get a NPE when checking for dependency updates, and I can't seem to find the reason in the debug/stacktrace log.
10:52:38.778 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':dependencyUpdates'
10:52:38.778 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :dependencyUpdates FAILED
10:52:38.782 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :dependencyUpdates (Thread[main,5,main]) completed. Took 2 mins 48.067 secs.
10:52:38.782 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[main,5,main]] finished, busy: 2 mins 48.067 secs, idle: 0.0 secs
10:52:38.785 [ERROR] [org.gradle.BuildExceptionReporter]
10:52:38.786 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
10:52:38.786 [ERROR] [org.gradle.BuildExceptionReporter]
10:52:38.786 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
10:52:38.786 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':dependencyUpdates'.
10:52:38.787 [ERROR] [org.gradle.BuildExceptionReporter] > java.lang.NullPointerException (no error message)
10:52:38.788 [ERROR] [org.gradle.BuildExceptionReporter]
10:52:38.788 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is:
10:52:38.788 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':dependencyUpdates'.
10:52:38.789 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
10:52:38.789 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
10:52:38.789 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
10:52:38.789 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)
10:52:38.789 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
10:52:38.789 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42)
10:52:38.789 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
10:52:38.789 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
10:52:38.790 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
10:52:38.790 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:289)
10:52:38.790 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.executeTask(AbstractTaskPlanExecutor.java:79)
10:52:38.790 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:63)
10:52:38.790 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:51)
10:52:38.790 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$1.run(DefaultTaskPlanExecutor.java:33)
10:52:38.790 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.Factories$1.create(Factories.java:22)
10:52:38.791 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(DefaultCacheAccess.java:198)
10:52:38.791 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(DefaultCacheAccess.java:266)
10:52:38.791 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.cache.internal.DefaultPersistentDirectoryStore.longRunningOperation(DefaultPersistentDirectoryStore.java:135)
10:52:38.791 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.changedetection.state.DefaultTaskArtifactStateCacheAccess.longRunningOperation(DefaultTaskArtifactStateCacheAccess.java:95)
10:52:38.791 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:31)
10:52:38.791 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:86)
10:52:38.791 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:29)
10:52:38.792 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61)
10:52:38.792 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23)
10:52:38.792 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:67)
10:52:38.792 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
10:52:38.792 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61)
10:52:38.792 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:54)
10:52:38.792 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:166)
10:52:38.792 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:113)
10:52:38.793 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:81)
10:52:38.793 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:64)
10:52:38.793 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:33)
10:52:38.793 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:24)
10:52:38.793 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:35)
10:52:38.793 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)
10:52:38.793 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:50)
10:52:38.793 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:171)
10:52:38.793 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:201)
10:52:38.793 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:174)
10:52:38.794 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:170)
10:52:38.794 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:139)
10:52:38.794 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
10:52:38.794 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
10:52:38.794 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.Main.doAction(Main.java:46)
10:52:38.794 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
10:52:38.794 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.Main.main(Main.java:37)
10:52:38.794 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:50)
10:52:38.794 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:32)
10:52:38.794 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
10:52:38.794 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:33)
10:52:38.794 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:130)
10:52:38.794 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48)
10:52:38.794 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.lang.NullPointerException
10:52:38.795 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.strategy.ExactVersionMatcher.compare(ExactVersionMatcher.java:66)
10:52:38.795 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.strategy.ChainVersionMatcher.compare(ChainVersionMatcher.java:52)
10:52:38.795 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.strategy.VersionMatcher$compare.call(Unknown Source)
10:52:38.795 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.strategy.VersionMatcher$compare.call(Unknown Source)
10:52:38.795 [ERROR] [org.gradle.BuildExceptionReporter] at com.github.benmanes.gradle.versions.updates.DependencyUpdates$_composeVersionMapping_closure11.doCall(DependencyUpdates.groovy:131)
10:52:38.795 [ERROR] [org.gradle.BuildExceptionReporter] at com.github.benmanes.gradle.versions.updates.DependencyUpdates.composeVersionMapping(DependencyUpdates.groovy:127)
10:52:38.795 [ERROR] [org.gradle.BuildExceptionReporter] at com.github.benmanes.gradle.versions.updates.DependencyUpdates.this$2$composeVersionMapping(DependencyUpdates.groovy)
10:52:38.795 [ERROR] [org.gradle.BuildExceptionReporter] at com.github.benmanes.gradle.versions.updates.DependencyUpdates$this$2$composeVersionMapping.callCurrent(Unknown Source)
10:52:38.795 [ERROR] [org.gradle.BuildExceptionReporter] at com.github.benmanes.gradle.versions.updates.DependencyUpdates.run(DependencyUpdates.groovy:51)
10:52:38.795 [ERROR] [org.gradle.BuildExceptionReporter] at com.github.benmanes.gradle.versions.updates.DependencyUpdates$run.call(Unknown Source)
10:52:38.795 [ERROR] [org.gradle.BuildExceptionReporter] at com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask.dependencyUpdates(DependencyUpdatesTask.groovy:40)
10:52:38.795 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:63)
10:52:38.795 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:219)
10:52:38.795 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:212)
10:52:38.795 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:201)
10:52:38.796 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:533)
10:52:38.796 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:516)
10:52:38.796 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
10:52:38.796 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
10:52:38.796 [ERROR] [org.gradle.BuildExceptionReporter] ... 52 more
10:52:38.796 [ERROR] [org.gradle.BuildExceptionReporter]
10:52:38.796 [LIFECYCLE] [org.gradle.BuildResultLogger]
10:52:38.796 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED
10:52:38.796 [LIFECYCLE] [org.gradle.BuildResultLogger]
10:52:38.796 [LIFECYCLE] [org.gradle.BuildResultLogger] Total time: 2 mins 59.711 secs
In the same way maven plugin can be run on a single line :
mvn org.codehaus.mojo:versions-maven-plugin:2.1:display-dependency-updates
There should also be a way to do it with gradle without changing our own build.gradle file.
I find such a change inadequate, coming from maven world.
Good job, btw. ;)
I just switched our Android project over to Gradle and have been learning the ropes. We define a few gradle plugins in our buildscript dependencies:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.0'
classpath 'com.github.jcandksolutions.gradle:android-unit-test:2.1.1'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.7'
classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.12.0'
}
}
It would be super cool if this plugin could discover updates for these dependencies in addition to the module dependencies. Is this possible?
Hi,
I wanted to install version 0.9 as shown in your README. But I only can find 0.4 in Maven Central and no package in jcenter repository
I get the following exception while executing dependencyUpdates with com.github.ben-manes:gradle-versions-plugin:0.1:
Caused by: groovy.lang.MissingPropertyException: No such property: group for class: org.gradle.api.internal.artifacts.ivyservice.DefaultUnresolvedDependency
at com.github.benmanes.gradle.versions.DependencyUpdates.compareKeys(DependencyUpdates.groovy:177)
at com.github.benmanes.gradle.versions.DependencyUpdates$_displayUnresolved_closure14.doCall(DependencyUpdates.groovy:167)
at com.github.benmanes.gradle.versions.DependencyUpdates.displayUnresolved(DependencyUpdates.groovy:166)
at com.github.benmanes.gradle.versions.DependencyUpdates$displayUnresolved.callCurrent(Unknown Source)
at com.github.benmanes.gradle.versions.DependencyUpdates.displayReport(DependencyUpdates.groovy:115)
at com.github.benmanes.gradle.versions.DependencyUpdates$displayReport.callCurrent(Unknown Source)
at com.github.benmanes.gradle.versions.DependencyUpdates.dependencyUpdates(DependencyUpdates.groovy:49)
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 com.github.benmanes.gradle.versions.DependencyUpdates_Decorated.invokeMethod(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)
... 57 more
------------------------------------------------------------
Gradle 1.3
------------------------------------------------------------
Gradle build time: Dienstag, 20. November 2012 11:37 Uhr UTC
Groovy: 1.8.6
Ant: Apache Ant(TM) version 1.8.4 compiled on May 22 2012
Ivy: 2.2.0
JVM: 1.7.0_07 (Oracle Corporation 23.3-b01)
OS: Mac OS X 10.8.2 x86_64
I have several gradle projects. They all contain this snippet in their build.gradle
file:
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.github.ben-manes:gradle-versions-plugin:0.7'
}
}
apply plugin: 'com.github.ben-manes.versions'
This works as expected but I don't like the duplication. They all share a parent project. Now if I move this snippet to the parent project build.gradle and put it inside
subprojects {
}
and then run ./gradlew dependencyUpdates
from the subproject, I get an error message:
> Failed to apply plugin [id 'com.github.ben-manes.versions']
> Plugin with id 'com.github.ben-manes.versions' not found.
What am I doing wrong or is this an issue with the versions plugin?
Currently, when running a build with gradle-versions-plugin:0.3
the warning message about TaskContainer.add()
being deprecated is generated. Please update the plugin to take this new deprecation into account:
[bhale-desktop master]: g -Dorg.gradle.deprecation.trace=true dist
The TaskContainer.add() method has been deprecated and is scheduled to be removed in Gradle 2.0. Please use the create() method instead.
org.gradle.util.SingleMessageLogger.logTraceIfNecessary(SingleMessageLogger.java:183)
org.gradle.util.SingleMessageLogger.nagUserWith(SingleMessageLogger.java:140)
org.gradle.util.SingleMessageLogger.nagUserOfReplacedMethod(SingleMessageLogger.java:102)
org.gradle.api.internal.tasks.DefaultTaskContainer.add(DefaultTaskContainer.java:90)
org.gradle.api.tasks.TaskContainer$add.call(Unknown Source)
com.github.benmanes.gradle.versions.VersionsPlugin.apply(VersionsPlugin.groovy:30)
com.github.benmanes.gradle.versions.VersionsPlugin.apply(VersionsPlugin.groovy)
org.gradle.api.internal.plugins.DefaultPluginContainer.providePlugin(DefaultPluginContainer.java:107)
...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.