Skip to content

Commit

Permalink
Switch to Maven (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
mk868 authored Aug 22, 2024
1 parent 89d2eab commit b78a6e3
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 82 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ant.yml → .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
with:
distribution: temurin
java-version: 11
- name: Build with Ant
run: ant -noinput -buildfile build.xml dist
- name: Run tests
- name: Build with Maven
run: mvn -B test-compile
- name: Run tests with Maven
timeout-minutes: 10
run: ant -noinput -buildfile build.xml test
run: mvn -B test
15 changes: 4 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ Simply clone this repository.

## Usage

```
```java
Multihash b58 = Multihash.decode("QmatmE9msSfkKxoffpHwNLNKgwZG8eT9Bud6YoPab52vpy");
Multihash b36 = Multihash.decode("kmue2y4illvr0m3lt8x6z8iwghtxlzdmkjh957p5rr5cdr9243ugc");
```
## Dependency
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).

for Maven, you can add the follwing sections to your POM.XML:
```
```xml
<repositories>
<repository>
<id>jitpack.io</id>
Expand All @@ -42,22 +42,15 @@ for Maven, you can add the follwing sections to your POM.XML:

## Testing

### Ant
`ant test`

### Maven
`mvn test`

## Building

### Ant
`ant dist` will build a JAR file in the `./dist` suitable for manual inclusion in a project. Dependent libraries are included in `./dist/lib`.

### Maven
`mvn package` will build a JAR file with Maven dependency information.

## Releasing
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.

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.

## Maintainers

Expand Down
67 changes: 0 additions & 67 deletions build.xml

This file was deleted.

Binary file removed lib/hamcrest-core-1.3.jar
Binary file not shown.
Binary file removed lib/junit-4.12.jar
Binary file not shown.
Binary file removed lib/multibase.jar
Binary file not shown.

0 comments on commit b78a6e3

Please sign in to comment.