Skip to content

Commit c54e44d

Browse files
authored
chore: Update druid-opa-authorizer for 25.11.0 (#134)
* chore: Update druid-opa-authorizer for 25.11.0 * update PR template * add changelog entry
1 parent 854ae44 commit c54e44d

File tree

6 files changed

+50
-48
lines changed

6 files changed

+50
-48
lines changed

.github/pull_request_template.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,11 @@
77
- Not all of these items are applicable to all PRs, the author should update this template to only leave the boxes in that are relevant
88
- Please make sure all these things are done and tick the boxes
99

10-
```[tasklist]
1110
# Reviewer
1211
- [ ] Code contains useful comments
1312
- [ ] (Integration-)Test cases added
1413
- [ ] Documentation added or updated
1514
- [ ] Changelog updated
16-
```
1715

18-
```[tasklist]
1916
# Acceptance
2017
- [ ] Proper release label has been added
21-
```
22-

.github/workflows/maven.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
2121
matrix:
2222
profile:
2323
- {druid: druid-30.0.1, java: '17'}
24-
- {druid: druid-31.0.1, java: '17'}
2524
- {druid: druid-33.0.0, java: '17'}
25+
- {druid: druid-34.0.0, java: '17'}
2626
steps:
2727
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2828

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ on:
1010
type: choice
1111
options:
1212
- druid-30.0.1
13-
- druid-31.0.1
1413
- druid-33.0.0
14+
- druid-34.0.0
1515
stackable-version:
1616
description: 'The stackable "patch" version to use for this release (e.g., "0").'
1717
required: true

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
## [Unreleased]
44

5+
### Added
6+
7+
- Add support for Druid 34.0.0 ([#134]).
8+
9+
### Removed
10+
11+
- Remove support for Druid 31.0.1 ([#134]).
12+
13+
[#134]: https://github.com/stackabletech/druid-opa-authorizer/pull/134
14+
515
## [0.7.0] - 2025-05-31
616

717
### Added

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ An Apache Druid extension to request policy decisions from [Open Policy Agent](h
77
This project was tested against these Druid versions:
88

99
- 30.0.1
10-
- 31.0.1
1110
- 33.0.0
11+
- 34.0.0
1212

1313
## Building
1414

1515
This repository uses Maven and requires at least Java 11 to build:
1616

17-
mvn -P druid-33.0.0 clean package
17+
mvn -P druid-34.0.0 clean package
1818

1919
Please check that the Druid version you are building for is supported and adapt the profile accordingly.
2020
The result of this is a JAR file in the `target` directory.

pom.xml

Lines changed: 36 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,12 @@
9595
<version>${druid.version}</version>
9696
<scope>provided</scope>
9797
</dependency>
98+
<dependency>
99+
<groupId>org.apache.druid</groupId>
100+
<artifactId>druid-processing</artifactId>
101+
<version>${druid.version}</version>
102+
<scope>provided</scope>
103+
</dependency>
98104
</dependencies>
99105

100106
<build>
@@ -154,12 +160,10 @@
154160
<version>${maven-enforcer-plugin.version}</version>
155161
<configuration>
156162
<rules>
157-
<banDuplicatePomDependencyVersions />
158-
<banDynamicVersions />
159163
<banDuplicatePomDependencyVersions />
160164
<banDynamicVersions />
161165
<requireActiveProfile>
162-
<profiles>druid-30.0.1,druid-31.0.1,druid-33.0.0</profiles>
166+
<profiles>druid-30.0.1,druid-33.0.0,druid-34.0.0</profiles>
163167
<all>false</all>
164168
</requireActiveProfile>
165169
<requireJavaVersion>
@@ -333,24 +337,17 @@
333337
<version>2.12.7.1</version>
334338
<scope>provided</scope>
335339
</dependency>
336-
<dependency>
337-
<groupId>org.apache.druid</groupId>
338-
<artifactId>druid-processing</artifactId>
339-
<version>${druid.version}</version>
340-
<scope>provided</scope>
341-
</dependency>
342340
</dependencies>
343341
</profile>
344342
<profile>
345-
<!-- LTS version as of 25.3 -->
346-
<id>druid-31.0.1</id>
343+
<id>druid-33.0.0</id>
347344
<properties>
348345
<java.version>17</java.version>
349-
<druid.version>31.0.1</druid.version>
346+
<druid.version>33.0.0</druid.version>
350347
<guava.version>32.0.1-jre</guava.version>
351348
<guice.version>4.1.0</guice.version>
352349
<!--
353-
jackson.version in 31.0.1 is actually specified as 2.12.7.20221012 but according to the release notes
350+
jackson.version in 33.0.0 is actually specified as 2.12.7.20221012 but according to the release notes
354351
https://github.com/FasterXML/jackson/wiki/Jackson-Release-2.12#micro-patches that is "only" the BOM which
355352
specifies almost all dependencies to be 2.12.7 with the exception of jackson-databind which is at 2.12.7.1:
356353
https://repo1.maven.org/maven2/com/fasterxml/jackson/jackson-bom/2.12.7.20221012/jackson-bom-2.12.7.20221012.pom
@@ -365,44 +362,44 @@
365362
<version>2.12.7.1</version>
366363
<scope>provided</scope>
367364
</dependency>
368-
<dependency>
369-
<groupId>org.apache.druid</groupId>
370-
<artifactId>druid-processing</artifactId>
371-
<version>${druid.version}</version>
372-
<scope>provided</scope>
373-
</dependency>
374365
</dependencies>
375366
</profile>
376367
<profile>
377-
<id>druid-33.0.0</id>
368+
<id>druid-34.0.0</id>
378369
<properties>
379370
<java.version>17</java.version>
380-
<druid.version>33.0.0</druid.version>
381-
<guava.version>32.0.1-jre</guava.version>
382-
<guice.version>4.1.0</guice.version>
383-
<!--
384-
jackson.version in 33.0.0 is actually specified as 2.12.7.20221012 but according to the release notes
385-
https://github.com/FasterXML/jackson/wiki/Jackson-Release-2.12#micro-patches that is "only" the BOM which
386-
specifies almost all dependencies to be 2.12.7 with the exception of jackson-databind which is at 2.12.7.1:
387-
https://repo1.maven.org/maven2/com/fasterxml/jackson/jackson-bom/2.12.7.20221012/jackson-bom-2.12.7.20221012.pom
388-
so we override that here
389-
-->
390-
<jackson.version>2.12.7</jackson.version>
371+
<druid.version>34.0.0</druid.version>
372+
<guava.version>32.1.3-jre</guava.version>
373+
<guice.version>5.1.0</guice.version>
374+
<jackson.version>2.18.4</jackson.version>
391375
</properties>
392376
<dependencies>
377+
<!--
378+
In druid-server 34.0.0 all the jackson dependencies are specified to be 2.18.4 with the exception of jackson-core which is at 2.18.4.1:
379+
https://github.com/apache/druid/blob/druid-34.0.0/pom.xml#L103, so we override that here
380+
-->
393381
<dependency>
394382
<groupId>com.fasterxml.jackson.core</groupId>
395-
<artifactId>jackson-databind</artifactId>
396-
<version>2.12.7.1</version>
397-
<scope>provided</scope>
398-
</dependency>
399-
<dependency>
400-
<groupId>org.apache.druid</groupId>
401-
<artifactId>druid-processing</artifactId>
402-
<version>${druid.version}</version>
383+
<artifactId>jackson-core</artifactId>
384+
<version>2.18.4.1</version>
403385
<scope>provided</scope>
404386
</dependency>
405387
</dependencies>
388+
<!--
389+
We need to override the guice version using <dependencyManagement> here, otherwise maven chooses the highest
390+
possible version in the range given by https://github.com/FasterXML/jackson-modules-base/blob/jackson-modules-base-2.18.4/guice/pom.xml#L30
391+
which for some reason also wins in the conflict resolution, resulting in another version of the dependency than druid uses
392+
-->
393+
<dependencyManagement>
394+
<dependencies>
395+
<dependency>
396+
<groupId>com.google.inject</groupId>
397+
<artifactId>guice</artifactId>
398+
<version>${guice.version}</version>
399+
<scope>provided</scope>
400+
</dependency>
401+
</dependencies>
402+
</dependencyManagement>
406403
</profile>
407404
</profiles>
408405

0 commit comments

Comments
 (0)