Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/workflows/pr_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,12 @@ jobs:
fail-fast: false
matrix:
include:
- nifi-profile: nifi-1.28.1
java-version: 11
- nifi-profile: nifi-2.6.0
java-version: 21
- nifi-profile: nifi-2.7.2
java-version: 21
- nifi-profile: nifi-2.9.0
java-version: 21
- nifi-profile: nifi-2.12.0
java-version: 21
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ This repository contains a plugin for Apache NiFi in order to add support for th

For building the plugin in `/authorizer`.

- [Java 11 JDK](https://www.oracle.com/java/technologies/javase/jdk11-archive-downloads.html) (NiFi 1.x) or [Java 21 JDK](https://www.oracle.com/java/technologies/javase/jdk21-archive-downloads.html) (NiFi 2.x)
- [Java 21 JDK](https://www.oracle.com/java/technologies/javase/jdk21-archive-downloads.html) (NiFi 2.x).
Nix users can run: `nix shell nixpkgs#maven nixpkgs#temurin-bin-21`.
- Maven, via the bundled `mvnw` wrapper (no separate install needed; the pinned version can be bumped in `.mvn/wrapper/maven-wrapper.properties`)

### Docker
Expand All @@ -52,7 +53,7 @@ To build the plugin execute the following from the repository root:
This builds the `.nar`-plugin in the `/target` folder for the latest NiFi version. To target a specific version of NiFi use the corresponding maven profile.

```bash
./mvnw --file authorizer/pom.xml install -Pnifi-1.28.1
./mvnw --file authorizer/pom.xml install -Pnifi-2.12.0
```

### Using the plugin
Expand Down
34 changes: 16 additions & 18 deletions authorizer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<groupId>org.nifiopa.nifiopa</groupId>
<artifactId>opa-authorizer</artifactId>
<version>0.6.0</version>
<version>0.7.0</version>
<packaging>nar</packaging>

<name>nifiopa</name>
Expand All @@ -22,6 +22,7 @@
<dependency>
<groupId>com.styra</groupId>
<artifactId>opa</artifactId>
<!-- See: https://central.sonatype.com/artifact/com.styra/opa -->
<version>2.1.1</version>
<!-- Exclude JUnit dependencies which are defined with runtime scope in com.styra:opa -->
<exclusions>
Expand All @@ -38,17 +39,20 @@
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>2.25.3</version>
<!-- See: https://central.sonatype.com/artifact/org.apache.logging.log4j/log4j-slf4j-impl -->
<version>2.26.1</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.25.4</version>
<!-- See: https://central.sonatype.com/artifact/org.apache.logging.log4j/log4j-core -->
<version>2.26.1</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.25.3</version>
<!-- See: https://central.sonatype.com/artifact/org.apache.logging.log4j/log4j-api -->
<version>2.26.1</version>
</dependency>
<dependency>
<groupId>org.apache.nifi</groupId>
Expand All @@ -59,7 +63,8 @@
<dependency>
<groupId>com.github.ben-manes.caffeine</groupId>
<artifactId>caffeine</artifactId>
<version>3.2.3</version>
<!-- See: https://central.sonatype.com/artifact/com.github.ben-manes.caffeine/caffeine -->
<version>3.3.0</version>
</dependency>
</dependencies>

Expand All @@ -68,7 +73,8 @@
<plugin>
<groupId>org.apache.nifi</groupId>
<artifactId>nifi-nar-maven-plugin</artifactId>
<version>1.3.4</version>
<!-- See: https://central.sonatype.com/artifact/org.apache.nifi/nifi-nar-maven-plugin -->
<version>2.4.0</version>
<extensions>true</extensions>
<!--<configuration>
<narGroup>com.nifiopa.nars</narGroup>
Expand Down Expand Up @@ -141,14 +147,6 @@
</build>

<profiles>
<profile>
<id>nifi-1.28.1</id>
<properties>
<nifi-framework-api.version>1.28.1</nifi-framework-api.version>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>
</profile>
<profile>
<id>nifi-2.6.0</id>
<properties>
Expand All @@ -158,20 +156,20 @@
</properties>
</profile>
<profile>
<id>nifi-2.7.2</id>
<id>nifi-2.9.0</id>
<properties>
<nifi-framework-api.version>2.7.2</nifi-framework-api.version>
<nifi-framework-api.version>2.9.0</nifi-framework-api.version>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
</properties>
</profile>
<profile>
<id>nifi-2.9.0</id>
<id>nifi-2.12.0</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<nifi-framework-api.version>2.9.0</nifi-framework-api.version>
<nifi-framework-api.version>2.12.0</nifi-framework-api.version>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
</properties>
Expand Down
Loading