Skip to content

Commit

Permalink
Merge pull request #60 from dariuszzbyrad/update-minima-example-side
Browse files Browse the repository at this point in the history
Update Minimal Example Application Documentation after bump dependency
  • Loading branch information
FDelporte authored Oct 21, 2024
2 parents c9e9066 + 7a16a21 commit 7979fb0
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions content/getting-started/minimal-example-application.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ so you can select the tool you prefer.

### Maven

This project can be built with Apache Maven 3.6 (or later) and Java 11 OpenJDK (or later). These prerequisites must be
This project can be built with Apache Maven 3.6 (or later) and Java 17 OpenJDK (or later). These prerequisites must be
installed prior to building this project as described on the previous pages. The following command can be used to
download all project dependencies and compile the Java module. You can build this project directly on a Raspberry Pi with Java 11+.
download all project dependencies and compile the Java module. You can build this project directly on a Raspberry Pi with Java 17+.

```
mvn clean package
```

### Gradle

You can also use the Gradle Build Tool from these same sources. Use version 6.6 (or later) and Java 11 OpenJDK (or later).
You can also use the Gradle Build Tool from these same sources. Use version 6.6 (or later) and Java 17 OpenJDK (or later).
The Gradle wrapper is used as described on [docs.gradle.org](https://docs.gradle.org/current/userguide/gradle_wrapper.html).
The Gradle configuration file [build.gradle-file](https://github.com/Pi4J/pi4j-example-minimal/blob/master/build.gradle)
is included in the sources.
Expand All @@ -65,8 +65,8 @@ make the versions easy to update, we add those numbers as properties.
```xml
<properties>
<!-- DEPENDENCIES VERSIONS -->
<slf4j.version>2.0.12</slf4j.version>
<pi4j.version>2.5.1</pi4j.version>
<slf4j.version>2.0.16</slf4j.version>
<pi4j.version>2.7.0</pi4j.version>
</properties>
```

Expand Down Expand Up @@ -193,13 +193,13 @@ pi4j.shutdown();
## Steps to run this application on your Raspberry Pi

* Attach a LED and button as shown in the image above
* Use a recent Raspbian OS image which has Java 11 or newer. To check if you have the correct Java version in the terminal:
* Use a recent Raspbian OS image which has Java 17 or newer. To check if you have the correct Java version in the terminal:

```shell
$ java -version
openjdk version "11.0.6" 2020-01-14
OpenJDK Runtime Environment (build 11.0.6+10-post-Raspbian-1deb10u1)
OpenJDK Server VM (build 11.0.6+10-post-Raspbian-1deb10u1, mixed mode)
openjdk version "17.0.7" 2023-04-18
OpenJDK Runtime Environment (build 17.0.7+7-Debian-1deb11u1)
OpenJDK 64-Bit Server VM (build 17.0.7+7-Debian-1deb11u1, mixed mode, sharing)
```

* Download the project from GitHub and build it:
Expand All @@ -215,15 +215,15 @@ $ mvn clean package
```shell
$ cd target/distribution
$ ls -l
total 608
-rw-r--r-- 1 pi pi 310147 Mar 21 09:53 pi4j-core-2.5.1.jar
-rw-r--r-- 1 pi pi 6240 Mar 21 10:48 pi4j-example-minimal-0.0.1.jar
-rw-r--r-- 1 pi pi 158381 Mar 21 09:52 pi4j-library-gpiod-2.5.1.jar
-rw-r--r-- 1 pi pi 22202 Mar 21 09:52 pi4j-plugin-gpiod-2.5.1.jar
-rw-r--r-- 1 pi pi 26919 Mar 21 09:52 pi4j-plugin-raspberrypi-2.5.1.jar
-rwxr-xr-x 1 pi pi 101 Mar 21 10:48 run.sh
-rw-r--r-- 1 pi pi 68115 Feb 5 22:32 slf4j-api-2.0.12.jar
-rw-r--r-- 1 pi pi 15701 Feb 5 22:33 slf4j-simple-2.0.12.jar
total 644
-rw-r--r-- 1 pi pi 344544 Oct 21 08:07 pi4j-core-2.7.0.jar
-rw-r--r-- 1 pi pi 7134 Oct 21 08:08 pi4j-example-minimal-0.0.1.jar
-rw-r--r-- 1 pi pi 158997 Oct 21 08:07 pi4j-library-gpiod-2.7.0.jar
-rw-r--r-- 1 pi pi 22633 Oct 21 08:07 pi4j-plugin-gpiod-2.7.0.jar
-rw-r--r-- 1 pi pi 28051 Oct 21 08:07 pi4j-plugin-raspberrypi-2.7.0.jar
-rwxr-xr-x 1 pi pi 101 Oct 21 08:08 run.sh
-rw-r--r-- 1 pi pi 69435 Oct 21 08:07 slf4j-api-2.0.16.jar
-rw-r--r-- 1 pi pi 15704 Oct 21 08:07 slf4j-simple-2.0.16.jar
```

* Start the application with the provided `run.sh` script:
Expand Down

0 comments on commit 7979fb0

Please sign in to comment.