FINERACT-1984: OAuth2.1
This commit is contained in:
committed by
Arnold Gálovics
parent
0c0d8592bb
commit
fa9c7b9364
@@ -52,7 +52,8 @@ task buildJavaSdk(type: org.openapitools.generator.gradle.plugin.tasks.GenerateT
|
||||
useRxJava2: 'false',
|
||||
library: 'retrofit2',
|
||||
hideGenerationTimestamp: 'true',
|
||||
containerDefaultToNull: 'true'
|
||||
containerDefaultToNull: 'true',
|
||||
oauth2Implementation: 'none'
|
||||
]
|
||||
generateModelTests = false
|
||||
generateApiTests = false
|
||||
@@ -137,7 +138,16 @@ task cleanupGeneratedJavaFiles() {
|
||||
|
||||
inputs.dir(tempDir)
|
||||
outputs.dir(targetDir)
|
||||
|
||||
|
||||
//TODO: remove harcoded, autogenerated Oltu's OAuthOkHttpClient.java from the generated files
|
||||
doFirst {
|
||||
delete fileTree(tempDir) {
|
||||
include "src/main/java/org/apache/fineract/client/auth/OAuthOkHttpClient.java"
|
||||
}
|
||||
delete fileTree(targetDir) {
|
||||
include "src/main/java/org/apache/fineract/client/auth/OAuthOkHttpClient.java"
|
||||
}
|
||||
}
|
||||
doLast {
|
||||
copy {
|
||||
from tempDir
|
||||
|
||||
@@ -35,11 +35,5 @@ dependencies {
|
||||
'com.squareup.okhttp3:logging-interceptor',
|
||||
)
|
||||
|
||||
// org.apache.oltu.oauth2 is used in org.apache.fineract.client.auth.OAuthOkHttpClient (only; can be excluded by consumers not requiring OAuth)
|
||||
implementation('org.apache.oltu.oauth2:org.apache.oltu.oauth2.client') {
|
||||
exclude group: 'org.apache.oltu.oauth2', module: 'org.apache.oltu.oauth2.common'
|
||||
exclude group: 'org.slf4j'
|
||||
}
|
||||
|
||||
testImplementation 'org.assertj:assertj-core'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user