Skip to content

fix: resolve CI build failures across all modules#24

Open
GalaxySciTech wants to merge 3 commits intomasterfrom
cursor/java-wallet-ci-add8
Open

fix: resolve CI build failures across all modules#24
GalaxySciTech wants to merge 3 commits intomasterfrom
cursor/java-wallet-ci-add8

Conversation

@GalaxySciTech
Copy link
Copy Markdown
Owner

Summary

Fixes the CI build failure reported in actions/runs/23904371445. The wallet-entity:compileKotlin task was failing due to multiple categories of unresolved references. This PR also fixes pre-existing compilation errors in wallet-common, wallet-hsm, wallet-webapi, and wallet-task modules that were masked because the build failed early on wallet-entity.

Changes

Swagger 2 → OpenAPI 3 Migration (wallet-entity)

  • Replaced io.swagger.annotations.ApiModel / ApiModelProperty with io.swagger.v3.oas.annotations.media.Schema in:
    • GetTransactionPo.kt, LoginPo.kt, RegisteredPo.kt, SendPo.kt, TransferPo.kt
    • CustomerInfoVo.kt, DepositEosVo.kt, TransferRecordVo.kt

QueryDSL Spring Data 3.x Fix (wallet-entity)

  • Renamed QueryDslPredicateExecutorQuerydslPredicateExecutor (lowercase 'dsl') across all 11 repository interfaces to match Spring Data 3.x API

Dependency Resolution

  • Added explicit io.github.qyvlik:io.eblock.eos-eos4j:1.0.1 dependency to wallet-entity and wallet-hsm (transitive from tokencore via JitPack was not resolving)
  • Added commons-codec:commons-codec:1.16.0 and org.bitcoinj:bitcoinj-core:0.14.7 to wallet-common
  • Applied java-library plugin to wallet-entity and wallet-common, changed QueryDSL and project dependencies to api scope so transitive types are accessible to downstream modules

Spring Data 2.x → 3.x API Migration (wallet-common)

  • repository.findOne(id)repository.findById(id).orElse(null) (15 occurrences)
  • repository.delete(id)repository.deleteById(id) (7 occurrences)
  • repository.delete(list)repository.deleteAll(list) (1 occurrence)
  • repository.save(list)repository.saveAll(list) (3 occurrences)
  • PageRequest(page, size)PageRequest.of(page, size) (6 occurrences)

Other Fixes (wallet-common)

  • RestTemplateBuilder.connectTimeout().setConnectTimeout() for Spring Boot 3.x
  • Fixed BizException constructor mismatch in PushComponent.kt
  • Replaced unavailable ECKey.findRecoveryId() with manual recovery ID computation in TrxApi.kt (bitcoinj 0.14.7 compatibility)
  • Removed unused SignParam import from SignUsdtPo.kt

Verification

Full project builds successfully with ./gradlew build -x test --no-daemon — all modules compile cleanly.

Open in Web Open in Cursor 

cursoragent and others added 3 commits April 5, 2026 04:36
Replace direct PageRequest constructor calls with PageRequest.of()
because the constructor is protected in Spring Data 3.x.

Co-authored-by: Galaxy <GalaxySciTech@users.noreply.github.com>
- findOne(id) -> findById(id).orElse(null)
- delete(id) -> deleteById(id)
- delete(list) -> deleteAll(list)
- save(list) -> saveAll(list)
- PageRequest(page, size) -> PageRequest.of(page, size)
- PageRequest(page, size, sort) -> PageRequest.of(page, size, sort)

Applied across 11 service implementation files.

Co-authored-by: Galaxy <GalaxySciTech@users.noreply.github.com>
- Migrate Swagger 2 annotations (io.swagger.annotations) to OpenAPI 3
  (io.swagger.v3.oas.annotations.media.Schema) in wallet-entity po/vo files
- Fix QueryDslPredicateExecutor -> QuerydslPredicateExecutor (Spring Data 3.x rename)
  across all 11 repository interfaces
- Add explicit eos4j dependency to wallet-entity and wallet-hsm for
  io.eblock.eos4j.api.vo.SignParam resolution
- Remove unused SignParam import from SignUsdtPo.kt
- Use java-library plugin with api scope for wallet-entity and wallet-common
  to expose transitive QueryDSL and entity dependencies
- Add commons-codec and bitcoinj-core dependencies to wallet-common
- Fix RestTemplateBuilder API (connectTimeout -> setConnectTimeout) for Spring Boot 3.x
- Fix BizException constructor call in PushComponent (ErrorCode -> ErrorCode.code)
- Fix TrxApi ECKey.findRecoveryId to manual recovery ID computation for bitcoinj 0.14.7

Co-authored-by: Galaxy <GalaxySciTech@users.noreply.github.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.

2 participants