-
-
Notifications
You must be signed in to change notification settings - Fork 46
Using XChange SNAPSHOTs
Peter Keeler edited this page Nov 18, 2020
·
1 revision
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
repository
section.
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: true
to 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
!