Skip to content

Commit b78a6e3

Browse files
authored
Switch to Maven (#38)
1 parent 89d2eab commit b78a6e3

File tree

6 files changed

+8
-82
lines changed

6 files changed

+8
-82
lines changed

.github/workflows/ant.yml .github/workflows/maven.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
with:
1515
distribution: temurin
1616
java-version: 11
17-
- name: Build with Ant
18-
run: ant -noinput -buildfile build.xml dist
19-
- name: Run tests
17+
- name: Build with Maven
18+
run: mvn -B test-compile
19+
- name: Run tests with Maven
2020
timeout-minutes: 10
21-
run: ant -noinput -buildfile build.xml test
21+
run: mvn -B test

README.md

+4-11
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ Simply clone this repository.
1515

1616
## Usage
1717

18-
```
18+
```java
1919
Multihash b58 = Multihash.decode("QmatmE9msSfkKxoffpHwNLNKgwZG8eT9Bud6YoPab52vpy");
2020
Multihash b36 = Multihash.decode("kmue2y4illvr0m3lt8x6z8iwghtxlzdmkjh957p5rr5cdr9243ugc");
2121
```
2222
## Dependency
2323
You can use this project by building the JAR file as specified below, or by using [JitPack](https://jitpack.io/#multiformats/java-multihash/) (also supporting Gradle, SBT, etc).
2424

2525
for Maven, you can add the follwing sections to your POM.XML:
26-
```
26+
```xml
2727
<repositories>
2828
<repository>
2929
<id>jitpack.io</id>
@@ -42,22 +42,15 @@ for Maven, you can add the follwing sections to your POM.XML:
4242

4343
## Testing
4444

45-
### Ant
46-
`ant test`
47-
48-
### Maven
4945
`mvn test`
5046

5147
## Building
5248

53-
### Ant
54-
`ant dist` will build a JAR file in the `./dist` suitable for manual inclusion in a project. Dependent libraries are included in `./dist/lib`.
55-
56-
### Maven
5749
`mvn package` will build a JAR file with Maven dependency information.
5850

5951
## Releasing
60-
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.
52+
53+
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.
6154

6255
## Maintainers
6356

build.xml

-67
This file was deleted.

lib/hamcrest-core-1.3.jar

-44 KB
Binary file not shown.

lib/junit-4.12.jar

-308 KB
Binary file not shown.

lib/multibase.jar

-29.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)