1
Using XChange SNAPSHOTs
Peter Keeler edited this page 2020-11-18 14:58:32 -08:00
XChange has a monthly release cycle, and sometimes a PR gets merged that fixes a bug but you don't want to wait a month for the official release. If you'd like to use the latest version of the code from the develop branch you don't have to build it yourself.
Please be aware that SNAPSHOT versions are a little more risky than the main branch. It is recommended for development purposes only.
Here is how to modify your build.gradle to pull SNAPSHOT builds for XChange.
- Add the snapshot repository under the
repositorysection.
repositories {
maven {
url "https://oss.sonatype.org/content/repositories/snapshots"
}
mavenCentral()
}
- Change each of the dependencies to the SNAPSHOT version that you want, and add
changing: trueto make it refresh them every 24 hours.
compile group: 'org.knowm.xchange', name: 'xchange-quoine', version: '5.0.4-SNAPSHOT', changing: true
compile group: 'org.knowm.xchange', name: 'xchange-stream-kraken', version: '5.0.4-SNAPSHOT', changing: true
compile group: 'org.knowm.xchange', name: 'xchange-bitflyer', version: '5.0.4-SNAPSHOT', changing: true
compile group: 'org.knowm.xchange', name: 'xchange-stream-coinbasepro', version: '5.0.4-SNAPSHOT', changing: true
compile group: 'org.knowm.xchange', name: 'xchange-cexio', version: '5.0.4-SNAPSHOT', changing: true
compile group: 'org.knowm.xchange', name: 'xchange-poloniex', version: '5.0.4-SNAPSHOT', changing: true
compile group: 'org.knowm.xchange', name: 'xchange-stream-gemini', version: '5.0.4-SNAPSHOT', changing: true
compile group: 'org.knowm.xchange', name: 'xchange-bitstamp', version: '5.0.4-SNAPSHOT', changing: true
compile group: 'org.knowm.xchange', name: 'xchange-cobinhood', version: '5.0.4-SNAPSHOT', changing: true
- Rebuild with
./gradlew clean build!