FINERACT-2009: Upgrade latest framework libs

This commit is contained in:
Aleksandar Vidakovic
2024-01-06 14:13:33 +01:00
committed by Aleksandar Vidakovic
parent 1f3bb34e13
commit e4944c44d6
193 changed files with 1567 additions and 1390 deletions
+1 -3
View File
@@ -16,9 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
plugins {
id 'org.openapi.generator' version '6.6.0'
}
apply plugin: 'org.openapi.generator'
description = 'Fineract Client'
apply from: 'dependencies.gradle'
+2 -1
View File
@@ -21,7 +21,6 @@ dependencies {
// only handles javax annotations, not jakarta ones
implementation 'jakarta.annotation:jakarta.annotation-api:1.3.5'
implementation(
'io.swagger.core.v3:swagger-annotations-jakarta',
'com.squareup.retrofit2:retrofit',
@@ -31,6 +30,8 @@ dependencies {
'com.squareup.retrofit2:converter-gson',
'io.gsonfire:gson-fire',
'com.google.code.findbugs:jsr305',
'com.github.spotbugs:spotbugs-annotations',
'com.squareup.okhttp3:okhttp',
'com.squareup.okhttp3:logging-interceptor',
)
@@ -22,6 +22,8 @@ import java.util.List;
import org.apache.fineract.client.models.RetrieveOneResponse;
import org.apache.fineract.client.util.Calls;
import org.apache.fineract.client.util.FineractClient;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Demo code which is included in the fineract-doc/src/docs/en/05_client.adoc.
@@ -33,12 +35,15 @@ import org.apache.fineract.client.util.FineractClient;
*/
public class FineractClientDemo {
private static final Logger log = LoggerFactory.getLogger(FineractClientDemo.class);
void demoClient() {
// tag::documentation[]
FineractClient fineract = FineractClient.builder().baseURL("https://demo.fineract.dev/fineract-provider/api/v1/").tenant("default")
.basicAuth("mifos", "password").build();
List<RetrieveOneResponse> staff = Calls.ok(fineract.staff.retrieveAll16(1L, true, false, "ACTIVE"));
String name = staff.get(0).getDisplayName();
log.info("Display name: {}", name);
// end::documentation[]
}
@@ -20,6 +20,7 @@ package org.apache.fineract.client.test;
import static org.junit.jupiter.api.Assertions.assertThrows;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import org.apache.fineract.client.util.FineractClient;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
@@ -29,6 +30,7 @@ import org.junit.jupiter.api.Test;
*
* @author Michael Vorburger.ch
*/
@SuppressFBWarnings(value = "RV_EXCEPTION_NOT_THROWN", justification = "False positive")
public class FineractClientTechnicalTest {
@Test