Skip to content

Commit 1ba6654

Browse files
author
Frank Delporte
committed
Updating content to match V4
1 parent 473403c commit 1ba6654

4 files changed

Lines changed: 17 additions & 23 deletions

File tree

content/about/download.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ weight: 45
66
All downloads provided by the project can be found on [pi4j.com/download](https://pi4j.com/download/).
77

88
The compiled artifacts (releases and snapshots) are available in the
9-
[Sonatype Maven repository](https://oss.sonatype.org/index.html#nexus-search;gav~com.pi4j~~~~).
9+
[Maven Central Repository](https://central.sonatype.com/search?namespace=com.pi4j).
1010

1111
<iframe src="https://pi4j.com/download" style="width: 100%; height: 100vh;"></iframe>

content/about/license.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: 'License (Open Source)'
33
weight: 50
44
---
55

6-
The Pi4J Version 2.0 project is distributed and licensed under the **Apache License, Version 2.0** license
6+
The Pi4J Version 2+ project is distributed and licensed under the **Apache License, Version 2.0** license
77
(_A business-friendly OSS license_).
88

99
* [apache.org/licenses/LICENSE-2.0](https://www.apache.org/licenses/LICENSE-2.0)

content/getting-started/minimal-example-application.md

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,16 @@ make the versions easy to update, we add those numbers as properties.
7373
```xml
7474
<properties>
7575
<!-- DEPENDENCIES VERSIONS -->
76-
<slf4j.version>2.0.16</slf4j.version>
77-
<pi4j.version>2.7.0</pi4j.version>
76+
<slf4j.version>2.0.17</slf4j.version>
77+
<pi4j.version>4.0.0</pi4j.version>
7878
</properties>
7979
```
8080

8181
These are the dependencies we need:
8282

8383
```xml
8484
<dependencies>
85+
<!-- Logging -->
8586
<dependency>
8687
<groupId>org.slf4j</groupId>
8788
<artifactId>slf4j-api</artifactId>
@@ -93,22 +94,17 @@ These are the dependencies we need:
9394
<version>${slf4j.version}</version>
9495
</dependency>
9596

96-
<!-- include Pi4J Core -->
97+
<!-- Include Pi4J Core -->
9798
<dependency>
9899
<groupId>com.pi4j</groupId>
99100
<artifactId>pi4j-core</artifactId>
100101
<version>${pi4j.version}</version>
101102
</dependency>
102103

103-
<!-- include Pi4J Plugins (Platforms and I/O Providers) -->
104+
<!-- Include Pi4J Plugin (Platforms and I/O Providers) -->
104105
<dependency>
105106
<groupId>com.pi4j</groupId>
106-
<artifactId>pi4j-plugin-raspberrypi</artifactId>
107-
<version>${pi4j.version}</version>
108-
</dependency>
109-
<dependency>
110-
<groupId>com.pi4j</groupId>
111-
<artifactId>pi4j-plugin-gpiod</artifactId>
107+
<artifactId>pi4j-plugin-ffm</artifactId>
112108
<version>${pi4j.version}</version>
113109
</dependency>
114110
</dependencies>
@@ -205,9 +201,9 @@ pi4j.shutdown();
205201

206202
```shell
207203
$ java -version
208-
openjdk version "17.0.7" 2023-04-18
209-
OpenJDK Runtime Environment (build 17.0.7+7-Debian-1deb11u1)
210-
OpenJDK 64-Bit Server VM (build 17.0.7+7-Debian-1deb11u1, mixed mode, sharing)
204+
openjdk version "25" 2025-09-16 LTS
205+
OpenJDK Runtime Environment Zulu25.28+85-CA (build 25+36-LTS)
206+
OpenJDK 64-Bit Server VM Zulu25.28+85-CA (build 25+36-LTS, mixed mode, sharing)
211207
```
212208

213209
* Download the project from GitHub and build it:
@@ -224,14 +220,12 @@ $ ./mvnw clean package
224220
$ cd target/distribution
225221
$ ls -l
226222
total 644
227-
-rw-r--r-- 1 pi pi 344544 Oct 21 08:07 pi4j-core-2.7.0.jar
223+
-rw-r--r-- 1 pi pi 344544 Oct 21 08:07 pi4j-core-4.0.0.jar
228224
-rw-r--r-- 1 pi pi 7134 Oct 21 08:08 pi4j-example-minimal-0.0.1.jar
229-
-rw-r--r-- 1 pi pi 158997 Oct 21 08:07 pi4j-library-gpiod-2.7.0.jar
230-
-rw-r--r-- 1 pi pi 22633 Oct 21 08:07 pi4j-plugin-gpiod-2.7.0.jar
231-
-rw-r--r-- 1 pi pi 28051 Oct 21 08:07 pi4j-plugin-raspberrypi-2.7.0.jar
225+
-rw-r--r-- 1 pi pi 22633 Oct 21 08:07 pi4j-plugin-ffm-4.0.0.jar
232226
-rwxr-xr-x 1 pi pi 101 Oct 21 08:08 run.sh
233-
-rw-r--r-- 1 pi pi 69435 Oct 21 08:07 slf4j-api-2.0.16.jar
234-
-rw-r--r-- 1 pi pi 15704 Oct 21 08:07 slf4j-simple-2.0.16.jar
227+
-rw-r--r-- 1 pi pi 69435 Oct 21 08:07 slf4j-api-2.0.17.jar
228+
-rw-r--r-- 1 pi pi 15704 Oct 21 08:07 slf4j-simple-2.0.17.jar
235229
```
236230

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

content/prepare/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ After these steps, you can continue to the [Getting Started with Pi4J](/getting-
5353

5454
## Pi4J OS
5555

56-
In the past, we had our own Pi4J OS, based on Raspberry Pi OS with some extra preparations to make it easier to use with Pi4J. But because it became incompatible with the Raspberry Pi 5 and was difficult to maintain, we no longer will update that Pi4J OS.
56+
In the past, we had our own Pi4J OS, based on Raspberry Pi OS with some extra preparations to make it easier to use with Pi4J. But because it became incompatible with the Raspberry Pi 5 and was difficult to maintain, we don't provide a "full OS" anymore. The repository `pi4j-os` has been reworked and now contains scripts that make it easier to prepare a Raspberry Pi or other single-board computers for Java development and Pi4J.
5757

5858
{{% notice tip %}}
59-
You can still find it on GitHub: [https://github.com/Pi4J/pi4j-os](https://github.com/Pi4J/pi4j-os)
59+
Check the info in the README in the repository at [github.com/Pi4J/pi4j-os](https://github.com/Pi4J/pi4j-os).
6060
{{% /notice %}}

0 commit comments

Comments
 (0)