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

Move packages from eu.xenit.contentcloud to com.contentgrid #8

Merged
merged 2 commits into from
Oct 4, 2022
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: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,19 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 0.4.0 - (Unreleased)
## 0.4.0 - 2022-10-04

Changed:
* [#8] - Moved packages to `com.contentgrid.opa`
* [#7] - Moved maven group coordinates to `com.contentgrid.opa-java-client`

Housekeeping:
* [#6] - Updated Gradle to 7.5.1
* [#6] - Updated dependencies to Spring Boot 2.6.12 baseline

[#6]: https://github.com/xenit-eu/opa-java-client/pull/6
[#7]: https://github.com/xenit-eu/opa-java-client/pull/7/files
[#7]: https://github.com/xenit-eu/opa-java-client/pull/7

## 0.3.0 - 2021-12-09

Fixed:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
package eu.xenit.contentcloud.opa.client;

package com.contentgrid.opa.client;

import com.contentgrid.opa.client.api.CompileApi;
import com.contentgrid.opa.client.api.DataApi;
import com.contentgrid.opa.client.api.QueryApi;
import com.contentgrid.opa.client.impl.CompileComponent;
import com.contentgrid.opa.client.impl.DataComponent;
import com.contentgrid.opa.client.impl.PolicyComponent;
import com.contentgrid.opa.client.impl.QueryComponent;
import com.contentgrid.opa.client.rest.OpaHttpClient;
import com.contentgrid.opa.client.rest.RestClientConfiguration.LogSpecification;
import com.contentgrid.opa.client.rest.client.jdk.DefaultOpaHttpClient;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.json.JsonMapper;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import eu.xenit.contentcloud.opa.client.api.CompileApi;
import eu.xenit.contentcloud.opa.client.api.DataApi;
import eu.xenit.contentcloud.opa.client.api.PolicyApi;
import eu.xenit.contentcloud.opa.client.api.QueryApi;
import eu.xenit.contentcloud.opa.client.impl.CompileComponent;
import eu.xenit.contentcloud.opa.client.impl.DataComponent;
import eu.xenit.contentcloud.opa.client.impl.PolicyComponent;
import eu.xenit.contentcloud.opa.client.impl.QueryComponent;
import eu.xenit.contentcloud.opa.client.rest.OpaHttpClient;
import eu.xenit.contentcloud.opa.client.rest.RestClientConfiguration.LogSpecification;
import eu.xenit.contentcloud.opa.client.rest.client.jdk.DefaultOpaHttpClient;
import com.contentgrid.opa.client.api.PolicyApi;
import java.net.http.HttpClient;
import java.net.http.HttpClient.Redirect;
import java.time.Duration;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package eu.xenit.contentcloud.opa.client;
package com.contentgrid.opa.client;

import lombok.Getter;
import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package eu.xenit.contentcloud.opa.client.api;
package com.contentgrid.opa.client.api;

import com.fasterxml.jackson.annotation.JsonAnySetter;
import eu.xenit.contentcloud.opa.rego.ast.QuerySet;
import com.contentgrid.opa.rego.ast.QuerySet;
import java.util.List;
import java.util.Map;
import java.util.concurrent.CompletableFuture;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package eu.xenit.contentcloud.opa.client.api;
package com.contentgrid.opa.client.api;

import java.util.concurrent.CompletableFuture;
import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package eu.xenit.contentcloud.opa.client.api;
package com.contentgrid.opa.client.api;

import eu.xenit.contentcloud.opa.rego.ast.AbstractSyntaxTree;
import com.contentgrid.opa.rego.ast.AbstractSyntaxTree;
import java.util.List;
import java.util.concurrent.CompletableFuture;
import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package eu.xenit.contentcloud.opa.client.api;
package com.contentgrid.opa.client.api;

import java.util.HashMap;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package eu.xenit.contentcloud.opa.client.impl;
package com.contentgrid.opa.client.impl;

import eu.xenit.contentcloud.opa.client.api.CompileApi;
import eu.xenit.contentcloud.opa.client.rest.OpaHttpClient;
import com.contentgrid.opa.client.api.CompileApi;
import com.contentgrid.opa.client.rest.OpaHttpClient;
import java.util.concurrent.CompletableFuture;
import lombok.RequiredArgsConstructor;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package eu.xenit.contentcloud.opa.client.impl;
package com.contentgrid.opa.client.impl;

import eu.xenit.contentcloud.opa.client.api.DataApi;
import eu.xenit.contentcloud.opa.client.rest.OpaHttpClient;
import com.contentgrid.opa.client.api.DataApi;
import com.contentgrid.opa.client.rest.OpaHttpClient;
import java.util.concurrent.CompletableFuture;
import lombok.RequiredArgsConstructor;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package eu.xenit.contentcloud.opa.client.impl;
package com.contentgrid.opa.client.impl;

import eu.xenit.contentcloud.opa.client.rest.OpaHttpClient;
import eu.xenit.contentcloud.opa.client.api.PolicyApi;
import eu.xenit.contentcloud.opa.client.rest.http.MediaType;
import com.contentgrid.opa.client.rest.OpaHttpClient;
import com.contentgrid.opa.client.api.PolicyApi;
import com.contentgrid.opa.client.rest.http.MediaType;
import java.util.concurrent.CompletableFuture;
import lombok.RequiredArgsConstructor;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package eu.xenit.contentcloud.opa.client.impl;
package com.contentgrid.opa.client.impl;

import eu.xenit.contentcloud.opa.client.api.QueryApi;
import eu.xenit.contentcloud.opa.client.rest.OpaHttpClient;
import com.contentgrid.opa.client.api.QueryApi;
import com.contentgrid.opa.client.rest.OpaHttpClient;
import java.util.concurrent.CompletableFuture;
import lombok.AllArgsConstructor;
import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package eu.xenit.contentcloud.opa.client.rest;
package com.contentgrid.opa.client.rest;

import eu.xenit.contentcloud.opa.client.rest.http.HttpRequestHeaders;
import com.contentgrid.opa.client.rest.http.HttpRequestHeaders;
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package eu.xenit.contentcloud.opa.client.rest;
package com.contentgrid.opa.client.rest;

import java.util.function.Consumer;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
package eu.xenit.contentcloud.opa.client.rest.client.jdk;

package com.contentgrid.opa.client.rest.client.jdk;

import com.contentgrid.opa.client.rest.OpaHttpClient;
import com.contentgrid.opa.client.rest.client.jdk.converter.ConverterProcessor;
import com.contentgrid.opa.client.rest.client.jdk.converter.HttpBodyConverter.DeserializationContext;
import com.contentgrid.opa.client.rest.client.jdk.converter.HttpBodyConverter.SerializationContext;
import com.contentgrid.opa.client.rest.client.jdk.converter.JacksonBodyConverter;
import com.contentgrid.opa.client.rest.client.jdk.converter.StringConverter;
import com.contentgrid.opa.client.rest.http.HttpRequestHeaders;
import com.contentgrid.opa.client.rest.http.HttpStatusException;
import com.contentgrid.opa.client.rest.http.MediaType;
import com.fasterxml.jackson.databind.ObjectMapper;
import eu.xenit.contentcloud.opa.client.rest.OpaHttpClient;
import eu.xenit.contentcloud.opa.client.rest.RestClientConfiguration;
import eu.xenit.contentcloud.opa.client.rest.client.jdk.converter.ConverterProcessor;
import eu.xenit.contentcloud.opa.client.rest.client.jdk.converter.HttpBodyConverter.DeserializationContext;
import eu.xenit.contentcloud.opa.client.rest.client.jdk.converter.HttpBodyConverter.SerializationContext;
import eu.xenit.contentcloud.opa.client.rest.client.jdk.converter.JacksonBodyConverter;
import eu.xenit.contentcloud.opa.client.rest.client.jdk.converter.StringConverter;
import eu.xenit.contentcloud.opa.client.rest.http.HttpMethod;
import eu.xenit.contentcloud.opa.client.rest.http.HttpRequestHeaders;
import eu.xenit.contentcloud.opa.client.rest.http.HttpStatusException;
import eu.xenit.contentcloud.opa.client.rest.http.MediaType;
import com.contentgrid.opa.client.rest.RestClientConfiguration;
import com.contentgrid.opa.client.rest.http.HttpMethod;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package eu.xenit.contentcloud.opa.client.rest.client.jdk;
package com.contentgrid.opa.client.rest.client.jdk;

import eu.xenit.contentcloud.opa.client.rest.RestClientConfiguration;
import eu.xenit.contentcloud.opa.client.rest.client.jdk.RequestLoggerConfiguration.LogDetail;
import com.contentgrid.opa.client.rest.RestClientConfiguration;
import com.contentgrid.opa.client.rest.client.jdk.RequestLoggerConfiguration.LogDetail;
import java.net.URI;
import java.util.HashSet;
import java.util.Set;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package eu.xenit.contentcloud.opa.client.rest.client.jdk;
package com.contentgrid.opa.client.rest.client.jdk;

import eu.xenit.contentcloud.opa.client.rest.http.HttpRequestHeaders;
import com.contentgrid.opa.client.rest.http.HttpRequestHeaders;
import java.util.Optional;

public class HttpEntity {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package eu.xenit.contentcloud.opa.client.rest.client.jdk;
package com.contentgrid.opa.client.rest.client.jdk;

import eu.xenit.contentcloud.opa.client.rest.http.HttpRequestHeaders;
import com.contentgrid.opa.client.rest.http.HttpRequestHeaders;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package eu.xenit.contentcloud.opa.client.rest.client.jdk;
package com.contentgrid.opa.client.rest.client.jdk;

import java.io.ByteArrayOutputStream;
import java.net.http.HttpClient;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package eu.xenit.contentcloud.opa.client.rest.client.jdk;
package com.contentgrid.opa.client.rest.client.jdk;

import java.util.Collection;
import java.util.HashSet;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package eu.xenit.contentcloud.opa.client.rest.client.jdk.converter;
package com.contentgrid.opa.client.rest.client.jdk.converter;

import eu.xenit.contentcloud.opa.client.rest.client.jdk.converter.HttpBodyConverter.DeserializationContext;
import eu.xenit.contentcloud.opa.client.rest.client.jdk.converter.HttpBodyConverter.SerializationContext;
import eu.xenit.contentcloud.opa.client.rest.client.jdk.HttpEntity;
import com.contentgrid.opa.client.rest.client.jdk.converter.HttpBodyConverter.DeserializationContext;
import com.contentgrid.opa.client.rest.client.jdk.converter.HttpBodyConverter.SerializationContext;
import com.contentgrid.opa.client.rest.client.jdk.HttpEntity;
import java.io.IOException;
import java.io.UncheckedIOException;
import java.util.Collection;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package eu.xenit.contentcloud.opa.client.rest.client.jdk.converter;
package com.contentgrid.opa.client.rest.client.jdk.converter;

import eu.xenit.contentcloud.opa.client.rest.http.HttpRequestHeaders;
import eu.xenit.contentcloud.opa.client.rest.http.MediaType;
import com.contentgrid.opa.client.rest.http.HttpRequestHeaders;
import com.contentgrid.opa.client.rest.http.MediaType;
import java.util.Collection;
import java.util.Objects;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package eu.xenit.contentcloud.opa.client.rest.client.jdk.converter;
package com.contentgrid.opa.client.rest.client.jdk.converter;

import com.contentgrid.opa.client.rest.http.MediaType;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.json.JsonMapper;
import eu.xenit.contentcloud.opa.client.rest.http.MediaType;
import java.io.IOException;
import java.io.UncheckedIOException;
import java.util.Collection;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package eu.xenit.contentcloud.opa.client.rest.client.jdk.converter;
package com.contentgrid.opa.client.rest.client.jdk.converter;

import eu.xenit.contentcloud.opa.client.rest.http.MediaType;
import com.contentgrid.opa.client.rest.http.MediaType;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.util.Collection;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package eu.xenit.contentcloud.opa.client.rest.http;
package com.contentgrid.opa.client.rest.http;

public enum HttpMethod {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package eu.xenit.contentcloud.opa.client.rest.http;
package com.contentgrid.opa.client.rest.http;

import java.nio.charset.Charset;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package eu.xenit.contentcloud.opa.client.rest.http;
package com.contentgrid.opa.client.rest.http;

import lombok.Getter;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package eu.xenit.contentcloud.opa.client.rest.http;
package com.contentgrid.opa.client.rest.http;

import java.nio.charset.Charset;
import java.util.Arrays;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
package eu.xenit.contentcloud.opa.client;
package com.contentgrid.opa.client;

import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
import static org.assertj.core.api.InstanceOfAssertFactories.MAP;

import eu.xenit.contentcloud.opa.client.rest.http.HttpStatusException;
import eu.xenit.contentcloud.opa.rego.ast.Expression;
import eu.xenit.contentcloud.opa.rego.ast.Query;
import eu.xenit.contentcloud.opa.rego.ast.Term;
import eu.xenit.contentcloud.opa.rego.ast.Term.Ref;
import eu.xenit.contentcloud.opa.client.api.CompileApi;
import eu.xenit.contentcloud.opa.client.api.CompileApi.PartialEvaluationRequest;
import eu.xenit.contentcloud.opa.client.api.DataApi;
import eu.xenit.contentcloud.opa.client.api.DataApi.GetDataResponse;
import eu.xenit.contentcloud.opa.client.api.PolicyApi.ListPoliciesResponse;
import com.contentgrid.opa.client.api.CompileApi;
import com.contentgrid.opa.client.api.CompileApi.PartialEvaluationRequest;
import com.contentgrid.opa.rego.ast.Query;
import com.contentgrid.opa.client.rest.http.HttpStatusException;
import com.contentgrid.opa.rego.ast.Expression;
import com.contentgrid.opa.rego.ast.Term;
import com.contentgrid.opa.rego.ast.Term.Ref;
import com.contentgrid.opa.client.api.DataApi;
import com.contentgrid.opa.client.api.DataApi.GetDataResponse;
import com.contentgrid.opa.client.api.PolicyApi.ListPoliciesResponse;
import java.io.IOException;
import java.io.UncheckedIOException;
import java.nio.charset.StandardCharsets;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package eu.xenit.contentcloud.opa.client.rest.client.jdk;
package com.contentgrid.opa.client.rest.client.jdk;

import eu.xenit.contentcloud.opa.client.OpaClient;
import eu.xenit.contentcloud.opa.client.rest.client.jdk.converter.HttpBodyConverter;
import eu.xenit.contentcloud.opa.client.rest.http.MediaType;
import com.contentgrid.opa.client.rest.client.jdk.converter.HttpBodyConverter;
import com.contentgrid.opa.client.rest.http.MediaType;
import com.contentgrid.opa.client.OpaClient;
import org.junit.jupiter.api.Test;

import java.time.Instant;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package eu.xenit.contentcloud.opa.rego.ast;
package com.contentgrid.opa.rego.ast;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package eu.xenit.contentcloud.opa.rego.ast;
package com.contentgrid.opa.rego.ast;

import java.util.List;
import lombok.AllArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package eu.xenit.contentcloud.opa.rego.ast;
package com.contentgrid.opa.rego.ast;

public interface Node {
<T> T accept(RegoVisitor<T> visitor);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package eu.xenit.contentcloud.opa.rego.ast;
package com.contentgrid.opa.rego.ast;

import java.util.List;
import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package eu.xenit.contentcloud.opa.rego.ast;
package com.contentgrid.opa.rego.ast;

import java.util.ArrayList;
import java.util.Collection;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package eu.xenit.contentcloud.opa.rego.ast;
package com.contentgrid.opa.rego.ast;

import java.util.ArrayList;
import java.util.List;
Expand Down
Loading