Skip to content

Commit

Permalink
Preparing the 23.1.2 release with corrected dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
akaryakina committed Jun 13, 2023
1 parent 7a1bd56 commit 646515a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
16 changes: 6 additions & 10 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.1</version>
<version>23.1.2</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -37,17 +37,9 @@ 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.1"
compile "com.fortify:ssc-restapi-client:23.1.2"
```

### Others

At first generate the JAR by running the gradle build
Then manually install the following JARs:

* build/libs/ssc-restapi-client-23.1.1.jar
* build/swagger-code-ssc/build/target/lib/*.jar

## Getting Started

Please follow the [installation](#installation) instruction and execute the following Java code:
Expand Down Expand Up @@ -101,6 +93,10 @@ Authentication schemes defined for the API:
- **API key parameter name**: Authorization
- **Location**: HTTP header

## Compatibility:

The first two digits of the ssc-restapi-client version correspond to the version of SSC where the REST API specification has been pulled from. The last digit is reserved for fixing problems with this library itself, it does not affect compatibility.
SSC API was designed with backwards compatibility in mind, so you are most likely should be able to use the newer client with an older SSC (and vice versa). Not all features may be available in this case.

## Recommendation

Expand Down
18 changes: 10 additions & 8 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.1'
version = '23.1.2'
description 'Fortify SSC REST API client'

sourceCompatibility = JavaVersion.VERSION_1_8
Expand All @@ -33,9 +33,11 @@ dependencies {
implementation 'com.google.code.gson:gson:2.10.1'
implementation 'io.gsonfire:gson-fire:1.8.5'
implementation 'com.google.code.findbugs:jsr305:3.0.2'
implementation 'javax.ws.rs:jsr311-api:1.1.1'
implementation 'javax.ws.rs:javax.ws.rs-api:2.1.1'
implementation 'jakarta.annotation:jakarta.annotation-api:1.3.5'
implementation 'com.squareup.okio:okio-jvm:3.3.0'
implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.6.21'
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.21'
implementation 'org.jetbrains.kotlin:kotlin-stdlib-common:1.6.21'
testImplementation 'junit:junit:4.13.2'
}

Expand Down Expand Up @@ -63,11 +65,9 @@ task fixAndCopySwaggerSpec(type: Sync) {
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]
filter({ String line ->
line.replaceAll(/[\u00ab\u00bb]/, "") // [«»]
.replaceAll(/([\/<"])Custom Tag([>"])/, '$1Custom Tag Audit$2') // upper case [Custom Tag]
})
}
}
Expand All @@ -86,6 +86,8 @@ openApiGenerate {
configOptions = [
dateLibrary: "java8",
library: "okhttp-gson",
serializationLibrary: "gson",
openApiNullable: "false",
hideGenerationTimestamp: "true"
]
}
Expand Down

0 comments on commit 646515a

Please sign in to comment.