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

jgit dependency problem #242

Closed
paleozogt opened this issue Jun 21, 2018 · 2 comments
Closed

jgit dependency problem #242

paleozogt opened this issue Jun 21, 2018 · 2 comments

Comments

@paleozogt
Copy link

With this build.gralde:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'org.ajoberstar:grgit:2.0.1'
    }
}

I get this error:

➜  gradle-bug ./gradlew tasks                                                                                                                                                                    

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'gradle-bug'.
> Could not resolve all files for configuration ':classpath'.
   > Could not resolve org.eclipse.jgit:org.eclipse.jgit:[4.8.0.201706111038-r,).
     Required by:
         project : > org.ajoberstar:grgit:2.0.1
      > Could not resolve org.eclipse.jgit:org.eclipse.jgit:5.0.0.201806131550-r.
         > Could not parse POM https://jcenter.bintray.com/org/eclipse/jgit/org.eclipse.jgit/5.0.0.201806131550-r/org.eclipse.jgit-5.0.0.201806131550-r.pom
            > Could not find org.eclipse.jgit:org.eclipse.jgit-parent:5.0.0.201806131550-r.
              Searched in the following locations:
                  https://jcenter.bintray.com/org/eclipse/jgit/org.eclipse.jgit-parent/5.0.0.201806131550-r/org.eclipse.jgit-parent-5.0.0.201806131550-r.pom
                  https://jcenter.bintray.com/org/eclipse/jgit/org.eclipse.jgit-parent/5.0.0.201806131550-r/org.eclipse.jgit-parent-5.0.0.201806131550-r.jar
   > Could not resolve org.eclipse.jgit:org.eclipse.jgit.ui:[4.8.0.201706111038-r,).
     Required by:
         project : > org.ajoberstar:grgit:2.0.1
      > Could not resolve org.eclipse.jgit:org.eclipse.jgit.ui:5.0.0.201806131550-r.
         > Could not parse POM https://jcenter.bintray.com/org/eclipse/jgit/org.eclipse.jgit.ui/5.0.0.201806131550-r/org.eclipse.jgit.ui-5.0.0.201806131550-r.pom
            > Could not find org.eclipse.jgit:org.eclipse.jgit-parent:5.0.0.201806131550-r.

* 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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
See https://docs.gradle.org/4.5.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 1s

Trying the jgit-parent pom url:

wget https://jcenter.bintray.com/org/eclipse/jgit/org.eclipse.jgit-parent/5.0.0.201806131550-r/org.eclipse.jgit-parent-5.0.0.201806131550-r.pom
--2018-06-21 08:44:55--  https://jcenter.bintray.com/org/eclipse/jgit/org.eclipse.jgit-parent/5.0.0.201806131550-r/org.eclipse.jgit-parent-5.0.0.201806131550-r.pom
Resolving jcenter.bintray.com (jcenter.bintray.com)... 108.168.243.150
Connecting to jcenter.bintray.com (jcenter.bintray.com)|108.168.243.150|:443... connected.
HTTP request sent, awaiting response... 302 
Location: https://repo.jfrog.org/artifactory/libs-release-bintray/org/eclipse/jgit/org.eclipse.jgit-parent/5.0.0.201806131550-r/org.eclipse.jgit-parent-5.0.0.201806131550-r.pom?referrer [following]
--2018-06-21 08:44:56--  https://repo.jfrog.org/artifactory/libs-release-bintray/org/eclipse/jgit/org.eclipse.jgit-parent/5.0.0.201806131550-r/org.eclipse.jgit-parent-5.0.0.201806131550-r.pom?referrer
Resolving repo.jfrog.org (repo.jfrog.org)... 54.152.221.237, 34.226.44.194
Connecting to repo.jfrog.org (repo.jfrog.org)|54.152.221.237|:443... connected.
HTTP request sent, awaiting response... 404 
2018-06-21 08:44:56 ERROR 404: (no description).

This was working until just a few days ago. Any idea what happened?

@ajoberstar
Copy link
Owner

I would suggest moving to grgit 2.2.1 which leverages static dependencies and stays on JGit 4.11. JGit 5 support will be added in #233.

See #229 for details on what causes the general issue here.

@ajoberstar
Copy link
Owner

Closing under the assumption this is resolved. If that's not true and you want to discuss further, please reopen.

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

2 participants