From 33b878037d0d27ac7ec0b2a461f4f4a4a258de4d Mon Sep 17 00:00:00 2001 From: Jim Schubert <james.schubert@gmail.com> Date: Sun, 19 Jan 2020 08:45:17 -0500 Subject: [PATCH] Use HTTPS Maven URL in Kotlin meta generator This continues on work in #5033 and #5034 which convert all http usage to https to unblock CircleCI builds. In #5034, mavenCentral() DSL was updated to explicitly target the https maven repo because Gradle didn't force TLS 1.2 until v4.8.1 and many of our examples use earlier versions of Gradle. The Kotlin meta generator was missed because it is a .kts build file rather than build.gradle, and the mustache filename doesn't have kts in it; the file was updated as if it was build.gradle (groovy syntax). --- .../src/main/resources/codegen/kotlin/build_gradle.mustache | 2 +- samples/meta-codegen-kotlin/lib/build.gradle.kts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/codegen/kotlin/build_gradle.mustache b/modules/openapi-generator/src/main/resources/codegen/kotlin/build_gradle.mustache index 7eb5405326b..2a61f06ce2a 100644 --- a/modules/openapi-generator/src/main/resources/codegen/kotlin/build_gradle.mustache +++ b/modules/openapi-generator/src/main/resources/codegen/kotlin/build_gradle.mustache @@ -11,7 +11,7 @@ version = "1.0-SNAPSHOT" repositories { mavenLocal() - maven { url = "https://repo1.maven.org/maven2" } + maven { url = uri("https://repo1.maven.org/maven2") } } dependencies { diff --git a/samples/meta-codegen-kotlin/lib/build.gradle.kts b/samples/meta-codegen-kotlin/lib/build.gradle.kts index d3368ff515e..180c7beca8f 100644 --- a/samples/meta-codegen-kotlin/lib/build.gradle.kts +++ b/samples/meta-codegen-kotlin/lib/build.gradle.kts @@ -11,7 +11,7 @@ version = "1.0-SNAPSHOT" repositories { mavenLocal() - mavenCentral() + maven { url = uri("https://repo1.maven.org/maven2") } } dependencies { -- GitLab