Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ This library provides a Java wrapper around all the methods exposed by a Polkado
- [examples](https://github.com/polkadot-java/api/tree/master/examples) -- Demo projects (Gradle).
- [examples_runnable](https://github.com/polkadot-java/api/tree/master/examples_runnable) -- Demo executable JARs.

## Build

Integration test require local polkadot node running (run with `polkadot --dev`),
then
`./gradlew build`

Alternatively build without running unit tests, but still compiling them
`./gradlew build testClasses -x test`

## JDK

Java 1.8
Expand Down Expand Up @@ -41,16 +50,15 @@ The project uses [Gradle](https://gradle.org/) as build tool. You need to instal
### Build the library with Gradle then link to the JAR

1. `git clone https://github.com/polkadot-java/api.git`
2. `cd api`
3. `gradle build`
4. Get the JARs in folder `build/libs/`
5. Add the JARs into your projects.
4. Check the JARs in folder `api/build/libs/`
5. Add the JARs into your projects (TODO publish on MavenCentral).

### Link to the source code directly,

1. `git clone https://github.com/polkadot-java/api.git`
2. Import the gradle project in folder api/packages to your workspace.
3. Add links or dependencies in the IDE. This is different in different IDEs, please reference to your IDE document.
2. Import the gradle project in folder `api` to your workspace.
3. Add links or dependencies in the IDE. This differs, please reference to your IDE help (IDEA, Eclipse).

## How to build and use sr25591 JNI

Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
group=bcd.polkadot
version=1.1-SNAPSHOT
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.3-all.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
188 changes: 188 additions & 0 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

100 changes: 100 additions & 0 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading