Skip to content

Fix jcenter-dependent BIP39/Base58 deps (switch to JitPack) - #263

Open
SafraNako wants to merge 1 commit into
ontio:masterfrom
SafraNako:fix/jcenter-sunset-novacrypto-deps
Open

Fix jcenter-dependent BIP39/Base58 deps (switch to JitPack)#263
SafraNako wants to merge 1 commit into
ontio:masterfrom
SafraNako:fix/jcenter-sunset-novacrypto-deps

Conversation

@SafraNako

Copy link
Copy Markdown

jcenter shut down in 2022, so io.github.novacrypto:BIP39:0.1.9 and
:Base58:0.1.2 no longer resolve — the build fails with:

Could not find artifact io.github.novacrypto:BIP39:jar:0.1.9 in central

(This is also what breaks ontio/ontology-explorer's build, since
ontsynhandler there depends on this SDK — see ontio/ontology-explorer#330.)

What

Switches the jcenter repository to JitPack and repoints both dependencies
at com.github.NovaCrypto, JitPack's coordinates for the same GitHub repos.

  • Base58 0.1.2 — unchanged version, builds cleanly on JitPack. Verified:
    https://jitpack.io/com/github/NovaCrypto/Base58/0.1.2/Base58-0.1.2.pom → 200.

  • BIP39 — can't stay on 0.1.9: that version was never git-tagged upstream
    (only published to jcenter), and building the untagged commit on JitPack
    fails because BIP39's own build.gradle still pulls its Gradle plugins from
    jcenter too. 0.1.8 is the closest tag that actually builds on JitPack
    (verified: .../BIP39/0.1.8/BIP39-0.1.8.pom → 200).

    The only code that changed between 0.1.8 and 0.1.9 is in
    MnemonicValidator and SeedCalculatorByWordListLookUp. This SDK doesn't
    call either — MnemonicCode.java only uses MnemonicGenerator,
    SeedCalculator, Words, English, and HdPrivateKey.java only uses
    SeedCalculator/English — so the downgrade shouldn't change behavior
    here.

Testing

I don't have a working local Maven/JDK setup in this environment, so I
couldn't run a full build. I did verify both new coordinates resolve and
build successfully via JitPack directly (the .pom requests above), and
checked every call site of the changed BIP39 classes in this repo to confirm
none of them are used. Flagging the lack of a local build run in case a
maintainer wants to double check before merging.

jcenter shut down in 2022, so io.github.novacrypto:BIP39:0.1.9 and
:Base58:0.1.2 no longer resolve (this breaks downstream builds too,
e.g. ontio/ontology-explorer#330).

Base58 0.1.2 builds fine on JitPack under com.github.NovaCrypto.
BIP39 0.1.9 doesn't: it was never git-tagged upstream, and building
the untagged commit on JitPack fails because BIP39's own build.gradle
still pulls its Gradle plugins from jcenter. 0.1.8 is the closest
buildable release; the only behavioral change since is in
MnemonicValidator and SeedCalculatorByWordListLookUp, neither of
which this SDK calls (MnemonicCode.java only uses MnemonicGenerator/
SeedCalculator/Words/English; HdPrivateKey.java only uses
SeedCalculator/English).

Verified both coordinates resolve on JitPack directly; could not run
a full local Maven build in this environment.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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

Successfully merging this pull request may close these issues.

1 participant