Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest version is not in the repository #15

Closed
tprochazka opened this issue Dec 18, 2018 · 3 comments
Closed

Latest version is not in the repository #15

tprochazka opened this issue Dec 18, 2018 · 3 comments

Comments

@tprochazka
Copy link

According to the readme, the latest version is 0.2.7, but in the official Gradle plugin repository is just 0.2.3.

https://plugins.gradle.org/m2/gradle/plugin/se/patrikerdes/gradle-use-latest-versions-plugin/

Btw. Thanks for great plugin!

@usr42
Copy link
Contributor

usr42 commented Feb 18, 2019

The newer versions can be found here:
https://plugins.gradle.org/m2/se/patrikerdes/gradle-use-latest-versions-plugin/

How to use it in gradle see: https://plugins.gradle.org/plugin/se.patrikerdes.use-latest-versions

I use it with the plugin DSL and it's working for me:

plugins {
    id 'se.patrikerdes.use-latest-versions' version '0.2.7'
}

@patrikerdes
Copy link
Owner

I can confirm that the plugin format works, and that the buildscript one does not

# .\gradlew.bat useLatestVersions
...
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'publishedReadmeExample'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not find gradle.plugin.se.patrikerdes:gradle-use-latest-versions-plugin:0.2.7.
     Searched in the following locations:
         https://plugins.gradle.org/m2/gradle/plugin/se/patrikerdes/gradle-use-latest-versions-plugin/0.2.7/gradle-use-latest-versions-plugin-0.2.7.pom
         https://plugins.gradle.org/m2/gradle/plugin/se/patrikerdes/gradle-use-latest-versions-plugin/0.2.7/gradle-use-latest-versions-plugin-0.2.7.jar
         https://jcenter.bintray.com/gradle/plugin/se/patrikerdes/gradle-use-latest-versions-plugin/0.2.7/gradle-use-latest-versions-plugin-0.2.7.pom
         https://jcenter.bintray.com/gradle/plugin/se/patrikerdes/gradle-use-latest-versions-plugin/0.2.7/gradle-use-latest-versions-plugin-0.2.7.jar
     Required by:
         project :

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 11s

I'm using the com.gradle.plugin-publish plugin version 0.10.0 to publish the plugin. I'm not sure why it uploads to the wrong place.

Help wanted.

@patrikerdes
Copy link
Owner

So, apparently things have changed at some point in time, the instructions for buildscript in the README are incorrect. When following the instructions on this page it works https://plugins.gradle.org/plugin/se.patrikerdes.use-latest-versions

I'll update the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants