From e2b1d6b6ece54c7c5f450412eb042a159f95ff2b Mon Sep 17 00:00:00 2001 From: Anna Karyakina Date: Tue, 9 May 2023 23:21:54 -0700 Subject: [PATCH] Fixing SSC API bug in the recent 22.2 and 23.1 releases described in the known issues --- README.md | 6 +++--- build.gradle | 7 +++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 42ca24c..7c57f35 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Add this dependency to your project's POM: com.fortify ssc-restapi-client - 23.1 + 23.1.1 compile ``` @@ -37,7 +37,7 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -compile "com.fortify:ssc-restapi-client:23.1" +compile "com.fortify:ssc-restapi-client:23.1.1" ``` ### Others @@ -45,7 +45,7 @@ compile "com.fortify:ssc-restapi-client:23.1" At first generate the JAR by running the gradle build Then manually install the following JARs: -* build/libs/ssc-restapi-client-23.1.jar +* build/libs/ssc-restapi-client-23.1.1.jar * build/swagger-code-ssc/build/target/lib/*.jar ## Getting Started diff --git a/build.gradle b/build.gradle index f0e22a3..7ff3e64 100644 --- a/build.gradle +++ b/build.gradle @@ -12,7 +12,7 @@ repositories { } group = 'com.fortify' -version = '23.1' +version = '23.1.1' description 'Fortify SSC REST API client' sourceCompatibility = JavaVersion.VERSION_1_8 @@ -60,13 +60,16 @@ artifacts { } task fixAndCopySwaggerSpec(type: Sync) { - description 'Read spec-rest.json and remove « and » characters. Write modified file to task temporaryDir' + description 'Read spec-rest.json and remove « and » characters and rename [Custom Tag] to [Custom Tag Audit] to avoid collision with [Custom tag] (lower case). Write modified file to task temporaryDir' into(modifiedSpecDir) from(originalSpecDir) { filteringCharset = "UTF-8" filter({ String s -> s.replaceAll(/[\u00ab\u00bb]/, "") // [«»] }) + filter({ String s -> + s.replaceAll(/Custom Tag/, 'Custom Tag Audit') // [Custom Tag] + }) } }