Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/github_actions/dcarbone/install-y…
Browse files Browse the repository at this point in the history
…q-action-1.1.1
  • Loading branch information
eddiecarpenter authored Aug 17, 2024
2 parents 7726c26 + 604aaf3 commit f52425f
Show file tree
Hide file tree
Showing 46 changed files with 2,366 additions and 7,708 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
# In each subsection folders are ordered first by depth, then alphabetically.
# This should make it easy to add new rules without breaking existing ones.

#* @quarkiverse/quarkiverse-diameter
* @quarkiverse/quarkiverse-jdiameter
24 changes: 11 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
fail-fast: false
matrix:
# os: [windows-latest, macos-latest, ubuntu-latest]
os: [ubuntu-latest]
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Prepare git
Expand All @@ -51,30 +51,28 @@ jobs:
with:
distribution: temurin
java-version: 21
maven-version: 3.9.6
cache: 'maven'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE

- name: Display settings.xml
run: |
cat /home/runner/.m2/settings.xml
- name: Configure GPG Key
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
run: |
echo -n "$GPG_PRIVATE_KEY"
echo -n "$GPG_PRIVATE_KEY" | base64 --decode | gpg --import
- name: Set up Maven 3.9.6
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.9.6

- name: Display Maven Version
- name: Display Maven Version
run: mvn -v

- name: Build with Maven
run: mvn -B clean install -Dno-format

- name: Build with Maven (Native)
run: mvn -B install -Dnative -Dquarkus.native.container-build -Dnative.surefire.skip
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
15 changes: 10 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Quarkiverse Release

on:
pull_request:
types: [closed]
types: [ closed ]
paths:
- '.github/project.yml'

Expand Down Expand Up @@ -30,18 +30,23 @@ jobs:

- uses: actions/checkout@v4

- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
java-version: 21
cache: 'maven'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE

- name: Set up Maven 3.9.6
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.9.6

- name: Configure Git author
run: |
git config --local user.email "[email protected]"
Expand All @@ -50,8 +55,8 @@ jobs:
- name: Update latest release version in docs
run: |
mvn -B -ntp -pl docs -am package -DskipTests -DskipITs -Denforcer.skip -Dformatter.skip -Dimpsort.skip
if ! git diff --quiet docs/modules/ROOT/pages/includes/attributes.adoc; then
git add docs/modules/ROOT/pages/includes/attributes.adoc
if ! git diff --quiet docs/modules/ROOT/pages/includes; then
git add docs/modules/ROOT/pages/includes
git commit -m "Update the latest release version ${{steps.metadata.outputs.current-version}} in documentation"
fi
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-) <!-- ALL-CONTRIBUTORS-BADGE:END -->
[![Build](https://github.com/eddiecarpenter/go-jdiameter/actions/workflows/build.yml/badge.svg)](https://github.com/eddiecarpenter/go-jdiameter/actions/workflows/build.yml)
[![Maven Central](https://img.shields.io/maven-central/v/io.quarkiverse.quarkus-zookeeper/quarkus-zookeeper.svg?label=Maven%20Central&style=flat-square)](https://search.maven.org/artifact/io.quarkiverse.quarkus-zookeeper/quarkus-zookeeper)
![License](https://img.shields.io/github/license/eddiecarpenter/go-jdiameter)
[![Build](https://github.com/quarkiverse/quarkus-jdiameter/actions/workflows/build.yml/badge.svg?style=for-the-badge)](https://github.com/quarkiverse/quarkus-jdiameter/actions/workflows/build.yml)
[![Maven Central](https://img.shields.io/maven-central/v/io.quarkiverse.jdiameter/quarkus-jdiameter.svg?label=Maven%20Central&style=flat-square)](https://search.maven.org/artifact/io.quarkiverse.jdiameter/quarkus-jdiameter)
[![GitHub](https://img.shields.io/github/license/quarkiverse/quarkus-jdiameter?color=blue&style=flat-square)](https://github.com/quarkiverse/quarkus-jdiameter/blob/main/LICENSE)

This is a fork of the RestComm jDiameter Stack with a couple of enhancements done:

Expand Down
6 changes: 3 additions & 3 deletions core/jdiameter-ha/api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>io.quarkiverse.diameter</groupId>
<groupId>io.quarkiverse.jdiameter</groupId>
<artifactId>jdiameter-ha-parent</artifactId>
<version>2.0.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>jdiameter-ha-api</artifactId>

<name>Quarkus :: Diameter Stack HA :: ${project.artifactId}</name>
<name>Quarkus :: JDiameter Stack HA :: Api</name>

<dependencies>
<dependency>
<groupId>io.quarkiverse.diameter</groupId>
<groupId>io.quarkiverse.jdiameter</groupId>
<artifactId>jdiameter-api</artifactId>
</dependency>
</dependencies>
Expand Down
6 changes: 3 additions & 3 deletions core/jdiameter-ha/impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>io.quarkiverse.diameter</groupId>
<groupId>io.quarkiverse.jdiameter</groupId>
<artifactId>jdiameter-ha-parent</artifactId>
<version>2.0.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>jdiameter-ha-impl</artifactId>

<name>Quarkus :: Diameter Stack HA :: ${project.artifactId}</name>
<name>Quarkus :: JDiameter Stack HA :: Impl</name>

<dependencies>
<dependency>
Expand All @@ -22,7 +22,7 @@
</dependency>

<dependency>
<groupId>io.quarkiverse.diameter</groupId>
<groupId>io.quarkiverse.jdiameter</groupId>
<artifactId>jdiameter-impl</artifactId>
</dependency>

Expand Down
4 changes: 2 additions & 2 deletions core/jdiameter-ha/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>io.quarkiverse.diameter</groupId>
<groupId>io.quarkiverse.jdiameter</groupId>
<artifactId>diameter-core-parent</artifactId>
<version>2.0.0</version>
<relativePath>../pom.xml</relativePath>
Expand All @@ -14,7 +14,7 @@

<packaging>pom</packaging>

<name>Quarkus :: Diameter Stack HA :: ${project.artifactId}</name>
<name>Quarkus :: JDiameter Stack HA :: Parent</name>

<modules>
<module>api</module>
Expand Down
4 changes: 2 additions & 2 deletions core/jdiameter/api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>io.quarkiverse.diameter</groupId>
<groupId>io.quarkiverse.jdiameter</groupId>
<artifactId>jdiameter-core</artifactId>
<version>2.0.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>jdiameter-api</artifactId>

<name>Quarkus :: Diameter Stack :: API</name>
<name>Quarkus :: JDiameter Stack :: API</name>

<dependencies/>

Expand Down
6 changes: 3 additions & 3 deletions core/jdiameter/impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,23 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>io.quarkiverse.diameter</groupId>
<groupId>io.quarkiverse.jdiameter</groupId>
<artifactId>jdiameter-core</artifactId>
<version>2.0.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>jdiameter-impl</artifactId>

<name>Quarkus :: Diameter Stack :: impl</name>
<name>Quarkus :: JDiameter Stack :: Impl</name>

<properties>
<vendor>Quarkus</vendor>
</properties>

<dependencies>
<dependency>
<groupId>io.quarkiverse.diameter</groupId>
<groupId>io.quarkiverse.jdiameter</groupId>
<artifactId>jdiameter-api</artifactId>
</dependency>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions core/jdiameter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>io.quarkiverse.diameter</groupId>
<groupId>io.quarkiverse.jdiameter</groupId>
<artifactId>diameter-core-parent</artifactId>
<version>2.0.0</version>
<relativePath>../pom.xml</relativePath>
Expand All @@ -15,7 +15,7 @@

<packaging>pom</packaging>

<name>Quarkus :: Diameter Stack :: ${project.artifactId}</name>
<name>Quarkus :: JDiameter Stack :: Parent</name>

<modules>
<module>api</module>
Expand Down
39 changes: 3 additions & 36 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>io.quarkiverse.diameter</groupId>
<artifactId>diameter-parent</artifactId>
<groupId>io.quarkiverse.jdiameter</groupId>
<artifactId>quarkus-jdiameter-parent</artifactId>
<version>2.0.0</version>
<relativePath>../pom.xml</relativePath>
</parent>
Expand All @@ -14,40 +14,7 @@

<artifactId>diameter-core-parent</artifactId>

<name>Quarkus :: Diameter Core :: ${project.artifactId}</name>

<developers>
<developer>
<id>ammendonca</id>
<name>Alexandre Mendonça</name>
<email>[email protected]</email>
<organization>TeleStax</organization>
<organizationUrl>http://www.telestax.com/</organizationUrl>
<roles>
<role>Project Lead</role>
</roles>
<timezone>0</timezone>
</developer>
<developer>
<id>baranowb</id>
<name>Bartosz Baranowski</name>
<email>[email protected]</email>
<organization>TeleStax</organization>
<organizationUrl>http://www.telestax.com/</organizationUrl>
<roles>
<role>Developer</role>
</roles>
<timezone>+1</timezone>
</developer>
</developers>

<licenses>
<license>
<name>GNU Affero General Public License</name>
<url>https://www.gnu.org/licenses/agpl-3.0.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<name>Quarkus :: JDiameter Core :: Parent</name>

<modules>
<module>jdiameter</module>
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/nav.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
* xref:Diameter_User_Guide.adoc[Original JDiameter User Guide]
* xref:Quarkus/Implementing-Diameter-Service.adoc[Implementing Diameter Service]
* xref:Implementing-Diameter-Service.adoc[Implementing Diameter Service]
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include::../includes/attributes.adoc[]
include::includes/attributes.adoc[]
= Document Conventions

This manual uses several conventions to highlight certain words and phrases and draw attention to specific pieces of information.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include::../includes/attributes.adoc[]
include::includes/attributes.adoc[]
= {product-name}

The Diameter protocol is a computer networking protocol for Authentication, Authorization and Accounting, as defined in link:https://datatracker.ietf.org/doc/html/rfc6733[RFC6733].
Expand Down Expand Up @@ -43,12 +43,15 @@ The DiameterService interceptor will initialise all the configured services and
[source,java]
----
@DiameterService <1> @DiameterServiceOption(config = "client1") <2> public class MyDiameterService implements ClientCCASessionListener <3>
@DiameterService <1>
@DiameterServiceOption(config = "client1") <2>
public class MyDiameterService implements ClientCCASessionListener <3>
{
@Override public void doCreditControlAnswer(ClientCCASession session, JCreditControlRequest request, JCreditControlAnswer answer) throws InternalException
{
//...
} }
@Override public void doCreditControlAnswer(ClientCCASession session, JCreditControlRequest request, JCreditControlAnswer answer) throws InternalException
{
//...
}
}
----

Expand Down Expand Up @@ -105,9 +108,10 @@ TIP: The stack will only be active if there is a defined DiameterService for the
[source,java]
----
@ApplicationScoped public class Demo
{
@DiameterConfig <1> Stack stack;
@ApplicationScoped
public class Demo {
@DiameterConfig <1>
Stack stack;
@DiameterConfig("test2") <2>
Configuration test2Config;
Expand Down Expand Up @@ -213,4 +217,4 @@ quarkus.diameter.test1.network.realms."server.test.com".application-id.auth-appl
TIP: For more information about the extension configuration please refer to the <<configuration-reference,Configuration Reference>>.

[[configuration-reference]]
include::../includes/quarkus-diameter.adoc[leveloffset=+1]
include::includes/quarkus-jdiameter.adoc[leveloffset=+1]
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include::../includes/attributes.adoc[]
include::includes/attributes.adoc[]
:sectnums!:

[appendix]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include::../includes/attributes.adoc[]
include::includes/attributes.adoc[]
:sectnums!:

[preface]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include::../includes/attributes.adoc[]
include::includes/attributes.adoc[]
= Document Conventions

This manual uses several conventions to highlight certain words and phrases and draw attention to specific pieces of information.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include::../includes/attributes.adoc[]
include::includes/attributes.adoc[]
= Provide feedback to the authors!
(((feedback)))

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include::../includes/attributes.adoc[]
include::includes/attributes.adoc[]
:sectnums!:

[appendix]
Expand Down
Loading

0 comments on commit f52425f

Please sign in to comment.