Skip to content

Commit

Permalink
Bump JDK version to 17 and prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
Jotschi committed Feb 5, 2023
1 parent 53544fd commit 720c89f
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 17 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
.settings
target
/out
.vscode
7 changes: 0 additions & 7 deletions CHANGELOG.md

This file was deleted.

22 changes: 17 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Video4j is a highlevel library ontop of `org.openpnp:opencv` which provides APIs
<dependency>
<groupId>io.metaloom.video</groupId>
<artifactId>video4j</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
</dependency>
```

Expand Down Expand Up @@ -158,13 +158,25 @@ while (true) {

## Requirements / Limitations

The library uses OpenCV via JNI. Thus the JNI library `libopencv4.5-jni` must be installed on the host system.
The library uses OpenCV via JNI. Thus the JNI library `libopencv406-jni` must be installed on the host system.
Currently only Linux is supported.

The JNI libraries need to be manually be loaded once via
```Video4j.init()```. This method will try its best to locate the library itself.

On Debian Linux the JNI library can be installed via the `libopencv4.5-jni` package. Version `4.5.1+dfsg-5` has been used for testing. Video4j expects the library to be locatable in the library path. Or via `/usr/lib/jni/libopencv_java451.so`.
You can set `-Djava.library.path` for your application if the `libopencv_java451.so` file is located in a different directory.
On Debian Linux the JNI library can be installed via the `libopencv406-jni` package. Version `4.6.0+dfsg-9+b1` has been used for testing. Video4j expects the library to be locatable in the library path. Or via `/usr/lib/jni/libopencv_java460.so`.
You can set `-Djava.library.path` for your application if the `libopencv_java460.so` file is located in a different directory.

The capabilities of the OpenCV code and thus this library is linked to the installed OpenCV library. If you are unable to open a specific video format this might be related to `libavcodec` library that was used to build the OpenCV library.
The capabilities of the OpenCV code and thus this library is linked to the installed OpenCV library. If you are unable to open a specific video format this might be related to `libavcodec` library that was used to build the OpenCV library.

## Releasing

```bash
# Run tests
mvn clean package
# Invoke release to maven central
mvn clean deploy -Drelease
# Publish release on github
jreleaser config
jreleaser full:release
```
5 changes: 2 additions & 3 deletions jreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
project:
name: video4j
version: 1.1.0
version: 1.2.0
versionPattern: SEMVER

description: Video4j Java Video Processing Library
Expand All @@ -10,8 +10,7 @@ project:
authors:
- Johannes Schüth
license: Apache-2.0
extraProperties:
inceptionYear: 2022
inceptionYear: 2022

release:
github:
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>io.metaloom.video</groupId>
<artifactId>video4j</artifactId>
<version>1.1.1-SNAPSHOT</version>
<version>1.2.0</version>

<parent>
<groupId>io.metaloom</groupId>
Expand Down Expand Up @@ -86,7 +86,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<release>11</release>
<release>17</release>
</configuration>
</plugin>
</plugins>
Expand Down

0 comments on commit 720c89f

Please sign in to comment.