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 groupId to com.contentgrid.opa-java-client #7

Merged
merged 1 commit 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
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ jobs:
env:
SIGNING_PRIVATE_KEY: ${{ secrets.MAVEN_CENTRAL_GPG_KEY }}
SIGNING_PASSWORD: ${{ secrets.MAVEN_CENTRAL_GPG_PASSWORD }}
ORG_GRADLE_PROJECT_sonatype_username: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
ORG_GRADLE_PROJECT_sonatype_password: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
ORG_GRADLE_PROJECT_sonatype_username: ${{ secrets.SONATYPE_S01_USERNAME }}
ORG_GRADLE_PROJECT_sonatype_password: ${{ secrets.SONATYPE_S01_PASSWORD }}
run: ./gradlew publish
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,20 @@ 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)

Changed:
* [#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
## 0.3.0 - 2021-12-09

Fixed:

* [#4] - OPA client can now serialize `java.time` classes as `input`

[#4]: https://github.com/xenit-eu/opa-java-client/pull/4
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# OpenPolicyAgent Java Client

[![Build](https://github.com/content-cloud/opa-java-client/workflows/build/badge.svg?branch=main)](https://github.com/xenit-eu/opa-java-client/actions/workflows/ci.yml)
[![Maven Central](https://img.shields.io/maven-central/v/eu.xenit.contentcloud/opa-async-java-client?color=blue)](https://search.maven.org/search?q=a:opa-async-java-client%20g:eu.xenit.contentcloud)
[![Build](https://github.com/xenit-eu/opa-java-client/workflows/build/badge.svg?branch=main)](https://github.com/xenit-eu/opa-java-client/actions/workflows/ci.yml)
[![Maven Central](https://img.shields.io/maven-central/v/com.contentgrid.opa-java-client/opa-async-java-client?color=blue)](https://search.maven.org/search?q=a:opa-async-java-client%20g:com.contentgrid.opa-java-client)
[![License](https://img.shields.io/github/license/xenit-eu/opa-java-client?color=blue)](LICENSE)

An asynchronous java client library for the [OpenPolicyAgent](https://www.openpolicyagent.org/) [REST API](https://www.openpolicyagent.org/docs/latest/rest-api/).
Expand All @@ -17,7 +17,7 @@ The design of the project is borrowed from [Bisnode/opa-java-client](https://git
uses an async programming model instead, which makes it suitable to be used in a reactive application stack.

This client library uses the JDK11+ HttpClient by default, but allows you to plug in your own http-client by providing
an implementation for the [OpaRestClient](https://github.com/xenit-eu/opa-async-java-client/blob/main/opa-async-java-client/src/main/java/eu/xenit/contentcloud/abac/opa/client/rest/OpaRestClient.java)
an implementation for the [OpaRestClient](https://github.com/xenit-eu/opa-async-java-client/blob/main/opa-async-java-client/src/main/java/com/contentgrid/opa/client/rest/OpaHttpClient.java)
interface.

## Installation
Expand All @@ -27,14 +27,14 @@ interface.
Using Gradle:

```groovy
implementation "eu.xenit.contentcloud:opa-async-java-client:${version}"
implementation "com.contentgrid.opa-java-client:opa-async-java-client:${version}"
```

Using Maven:

```xml
<dependency>
<groupId>eu.xenit.contentcloud</groupId>
<groupId>com.contentgrid.opa-java-client</groupId>
<artifactId>opa-async-java-client</artifactId>
<version>${version}</version>
</dependency>
Expand Down
22 changes: 18 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,23 +1,37 @@
plugins {
id "org.ajoberstar.reckon" version "0.13.0"
id "io.github.gradle-nexus.publish-plugin" version '1.1.0'
}

reckon {
scopeFromProp()
snapshotFromProp()
}

configure(subprojects) {
plugins.withType(JavaPlugin) {
allprojects {
pluginManager.withPlugin('maven-publish') {
apply from: "${rootDir}/gradle/publish.gradle"
}
pluginManager.withPlugin('java') {
java {
sourceCompatibility = JavaVersion.VERSION_11
withSourcesJar()
withJavadocJar()
}

repositories {
mavenCentral()
}
}
}

reckonTagCreate.dependsOn project.getTasksByName("check", true)
nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))

username = project.findProperty('sonatype_username')
password = project.findProperty('sonatype_password')
}
}
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
group=eu.xenit.contentcloud
group=com.contentgrid.opa-java-client

springBootVersion=2.6.12
lombokVersion=1.18.22
Expand Down
33 changes: 15 additions & 18 deletions gradle/publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ apply plugin: 'signing'

publishing {
publications {
library(MavenPublication) {
from components.java
}

all {
pom {
url = 'https://github.com/xenit-eu/opa-java-client'
Expand Down Expand Up @@ -35,22 +31,23 @@ publishing {
}
}
}
}


repositories {
if (version.version.isSignificant()) {
sonatypeMavenCentral {
credentials {
username = project.findProperty('sonatype_username')
password = project.findProperty('sonatype_password')
}
pluginManager.withPlugin('java') {
publishing {
publications {
library(MavenPublication) {
from components.java
}
} else {
sonatypeSnapshots {
credentials {
username = project.findProperty('sonatype_username')
password = project.findProperty('sonatype_password')
}
}
}
}

pluginManager.withPlugin('java-platform') {
publishing {
publications {
platform(MavenPublication) {
from components.javaPlatform
}
}
}
Expand Down
3 changes: 1 addition & 2 deletions opa-async-java-client/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
plugins {
id 'java-library'
id 'maven-publish'
}

apply from: "${rootDir}/gradle/publish.gradle"

dependencies {
api platform("org.springframework.boot:spring-boot-dependencies:${springBootVersion}")

Expand Down
3 changes: 1 addition & 2 deletions rego-java/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
plugins {
id 'java-library'
id 'maven-publish'
}

apply from: "${rootDir}/gradle/publish.gradle"

dependencies {
api platform("org.springframework.boot:spring-boot-dependencies:${springBootVersion}")

Expand Down