Skip to content

Commit 11bcde4

Browse files
authored
Merge pull request #26 from mk868/switch-to-maven
Removal of Ant in favor of Maven
2 parents bc7bfca + 6607a6a commit 11bcde4

File tree

8 files changed

+7
-38
lines changed

8 files changed

+7
-38
lines changed

.github/workflows/ant.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/maven.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
distribution: temurin
1919
java-version: 11
2020
- name: Build with Maven
21-
run: mvn compile
21+
run: mvn -B test-compile
2222
- name: Run tests with Maven
2323
timeout-minutes: 10
24-
run: mvn test
24+
run: mvn -B test

README.md

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@ Simply clone this repo.
1313

1414
## Usage
1515

16-
```
16+
```java
1717
MultiAddress m = new MultiAddress("/ip4/127.0.0.1/tcp/1234");
1818
```
1919
or
2020

21-
```
21+
```java
2222
MultiAddress m = new MultiAddress("/ipfs/QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSupNKC");
2323
```
2424

2525
## Dependency
2626
You can use this project by building the JAR file as specified below, or by using [JitPack](https://jitpack.io/#multiformats/java-multiaddr/) (also supporting Gradle, SBT, etc).
2727

2828
for Maven, you can add the follwing sections to your POM.XML:
29-
```
29+
```xml
3030
<repositories>
3131
<repository>
3232
<id>jitpack.io</id>
@@ -45,22 +45,15 @@ for Maven, you can add the follwing sections to your POM.XML:
4545

4646
## Testing
4747

48-
### Ant
49-
`ant test`
50-
51-
### Maven
5248
`mvn test`
5349

5450
## Building
5551

56-
### Ant
57-
`ant dist` will build a JAR file in the `./dist` suitable for manual inclusion in a project. Dependent libraries are included in `./dist/lib`.
58-
59-
### Maven
6052
`mvn package` will build a JAR file with Maven dependency information.
6153

6254
## Releasing
63-
The version number is specified in `build.xml` and `pom.xml` and must be changed in both places in order to be accurately reflected in the JAR file manifest. A git tag must be added in the format "vx.x.x" for JitPack to work.
55+
56+
The version number is specified in the `pom.xml` file and must be changed in order to be accurately reflected in the JAR file manifest. A git tag must be added in the format "vx.x.x" for JitPack to work.
6457

6558
## Maintainers
6659

lib/cid.jar

-8.55 KB
Binary file not shown.

lib/hamcrest-2.2.jar

-120 KB
Binary file not shown.

lib/junit-4.13.2.jar

-376 KB
Binary file not shown.

lib/multibase.jar

-29.5 KB
Binary file not shown.

lib/multihash.jar

-11.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)