From b0f3393f2dd24c98858bfc908942af6d6e2acf23 Mon Sep 17 00:00:00 2001 From: Barry Kearns <61697611+barryadk@users.noreply.github.com> Date: Wed, 17 May 2023 12:20:27 +0100 Subject: [PATCH] ci: Updates for release (#28) Updating dependencies, removing unused files. --- .travis.yml | 1 - .whitesource | 15 --------------- README.md | 8 ++++---- build.gradle | 8 ++++---- gradle.properties | 2 +- .../swaggerhub/gradle/SwaggerHubDownloadTest.java | 2 -- 6 files changed, 9 insertions(+), 27 deletions(-) delete mode 100644 .travis.yml delete mode 100644 .whitesource diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index dff5f3a..0000000 --- a/.travis.yml +++ /dev/null @@ -1 +0,0 @@ -language: java diff --git a/.whitesource b/.whitesource deleted file mode 100644 index db4b0fe..0000000 --- a/.whitesource +++ /dev/null @@ -1,15 +0,0 @@ -{ - "scanSettings": { - "configMode": "AUTO", - "configExternalURL": "", - "projectToken": "", - "baseBranches": [] - }, - "checkRunSettings": { - "vulnerableCheckRunConclusionLevel": "failure", - "displayMode": "diff" - }, - "issueSettings": { - "minSeverityLevel": "LOW" - } -} \ No newline at end of file diff --git a/README.md b/README.md index b3a41b7..c430121 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ The pattern of usage is likely to depend on whether a [code first or design firs ``` plugins { - id "io.swagger.swaggerhub" version "1.0.1" + id "io.swagger.swaggerhub" version "1.1.0" } ``` @@ -40,7 +40,7 @@ plugins { ``` swaggerhubDownload { api 'PetStoreAPI' - owner 'jsfrench' + owner 'swagger-hub' version '1.0.0' outputFile 'target/test/petStoreAPI.json' } @@ -69,7 +69,7 @@ Parameter | Description | Required | Default ``` swaggerhubUpload { api 'PetStoreAPI' - owner 'jsfrench' + owner 'swagger-hub' version '1.0.1-SNAPSHOT' inputFile 'target/petStoreAPI.json' token 'duMmyAPiKEy' @@ -102,7 +102,7 @@ resolve { swaggerhubUpload { dependsOn resolve api 'PetStoreAPI' - owner 'jsfrench' + owner 'swagger-hub' version '1.0.1-SNAPSHOT' inputFile 'target/petStoreAPI.json' token 'duMmyAPiKEy' diff --git a/build.gradle b/build.gradle index f1b07cf..1bf64a4 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ plugins { id 'groovy' id 'java-gradle-plugin' id 'com.gradle.plugin-publish' version '1.2.0' - id 'net.researchgate.release' version '2.8.1' + id 'net.researchgate.release' version '3.0.2' } repositories { @@ -11,15 +11,15 @@ repositories { dependencies { implementation gradleApi() - implementation group: 'com.squareup.okhttp3', name: 'okhttp', version:'4.10.0' + implementation group: 'com.squareup.okhttp3', name: 'okhttp', version:'4.11.0' implementation group: 'org.apache.commons', name: 'commons-lang3', version:'3.12.0' testImplementation group: 'com.github.tomakehurst', name: 'wiremock-jre8-standalone', version:'2.35.0' testImplementation gradleTestKit() testImplementation 'junit:junit:4.13.2' - testImplementation group: 'io.swagger', name: 'swagger-parser', version:'1.0.65' + testImplementation group: 'io.swagger', name: 'swagger-parser', version:'1.0.66' } -version = '1.1.1-SNAPSHOT' +version = '1.2.0' group = 'io.swagger' gradlePlugin { diff --git a/gradle.properties b/gradle.properties index c6d0f18..1bf5794 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1 @@ -version=1.1.1-SNAPSHOT +version=1.2.0 diff --git a/src/test/java/io/swagger/swaggerhub/gradle/SwaggerHubDownloadTest.java b/src/test/java/io/swagger/swaggerhub/gradle/SwaggerHubDownloadTest.java index 67d5961..020b73a 100644 --- a/src/test/java/io/swagger/swaggerhub/gradle/SwaggerHubDownloadTest.java +++ b/src/test/java/io/swagger/swaggerhub/gradle/SwaggerHubDownloadTest.java @@ -5,7 +5,6 @@ import org.apache.commons.io.FileUtils; import org.gradle.testkit.runner.BuildResult; import org.gradle.testkit.runner.GradleRunner; -import org.hamcrest.MatcherAssert; import org.junit.Before; import org.junit.Rule; import org.junit.Test; @@ -13,7 +12,6 @@ import java.io.File; import java.io.IOException; -import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths;