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

Updating master to latest version #168

Open
wants to merge 30 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
c293bd0
Master sync (#129)
glacuesta-sa Sep 28, 2023
f9c7e87
RAD-663: Preferred MFA changes - moved to v3 endpoint. (#132)
glacuesta-sa Oct 25, 2023
e01e0c5
RAD-672: allow informing non GUID-based id as State attribute (#131)
glacuesta-sa Oct 25, 2023
c7e7dcc
Merge branch 'master' into develop
glacuesta-sa Oct 25, 2023
76a49e1
master sync
glacuesta-sa Oct 25, 2023
ebe45f1
version up v1.1.0.9
glacuesta-sa Oct 25, 2023
7d3c0b4
wrong reference
glacuesta-sa Oct 25, 2023
2f52ccd
IDP-11867: Preferred MFA latest changes (#135)
glacuesta-sa Nov 9, 2023
75f82f0
version up (1.1.0.10)
glacuesta-sa Nov 9, 2023
719b236
Merge branch 'master' into develop
glacuesta-sa Nov 9, 2023
7d7a472
Master sync
glacuesta-sa Nov 9, 2023
7c5d33e
JSI-49: Added new CI-CD (#149)
mschaab-SA Dec 18, 2023
e0b200a
Added actions test (#153)
mschaab-SA Dec 21, 2023
139b6c5
JSI-50: Added Github Actions (#154)
mschaab-SA Dec 22, 2023
c039892
Update README.md (#155)
mschaab-SA Dec 22, 2023
0f21571
Jsi 50 (#156)
mschaab-SA Dec 27, 2023
2f2a248
Update github-actions.yml (#157)
mschaab-SA Jan 3, 2024
f3cc678
Update github-actions.yml (#159)
mschaab-SA Jan 12, 2024
e221a71
Update github-actions.yml (#161)
mschaab-SA Jan 12, 2024
bc1faec
Update github-actions.yml (#162)
mschaab-SA Jan 12, 2024
592dbc9
Update github-actions.yml (#163)
mschaab-SA Jan 12, 2024
d84fa1a
Versioning uploads (#165)
mschaab-SA Jan 26, 2024
465ca37
Added enduserIp to validatePassword (#166)
mschaab-SA Mar 7, 2024
72c87cb
Rad-811: Upgrade to Java 21 LTS (#167)
mschaab-SA Nov 12, 2024
77fe0bf
v1.1.0.10 (#136) (#169)
mschaab-SA Nov 12, 2024
fd92904
Merge conflict (#170)
mschaab-SA Nov 12, 2024
8e642c2
SAIDP-883: ignore new unknown properties (#171)
mschaab-SA Jan 20, 2025
468cf75
Rad-811: Updating libraries and JVM (#172)
mschaab-SA Jan 20, 2025
4e85381
RAD-811: Added API fix (#173)
mschaab-SA Jan 29, 2025
afba15c
RAD-811 (#174)
mschaab-SA Feb 4, 2025
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
48 changes: 48 additions & 0 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: GitHub Actions
run-name: ${{ github.ref_name }} GitHub Actions 🚀
on: [push, pull_request]
jobs:
Build-Publish:
runs-on: ubuntu-latest
steps:
- name: Check out repository code ⬇️
uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
- name: Setup Gradle 🐘
uses: gradle/actions/setup-gradle@v3
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Run build with Gradle Wrapper 🏃
run: ./gradlew build -x test
- name: Run tests 🧑‍⚕️
run: ./gradlew test
# Might want to remove this step
- name: Archive production artifacts ⬆️
# Changed from target 'master' to 'develop' because the rules for the repo are locking my uploads
if: github.event.pull_request.base.ref == 'develop'
uses: actions/upload-artifact@v4
with:
name: Artifacts
path: ./build/libs/saRestApi-*.jar
- uses: jfrog/setup-jfrog-cli@v4
env:
JF_URL: ${{ secrets.ARTIFACTORY_URL }}
JF_USER: ${{ secrets.JFROG_USERNAME }}
JF_PASSWORD: ${{ secrets.JFROG_PASSWORD }}
- run: |
# This command adds a new server configuration to the JFrog CLI
- name: Upload to artifactory
if: ${{ github.event_name == 'pull_request' }}
run: |
export BUILD_NAME="saidp-sdk-java"
export BUILD_MODULE="sdk-java"
export BUILD_NUMBER="1"

export VERSION=$(cat gradle.properties | grep -Po "\d*\.\d*\.\d*\.\d*")

jf rt upload "./build/libs/saRestApi-*.jar" radius-release-local/saRestApi/$VERSION/saRestApi-$VERSION.jar --build-name $BUILD_NAME --build-number $BUILD_NUMBER --module $BUILD_MODULE
jf rt build-publish $BUILD_NAME $BUILD_NUMBER
- run: echo "🍏 This job's status is ${{ job.status }}."
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
SAAccess
===========
![Build](https://github.com/SecureAuthCorp/saidp-sdk-java/actions/workflows/github-actions.yml/badge.svg)

SAAccess is a solution that allows access to SecureAuth's REST api. The intention
is to provide a easy and a standard method to to access the SecureAuth Appliance REST
Expand All @@ -15,17 +16,17 @@ This is a community driven project, if you would like to contribute please fork

Requirements:
------------
* Requires Java 11
* Requires Java 21
* Requires gradle to build the package

Dependencies:
------------
* jackson-jaxrs-json-provider 2.7.3
* jersey-client 2.5.1
* Commons Codec 1.10
* SLF4J 1.7.28
* jaxb 2.3.0
* junit 5.1.0
* jackson-jaxrs-json-provider 2.18.1
* jersey-client 4.0.0-M1
* Commons Codec 1.17.1
* SLF4J 2.0.16
* jaxb 4.0.5
* junit 4.13.2

Building:
--------
Expand Down
91 changes: 33 additions & 58 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
plugins {
id 'java'
id 'application'
id 'com.jfrog.artifactory' version '4.10.0'
id 'jacoco'
id "com.github.ben-manes.versions" version "0.51.0"
}

apply plugin: 'eclipse'
apply plugin: 'maven'
apply plugin: 'maven-publish'

group = 'org.secureauth.sarestapi'
Expand All @@ -25,15 +24,6 @@ publishing {
}
}

artifactory {
publish {
defaults {
publications('mavenJava')
publishArtifacts = true
}
}
}

// The following task is used internally in the corporation
// to use a local version exported in maven local without colliding
// with the version uploaded in mavenCentral.
Expand All @@ -43,31 +33,33 @@ task buildLocal {
finalizedBy( compileJava )
}
}
sourceCompatibility = 11.0
sourceCompatibility = 21.0

dependencies {
implementation('com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.7.3')
implementation('org.glassfish.jersey.core:jersey-client:2.5.1')
implementation('commons-codec:commons-codec:1.10')
implementation('org.slf4j:slf4j-api:1.7.36')
implementation('javax.xml.bind:jaxb-api:2.3.0')
implementation('com.sun.xml.bind:jaxb-core:2.3.0')
implementation('com.sun.xml.bind:jaxb-impl:2.3.0')
implementation('javax.activation:activation:1.1')

implementation 'org.slf4j:slf4j-api:1.7.28'

implementation 'org.apache.logging.log4j:log4j-core:2.18.0'
annotationProcessor 'org.apache.logging.log4j:log4j-core:2.18.0'
implementation('com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.18.1')
implementation('org.glassfish.jersey.core:jersey-client:4.0.0-M1')
implementation 'org.glassfish.jersey.media:jersey-media-jaxb:4.0.0-M1'
implementation 'org.glassfish.jersey.media:jersey-media-moxy:4.0.0-M1'
implementation('commons-codec:commons-codec:1.17.1')
implementation('javax.xml.bind:jaxb-api:2.4.0-b180830.0359')
implementation('com.sun.xml.bind:jaxb-core:4.0.5')
implementation('com.sun.xml.bind:jaxb-impl:4.0.5')
implementation('javax.activation:activation:1.1.1')
implementation 'com.google.guava:guava:33.3.1-jre'
implementation 'jakarta.ws.rs:jakarta.ws.rs-api:4.0.0'

// Log4j
implementation 'org.slf4j:slf4j-api:2.0.16'
implementation 'org.apache.logging.log4j:log4j-core:2.24.1'
testImplementation 'org.slf4j:slf4j-simple:2.0.16'

testImplementation 'junit:junit:4.12'
testImplementation 'com.google.guava:guava:11.0.2'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.1.0'
testImplementation 'org.junit.vintage:junit-vintage-engine:5.5.2'
testImplementation 'org.mockito:mockito-core:2.28.2'
testImplementation "com.github.tomakehurst:wiremock-jre8:2.21.0"
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.11.3'
testImplementation 'org.junit.vintage:junit-vintage-engine:5.11.3'
testImplementation 'org.mockito:mockito-core:5.14.2'
testImplementation "com.github.tomakehurst:wiremock-jre8:3.0.1"

testRuntimeOnly 'org.apache.logging.log4j:log4j-slf4j-impl:2.18.0'
testRuntimeOnly 'org.apache.logging.log4j:log4j-slf4j-impl:3.0.0-beta2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.5.2'

}
Expand All @@ -85,33 +77,16 @@ distributions {
}
}

task copyToLib(type: Copy){
into "$buildDir/libs"
from configurations.runtime
}

task generate_zip(type: Zip) {
description 'Generates a zip file containing the docs and libs directories.'
from "$buildDir"
include('libs/', 'docs/')
archiveName "saidp-sdk-java-${version}.zip"
}

build.dependsOn( copyToLib )
build.dependsOn( javadoc )
generate_zip.finalizedBy( build )
//task generate_zip(type: Zip) {
// description 'Generates a zip file containing the docs and libs directories.'
// from "$buildDir"
// include('libs/', 'docs/')
// archiveFileName("saidp-sdk-java-${version}.zip")
//}

jacoco {
toolVersion = '0.8.4'
}

jacocoTestReport {
reports {
xml.enabled false
csv.enabled false
html.destination file("${buildDir}/coverageReport/html")
}
}
//build.dependsOn( copyToLib )
// build.dependsOn( javadoc )
//generate_zip.finalizedBy( build )

test {
useJUnitPlatform()
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
currentVersion=1.1.0.9
currentVersion=1.2.0.1
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 3 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading
Loading