FINERACT-1552: Upgrade fineract-client to OpenAPI generator 5.4.0

This commit is contained in:
Aleksandar Vidakovic
2022-03-31 10:53:03 +02:00
committed by Aleksandar Vidakovic
parent 5389276bc7
commit cf177a0bd4
26 changed files with 205 additions and 26 deletions
+4 -14
View File
@@ -84,7 +84,7 @@ task buildTypescriptAngularSdk(type: org.openapitools.generator.gradle.plugin.ta
configOptions = [
apiModulePrefix: 'fineract',
configurationPrefix: 'fineract',
ngVersion: '10.0.0',
ngVersion: '12.0.0',
npmName: 'apache-fineract-client'
]
dependsOn = [
@@ -96,24 +96,12 @@ task buildTypescriptAngularSdk(type: org.openapitools.generator.gradle.plugin.ta
// TODO: @vidakovic we could provide even more client libs in different languages (Go, Ruby, Swift etc.)
compileJava.dependsOn buildJavaSdk, spotlessJavaApply, buildTypescriptAngularSdk, spotlessMiscApply
sourceSets {
generated {
java {
srcDir "$buildDir/generated/java/src/main/java"
}
}
}
java {
// keep this at Java 8, not 17; see https://issues.apache.org/jira/browse/FINERACT-1214
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
compileJava {
source += sourceSets.generated.java
}
tasks.withType(JavaCompile) {
// the generated code in build/generated/java/src/main/java/org/apache/fineract/client/auth/OAuthOkHttpClient.java#L71 currently uses deprecated RequestBody.create(MediaType,String)
// TODO FINERACT-1247 why does this not work:
@@ -133,4 +121,6 @@ test {
}
// Gradle 7.x asks for explicit dependencies between tasks
licenseFormatBuildScripts.dependsOn spotlessGroovyGradle, spotlessJava, spotlessMisc, compileJava, processResources, compileGeneratedJava, compileTestJava, rat, test
licenseFormatBuildScripts.dependsOn spotlessGroovyGradle, spotlessJava, spotlessMisc, compileJava, processResources, compileTestJava, rat, test
sourceSets.main.java.srcDir new File(buildDir, "generated/java/src/main/java")
+1
View File
@@ -19,6 +19,7 @@
dependencies {
// project(':fineract-provider')
implementation(
'jakarta.annotation:jakarta.annotation-api',
'io.swagger:swagger-annotations',
'com.squareup.retrofit2:retrofit',
'com.squareup.retrofit2:adapter-java8',