tbroyer/gradle-errorprone-plugin-v0.0.x

Cannot fetch latest version via gradle-versions-plugin

jbduncan opened this issue · 4 comments

Context

When I apply the gradle-versions-plugin to a simple Gradle project which already applies gradle-errorprone-plugin and then I run ./gradlew dependencyUpdates, it does not accurately show the latest version of gradle-errorprone-plugin that the project can update to. It shows the latest version as 0.6, rather than 0.10 as expected.

From what I can tell, this issue may be related in some way to issue tbroyer/gradle-errorprone-plugin#48.

How to reproduce

  1. Clone https://github.com/jbduncan/dependency-updates-test into a local directory.
  2. Run ./gradlew dependencyUpdates (UNIX) or gradlew.bat dependencyUpdates (Windows) at the root of the newly cloned project from the terminal.

Expected output

:dependencyUpdates

------------------------------------------------------------
: Project Dependency Updates (report to plain text file)
------------------------------------------------------------

The following dependencies are using the latest milestone version:
 - com.github.ben-manes:gradle-versions-plugin:0.15.0

The following dependencies have later milestone versions:
 - com.google.auto.value:auto-value [1.4 -> 1.4.1]
 - com.google.errorprone:error_prone_core [2.0.19 -> 2.0.21]
 - com.google.guava:guava [21.0 -> 23.0-rc1]
 - net.ltgt.gradle:gradle-apt-plugin [0.9 -> 0.10]
 - net.ltgt.gradle:gradle-errorprone-plugin [0.0.10 -> 0.0.11]

...

Actual output

$ ./gradlew dependencyUpdates
:dependencyUpdates

------------------------------------------------------------
: Project Dependency Updates (report to plain text file)
------------------------------------------------------------

The following dependencies are using the latest milestone version:
 - com.github.ben-manes:gradle-versions-plugin:0.15.0

The following dependencies exceed the version found at the milestone revision level:
 - net.ltgt.gradle:gradle-errorprone-plugin [0.0.10 <- 0.0.6]

The following dependencies have later milestone versions:
 - com.google.auto.value:auto-value [1.4 -> 1.4.1]
 - com.google.errorprone:error_prone_core [2.0.19 -> 2.0.21]
 - com.google.guava:guava [21.0 -> 23.0-rc1]

Failed to determine the latest version for the following dependencies (use --info for details):
 - net.ltgt.gradle:gradle-apt-plugin

Generated report file C:\Users\Jonathan\dev\Java\IntelliJ Projects\dependency-updates-test\build/dependencyUpdates\report.txt

BUILD SUCCESSFUL in 2s
1 actionable task: 1 executed

Gradle version information

$ ./gradlew --version
------------------------------------------------------------
Gradle 4.0.2
------------------------------------------------------------

Build time:   2017-07-26 15:04:56 UTC
Revision:     108c593aa7b43852f39045337ee84ee1d87c87fd

Groovy:       2.4.11
Ant:          Apache Ant(TM) version 1.9.6 compiled on June 29 2015
JVM:          1.8.0_121 (Oracle Corporation 25.121-b13)
OS:           Windows 7 6.1 amd64

Thanks @JakeWharton, I'll report it to gradle-versions-plugin as well to see if it can be fixed on their side.

@JakeWharton Its a bug in the Gradle Plugin Portal, which is not a proper Maven repository.

Thanks @ben-manes!

I'm closing this issue for the same reason as tbroyer/gradle-apt-plugin#56 then. :)