Skip to content

Commit f6caa36

Browse files
author
Felix Hennig
committed
Migrate to maven (#61)
## Description This will fix #3 Also incrementing the version by one, and moving from `de.stackable` prefix to `tech.stackable` prefix. Test run: https://ci.stackable.tech/view/02%20Operator%20Tests%20(custom)/job/druid-operator-it-custom/40/ The test uses a custom image that includes this new version of the plugin
1 parent c4a0bf9 commit f6caa36

21 files changed

Lines changed: 135 additions & 428 deletions

File tree

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
33
---
4-
name: Java CI with Gradle
4+
name: Java CI with Maven
55

66
on:
77
push:
@@ -22,11 +22,11 @@ jobs:
2222
with:
2323
java-version: '11'
2424
distribution: 'adopt'
25-
cache: gradle
25+
cache: maven
2626
- name: Set up OpenPolicyAgent
2727
run: |
28-
curl -L -o opa https://openpolicyagent.org/downloads/v0.33.1/opa_linux_amd64_static
28+
curl -L -o opa https://openpolicyagent.org/downloads/v0.46.1/opa_linux_amd64_static
2929
chmod +x opa
3030
sudo mv opa /usr/local/bin/opa
31-
- name: Build with Gradle
32-
run: ./gradlew build
31+
- name: Build with Maven
32+
run: mvn -B package

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@
44
# Ignore Gradle build output directory
55
build
66

7-
.idea
7+
.idea
8+
9+
target

CHANGELOG.md

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

33
## [Unreleased]
44

5+
## Changed
6+
7+
- Changed build system to Maven ([#61]).
8+
- Changed module prefix from `de` to `tech` ([#61]).
9+
10+
[#61]: https://github.com/stackabletech/druid-opa-authorizer/pull/61
11+
512
## [0.3.0] - 2022-10-13
613

714
## Changed

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,11 @@
33
A Druid extension to request policy decisions from the [Open Policy Agent](https://www.openpolicyagent.org/) (OPA).
44

55
## Building
6-
Simply building the library:
6+
This repository uses maven:
77

8-
./gradlew build
8+
mvn package
99

10-
To build a zip that's easy to use with Druid use:
11-
12-
./gradlew distZip
13-
14-
The zip still has to be modified a bit, all the jars should be at the top level. At the moment this needs to be done by hand.
10+
The packaged zip plugin is located at `target/druid-opa-authorizer-0.3.0.zip`.
1511

1612
## Installing
1713
Build the distribution (zip with all the dependencies) and put it all in the extensions directory.

gradle/wrapper/gradle-wrapper.jar

-58.4 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 0 additions & 5 deletions
This file was deleted.

gradlew

Lines changed: 0 additions & 234 deletions
This file was deleted.

gradlew.bat

Lines changed: 0 additions & 89 deletions
This file was deleted.

0 commit comments

Comments
 (0)