Commit Graph

260 Commits

Author SHA1 Message Date
Chris Beams
1031a72e52
Upgrade to BitcoinJ 0.12 GA
Resolves #98
2014-10-03 18:13:14 +02:00
Chris Beams
9727ea21a8
Upgrade to BitcoinJ 0.12-SNAPSHOT
- Update imports to reflect BitcoinJ's repackaging, including:

   git grep -l 'import com.google.bitcoin' | \
   xargs perl -p -i -e 's/import com.google.bitcoin/import org.bitcoinj/'

   git grep -l 'com.google.bitcoin' | \
   xargs perl -p -i -e 's/com.google.bitcoin/org.bitcoinj/'

 - Replace use of BitcoinJ's CoinFormat, which has now been renamed to
   MonetaryFormat, using:

   git grep -l 'CoinFormat' | \
   xargs perl -p -i -e 's/CoinFormat/MonetaryFormat/g'

 - Fix calls to BitcoinJ's Script#correctlySpends, whose signature has
   changed from 0.11 => 0.12.

See #98
2014-10-03 18:13:14 +02:00
Manfred Karrer
a334beb1a7 Update controlsfx to be compatible with latest jdk 2014-09-30 23:36:00 +02:00
Chris Beams
4d4787d84a
Upgrade Gradle wrapper version from 2.0 => 2.1 2014-09-29 09:56:30 +02:00
Chris Beams
d536258871
Use published snapshots for BitcoinJ and TomP2P
Bitsquare depends on specific versions of BitcoinJ and TomP2P that have
not previously been published to any maven repository--until now. Based
on the 'published' branch of the bitcoinj [1] and tomp2p [2] forks under
the bitsquare organization, snapshots have been published to a temporary
repository [3] that has been made available to us by JFrog.

To be as explicit as possible, these custom-published snapshots have
had their version numbers qualified with the short hash of the commit
they were built from. So for bitcoinj, the dependency is no longer
0.12-SNAPSHOT, but 0.12.308de4e-SNAPSHOT. For TomP2P, the version has
gone from 5.0-Alpha24-SNAPSHOT to 5.0-Alpha24.805623c-SNAPSHOT.
Accordingly, these qualified versions are now reflected in the
dependency declarations in build.gradle.

This means that it is no longer necessary to build bitcoinj and tomp2p
locally in order to get up and running with Bitsquare development, and
the README has been updated accordingly. And it also means we can now
set up a Travis CI build with ease (which shall be done with #86).

Resolves #97

[1]: https://github.com/bitsquare/bitcoinj/tree/published
[2]: https://github.com/bitsquare/tomp2p/tree/published
[3]: http://partnerdemo.artifactoryonline.com/partnerdemo/libs-snapshots-local/
2014-09-29 08:49:23 +02:00
Manfred Karrer
1efc1da6a6 Update to controlsFX 8.0.6 2014-09-03 23:33:00 +02:00
Chris Beams
bf7e46d1d5
Add Gradle OneJar plugin
For creation of a self-contained executable jar.

Run:
 - `./gradle executableJar`
 - `java -jar ./build/libs/bitsquare.jar

Note that actually executing the jar fails with an exception from
io.bitsquare.util.AppDirectoryUtil.createDirIfNotExists. This will be
fixed later. The purpose of this commit is only to establish the
executable jar infrastructure.
2014-08-28 13:56:06 +02:00
Chris Beams
0501965b99
Configure Gradle application plugin
- `./gradlew run` to launch Bitsquare
 - `./gradlew installApp` to create scripts in build/install/bitsquare

See http://www.gradle.org/docs/current/userguide/userguide_single.html#application_plugin
2014-08-28 13:56:05 +02:00
Chris Beams
62cb43dce5
Configure Gradle build
- Set version at 0.1.0-SNAPSHOT, per http://semver.org practices
 - Configure dependencies per existing Maven pom
 - Resolve dependencies from jcenter by default, mavenLocal for custom
   BitcoinJ and TomP2P binaries (which still must be built separately)
 - Copy non-java files (fxml, etc) from src/main/java when processing
   resources

`./gradle build` is now completes successfully.
2014-08-28 13:56:05 +02:00
Chris Beams
49adf9cc97
Add Gradle build file with wrapper configuration 2014-08-28 13:56:04 +02:00