简体   繁体   中英

spring boot square SDK latest version update issue in maven

As currently i am changing version for square java sdk to latest which is 20.1.0.20220616
and current version i am using is 2.20190313.0
so, after dependency resolve in pom.xml it is giving below error message Cannot resolve com.squareup:connect:20.1.0.20220616

can someone please help me to update my square sdk which is latest and stable ?
also note my pom has below code

        <repository>
            <id>jcenter</id>
            <url>https://jcenter.bintray.com</url>
        </repository>
    </repositories>

A little bit of Googling tells me there is an old obsolete library named 'connect' and a replacement which is named 'square'.

https://developer.squareup.com/docs/sdks/java/quick-start

So use the artifactId 'square', which is indeed in maven central .

<dependency>
  <groupId>com.squareup</groupId>
  <artifactId>square</artifactId>
  <version>20.1.0.20220616</version>
</dependency>

Disclaimer: I fully expect that your code will no longer compile after that change. They rarely ever decide to make a new library and keep it backwards compatible.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM