Skip to content

Commit 6f00ada

Browse files
committed
Re-add swagger docs
1 parent bb17cb6 commit 6f00ada

57 files changed

Lines changed: 2923 additions & 17 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,6 @@
22

33
This is the Java SDK for interacting with [Semux Network](https://github.com/semuxproject/semux-core).
44

5-
## Building from source
6-
7-
Prerequisites:
8-
- Java 8 or above
9-
10-
Command:
11-
```shell
12-
git clone https://github.com/semuxproject/semux-java
13-
cd semux-java
14-
./gradlew build
15-
```
16-
175
## Using as a library
186

197
First, add the Jitpack repository:
@@ -35,7 +23,19 @@ Then, declare `semux-java` as a dependency
3523
</dependency>
3624
```
3725

38-
See example [here](./example).
26+
For more, please see [docs](./docs) and [example](./example).
27+
28+
## Building from source
29+
30+
Prerequisites:
31+
- Java 8 or above
32+
33+
Command:
34+
```shell
35+
git clone https://github.com/semuxproject/semux-java
36+
cd semux-java
37+
./gradlew build
38+
```
3939

4040
## License
4141

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ tasks.named('test') {
4848
useJUnitPlatform()
4949
}
5050

51-
// Swagger codegen
52-
53-
5451
swaggerSources {
5552
semux {
5653
inputFile = file('./semux-core/src/main/resources/org/semux/api/swagger/v2.5.0.yml')
@@ -64,8 +61,11 @@ swaggerSources {
6461
}
6562
}
6663
}
67-
6864
compileJava.dependsOn swaggerSources.semux.code
6965
sourceSets.main.java.srcDir "${swaggerSources.semux.code.outputDir}/src/main/java"
7066
sourceSets.main.resources.srcDir "${swaggerSources.semux.code.outputDir}/src/main/resources"
7167

68+
task copySwaggerDocs(type: Copy) {
69+
from './build/swagger-code-semux/docs'
70+
into './docs'
71+
}

0 commit comments

Comments
 (0)