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

Gradle: Specify version of JUnit to avoid unreproducible builds #47

Closed
wants to merge 1 commit into from

Commits on Jan 7, 2014

  1. Gradle: Specify version of JUnit to avoid unreproducible builds

    Another reason for this change is that it stops Gradle from making
    unnecessary trips to the network to verify if it has the latest version
    of JUnit. ie, on my laptop, even after many successful builds, it was
    still possible to get this error if disconnected from the internet:
    
    --
    $ gradle test
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Could not resolve all dependencies for configuration ':core:testCompile'.
    > Could not resolve junit:junit:4.+.
      Required by:
          spongycastle:core:1.50-b01
       > Failed to list versions for junit:junit:4.+.
          > Could not list versions using M2 pattern 'http://repo1.maven.org/maven2/[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]'.
             > Could not GET 'http://repo1.maven.org/maven2/junit/junit/'.
                > repo1.maven.org
    --
    rtyley committed Jan 7, 2014
    Configuration menu
    Copy the full SHA
    c6f3523 View commit details
    Browse the repository at this point in the history