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 build on a clean repository checkout fails #896

Closed
1 task done
cpiotr opened this issue Apr 26, 2023 · 0 comments
Closed
1 task done

Gradle build on a clean repository checkout fails #896

cpiotr opened this issue Apr 26, 2023 · 0 comments

Comments

@cpiotr
Copy link
Contributor

cpiotr commented Apr 26, 2023

Defect

It is currently impossible to build the project on a clean repository checkout.

Make sure that these boxes are checked before submitting your issue -- thank you!

Versions of io.nats:jnats and nats-server:

n/a

OS/Container environment:

n/a

Steps or code to reproduce the issue:

  • Clone the repository on a new host (where plugins are not cached locally)
git clone git@github.com:nats-io/nats.java.git
cd nats.java
  • Build the project
./gradlew clean build -x test

Expected result:

A successful build run:

BUILD SUCCESSFUL in 6s

Actual result:

Build fails with the following error:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'java-nats'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not resolve org.codehaus.groovy.modules.http-builder:http-builder:0.7.1.
     Required by:
         project : > com.github.kt3k.coveralls:com.github.kt3k.coveralls.gradle.plugin:2.12.0 > gradle.plugin.org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.12.0
      > Could not resolve org.codehaus.groovy.modules.http-builder:http-builder:0.7.1.
         > Could not get resource 'https://plugins.gradle.org/m2/org/codehaus/groovy/modules/http-builder/http-builder/0.7.1/http-builder-0.7.1.pom'.
            > Could not GET 'https://jcenter.bintray.com/org/codehaus/groovy/modules/http-builder/http-builder/0.7.1/http-builder-0.7.1.pom'.
               > PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
   > Could not resolve org.apache.httpcomponents:httpmime:4.5.11.
     Required by:
         project : > com.github.kt3k.coveralls:com.github.kt3k.coveralls.gradle.plugin:2.12.0 > gradle.plugin.org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.12.0
      > Could not resolve org.apache.httpcomponents:httpmime:4.5.11.
         > Could not get resource 'https://plugins.gradle.org/m2/org/apache/httpcomponents/httpmime/4.5.11/httpmime-4.5.11.pom'.
            > Could not GET 'https://jcenter.bintray.com/org/apache/httpcomponents/httpmime/4.5.11/httpmime-4.5.11.pom'.
               > PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
cpiotr pushed a commit to cpiotr/nats.java that referenced this issue Apr 26, 2023
…shutdown

Gradle build on a clean repository checkout fails, because bintray has been decommissioned.
Related: https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/

The plugin repository is updated to point to existing services.

Solves: nats-io#896
scottf added a commit that referenced this issue Apr 28, 2023
…shutdown (#897)

Gradle build on a clean repository checkout fails, because bintray has been decommissioned.
Related: https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/

The plugin repository is updated to point to existing services.

Solves: #896

Co-authored-by: Piotr Ciruk <piotr.ciruk@imc.com>
Co-authored-by: Scott Fauerbach <scottfauerbach@gmail.com>
@scottf scottf closed this as completed Apr 28, 2023
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