diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c2b0107..b9e9e93 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,11 +15,11 @@ jobs: steps: - uses: actions/checkout@v6 - - name: Set up JDK 11 + - name: Set up JDK 21 uses: actions/setup-java@v5 with: distribution: temurin - java-version: 11 + java-version: 21 cache: 'maven' - name: Install and run IPFS run: ./install-run-ipfs.sh diff --git a/README.md b/README.md index 248d069..6c34804 100644 --- a/README.md +++ b/README.md @@ -47,11 +47,15 @@ for Maven, add the following sections to your pom.xml (replacing $LATEST_VERSION ### Building +Build time requirements: +* Java 21 +* Maven 3.9.6+ (latest patch release is recommended) + * Clone this repository -* Run `mvn install` +* Run `./mvnw install` * Copy `target/ipfs-$VERSION.jar` into your project. Appropriate versions of other [dependencies](#dependencies) are also included in `dist/lib/`. -* To copy the project and all dependency JARs to directory, execute `mvn eu.maveniverse.maven.plugins:toolbox:gav-copy -DsourceSpec="resolveTransitive(gav(com.github.ipfs:java-ipfs-http-client:v1.4.5-SNAPSHOT))" -DsinkSpec="flat(.)"` in that given directory. -* Run tests using `mvn test` (invocation above will run them as well). +* To copy the project and all dependency JARs to directory, execute `./mvnw eu.maveniverse.maven.plugins:toolbox:gav-copy -DsourceSpec="resolveTransitive(gav(com.github.ipfs:java-ipfs-http-client:v1.4.5-SNAPSHOT))" -DsinkSpec="flat(.)"` in that given directory. +* Run tests using `./mvnw test` (invocation above will run them as well). ### Running tests @@ -101,6 +105,9 @@ More example usage found [here](./src/main/java/io/ipfs/api/demo) ## Dependencies +Run time requirements: +* Java 11+ + Current versions of dependencies are listed in the `pom.xml`, their corresponding source repositories are: * [multibase](https://github.com/multiformats/java-multibase) diff --git a/pom.xml b/pom.xml index 3c7d3ef..b9fb5b6 100644 --- a/pom.xml +++ b/pom.xml @@ -69,6 +69,30 @@ + + org.apache.maven.plugins + maven-enforcer-plugin + 3.6.2 + + + + 3.9.6 + + + 21 + + + + + + enforce + + enforce + + validate + + + org.apache.maven.plugins maven-compiler-plugin