Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - Migrate to maven #61

Closed
wants to merge 9 commits into from
Closed
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
10 changes: 5 additions & 5 deletions .github/workflows/gradle.yml → .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
---
name: Java CI with Gradle
name: Java CI with Maven

on:
push:
Expand All @@ -22,11 +22,11 @@ jobs:
with:
java-version: '11'
distribution: 'adopt'
cache: gradle
cache: maven
- name: Set up OpenPolicyAgent
run: |
curl -L -o opa https://openpolicyagent.org/downloads/v0.33.1/opa_linux_amd64_static
curl -L -o opa https://openpolicyagent.org/downloads/v0.46.1/opa_linux_amd64_static
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that i see this. We only support OPA up to 0.45.0 i think. Eventually we should check against versions we support?

chmod +x opa
sudo mv opa /usr/local/bin/opa
- name: Build with Gradle
run: ./gradlew build
- name: Build with Maven
run: mvn -B package
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@
# Ignore Gradle build output directory
build

.idea
.idea

target
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

## [Unreleased]

## Changed

- Changed build system to Maven ([#61]).
- Changed module prefix from `de` to `tech` ([#61]).

[#61]: https://github.com/stackabletech/druid-opa-authorizer/pull/61

## [0.3.0] - 2022-10-13

## Changed
Expand Down
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,11 @@
A Druid extension to request policy decisions from the [Open Policy Agent](https://www.openpolicyagent.org/) (OPA).

## Building
Simply building the library:
This repository uses maven:

./gradlew build
mvn package

To build a zip that's easy to use with Druid use:

./gradlew distZip

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.
The packaged zip plugin is located at `target/druid-opa-authorizer-0.3.0.zip`.

## Installing
Build the distribution (zip with all the dependencies) and put it all in the extensions directory.
Expand Down
Binary file removed gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 0 additions & 5 deletions gradle/wrapper/gradle-wrapper.properties

This file was deleted.

234 changes: 0 additions & 234 deletions gradlew

This file was deleted.

89 changes: 0 additions & 89 deletions gradlew.bat

This file was deleted.

Loading