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 failed in using this plugin version 4.11.1 and 4.11.0 #81

Closed
nining opened this issue Mar 22, 2024 · 7 comments
Closed

gradle build failed in using this plugin version 4.11.1 and 4.11.0 #81

nining opened this issue Mar 22, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@nining
Copy link

nining commented Mar 22, 2024

gradle build failed

with this error:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'api'.
> Could not resolve all files for configuration ':classpath'.
   > Could not find tech.pegasys:jc-kzg-4844:0.8.0.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/tech/pegasys/jc-kzg-4844/0.8.0/jc-kzg-4844-0.8.0.pom
       - https://plugins.gradle.org/m2/tech/pegasys/jc-kzg-4844/0.8.0/jc-kzg-4844-0.8.0.pom
     Required by:
         project : > org.web3j:org.web3j.gradle.plugin:4.11.1 > org.web3j:web3j-gradle-plugin:4.11.1 > org.web3j:core:4.11.1 > org.web3j:crypto:4.11.1

Steps To Reproduce

Here is build.gradle.kts file

plugins {
    kotlin("jvm") version "1.9.22"
    kotlin("plugin.allopen") version "1.9.22"
    id("io.quarkus")
    id("io.freefair.lombok") version "8.3"
    id("org.web3j") version "4.11.1"
}

Expected behavior

working

Actual behavior

failed

Environment

  • Plugin 4.11.1
  • Java 21
  • Operating System Linux x86_64
@nining nining added the bug Something isn't working label Mar 22, 2024
@NickSneo
Copy link
Contributor

You will need to add a new repo to build.gradle -

repositories {
        maven { url "https://artifacts.consensys.net/public/maven/maven/" }
    }

@nidyas
Copy link

nidyas commented Apr 2, 2024

same error it's not working the whole gradle and web3j plugins alongside java version are causing errors of undefined classes.In my opinion Web3j developer should tell us the rigght gradle/java and web3j version that are stable and should be used

@palsergech
Copy link

palsergech commented Apr 16, 2024

same error on Liberica JDK v21.0.2 & Gradle 8.6 & Plugin 4.11.0-4.11.2

@ethanalef
Copy link

same error

@NickSneo
Copy link
Contributor

NickSneo commented May 10, 2024

We are in talks with Consensys team, they will be publishing it to maven central soon.
Opened up an issue to track this progress - Consensys/jc-kzg-4844#42

Link to discussion on Discord (will need to join Hyperledger Server to access this)- https://discord.com/channels/905194001349627914/1195062053682032700/1238389155877359638

@NickSneo NickSneo mentioned this issue May 27, 2024
3 tasks
@NickSneo
Copy link
Contributor

Issue has been fixed in latest web3j and web3j-gradle-plugin v4.12.0. Removed Consensys repo dependency and upgraded to gradle 8.7
Kindly check.

@gtebrean
Copy link
Contributor

closing this as no issue was reported so far

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants