Skip to content

Commit

Permalink
Fixing SSC API bug in the recent 22.2 and 23.1 releases described in …
Browse files Browse the repository at this point in the history
…the known issues
  • Loading branch information
akaryakina committed May 10, 2023
1 parent 2cdd91a commit e2b1d6b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>com.fortify</groupId>
<artifactId>ssc-restapi-client</artifactId>
<version>23.1</version>
<version>23.1.1</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -37,15 +37,15 @@ 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

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
Expand Down
7 changes: 5 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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]
})
}
}

Expand Down

0 comments on commit e2b1d6b

Please sign in to comment.