Temporarily remove the build realted Swagger changes (FINERACT-733)

as well as implement all review feedback provided on the original PR

see https://github.com/apache/fineract/pull/629 for background

also https://jira.apache.org/jira/browse/FINERACT-733
This commit is contained in:
Michael Vorburger
2020-01-19 15:24:11 +01:00
committed by Michael Vorburger ⛑️
parent e424471162
commit 125924303b
3 changed files with 4 additions and 49 deletions
+1 -34
View File
@@ -43,12 +43,9 @@ buildscript {
classpath 'com.radcortez.gradle:openjpa-gradle-plugin:3.1.0'
classpath 'gradle.plugin.org.nosphere.apache:creadur-rat-gradle:0.2.2'
classpath "com.github.spotbugs:spotbugs-gradle-plugin:2.0.1"
//Use Guava version 23+ as a workaround to spotbug intergration.
// Use Guava version 23+ as a workaround to spotbug intergration.
// See: https://github.com/spotbugs/spotbugs-gradle-plugin/issues/128#issuecomment-535864882
classpath 'com.google.guava:guava:28.1-jre'
classpath "io.swagger.core.v3:swagger-gradle-plugin:2.0.8"
classpath "gradle.plugin.org.hidetake:gradle-swagger-generator-plugin:2.18.1"
}
}
@@ -62,8 +59,6 @@ apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'com.bmuschko.tomcat'
apply plugin: 'project-report'
apply plugin: 'java'
apply plugin: "org.hidetake.swagger.generator"
apply plugin: 'java-library'
apply plugin: 'openjpa'
apply plugin: "com.github.spotbugs"
@@ -212,7 +207,6 @@ rat {
'**/docs/system-architecture/**/*.xml',
'**/bootstrap-3.0.0/assets/application.js',
'**/system-architecture/js/plugins.js',
'**/docs/interoperation/specification/json/*.json',
//Apache License
'**/bootstrap-3.0.0/assets/less.js',
@@ -535,30 +529,3 @@ tasks.withType(SpotBugsTask) {
reports.html.enabled = true
reportLevel = "high"
}
// This is to save json file at build time
resolve {
outputFileName = 'response.json'
outputFormat = 'JSON'
prettyPrint = 'TRUE'
classpath = sourceSets.main.runtimeClasspath
resourcePackages = ['org.apache.fineract']
outputPath = '/src/main/resources/swagger-ui/response.json'
}
//This is for code and swagger UI generation
dependencies {
swaggerCodegen 'io.swagger:swagger-codegen-cli:2.4.2' // Swagger Codegen V2
swaggerCodegen 'io.swagger.codegen.v3:swagger-codegen-cli:3.0.5' // or Swagger Codegen V3
swaggerCodegen 'org.openapitools:openapi-generator-cli:3.3.4' // or OpenAPI Generator
swaggerUI 'org.webjars:swagger-ui:3.10.0'
}
swaggerSources {
fineract {
inputFile = file('src/main/resources/swagger-ui/response.json')
code {
language = 'java'
}
}
}