From 2c8bb77ff8b0d1d9ba9442f5138fbe433d7921d6 Mon Sep 17 00:00:00 2001 From: 2ynn Date: Mon, 26 Oct 2026 16:27:39 -0400 Subject: [PATCH 1/2] fix(java): write the Maven POM scm url with https:// publishing.gradle wrote the POM scm url as the bare githubURL value, such as github.com/owner/repo, while the project url on the line above already gets https://. Maven defines scm url as a browsable repository URL, and without a scheme it is not an absolute URL, so tools that link it cannot open it. Prefix it with https:// like the project url. --- .changesets/1793046459-276bb2d1.yaml | 10 ++++++++++ .../templates/javav2/auxiliary/publishing.gradle.stmpl | 2 +- zSDKs/sdk-javav2/.speakeasy/gen.lock | 2 +- zSDKs/sdk-javav2/publishing.gradle | 2 +- 4 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 .changesets/1793046459-276bb2d1.yaml diff --git a/.changesets/1793046459-276bb2d1.yaml b/.changesets/1793046459-276bb2d1.yaml new file mode 100644 index 000000000..65c9ae0a6 --- /dev/null +++ b/.changesets/1793046459-276bb2d1.yaml @@ -0,0 +1,10 @@ +id: 1793046459-276bb2d1 +features: + - core +targets: + - javav2 +type: fix +bump: patch +description: write the Maven POM scm url with https:// +author: 2ynn +date: "2026-10-26" diff --git a/templates/templates/javav2/auxiliary/publishing.gradle.stmpl b/templates/templates/javav2/auxiliary/publishing.gradle.stmpl index 4c8e644df..90afe3d86 100644 --- a/templates/templates/javav2/auxiliary/publishing.gradle.stmpl +++ b/templates/templates/javav2/auxiliary/publishing.gradle.stmpl @@ -82,7 +82,7 @@ afterEvaluate { description = config.description url = 'https://{{.LocalComputed.GithubURL}}' scm { - url = '{{.LocalComputed.GithubURL}}' + url = 'https://{{.LocalComputed.GithubURL}}' connection = 'scm:git:ssh://git@{{.LocalComputed.GithubURL}}.git' } licenses { diff --git a/zSDKs/sdk-javav2/.speakeasy/gen.lock b/zSDKs/sdk-javav2/.speakeasy/gen.lock index 5c6bfeb9a..ee61d0273 100644 --- a/zSDKs/sdk-javav2/.speakeasy/gen.lock +++ b/zSDKs/sdk-javav2/.speakeasy/gen.lock @@ -511,7 +511,7 @@ trackedFiles: gradlew.bat: last_write_checksum: sha1:755607dcbac0ba8adba338ef00aafc1177ceb2b5 publishing.gradle: - last_write_checksum: sha1:c62a7e5882a34d2fa79eb436d99efa74828f214a + last_write_checksum: sha1:51b6c709d3ad4164ccce8fc7eb514b765fbf27b7 settings.gradle: last_write_checksum: sha1:b5b2f4aa4269fea383621740c89e1a847d952da9 spring/openapi-spring-boot-autoconfigure/build.gradle: diff --git a/zSDKs/sdk-javav2/publishing.gradle b/zSDKs/sdk-javav2/publishing.gradle index 93c11532a..0d5dab54e 100644 --- a/zSDKs/sdk-javav2/publishing.gradle +++ b/zSDKs/sdk-javav2/publishing.gradle @@ -24,7 +24,7 @@ afterEvaluate { description = config.description url = 'https://github.com/owner/repo' scm { - url = 'github.com/owner/repo' + url = 'https://github.com/owner/repo' connection = 'scm:git:ssh://git@github.com/owner/repo.git' } licenses { From c595f0dfcf5950112a2c7c96f7057d3b77c65acf Mon Sep 17 00:00:00 2001 From: 2ynn Date: Mon, 26 Oct 2026 16:57:00 -0400 Subject: [PATCH 2/2] test(java): expect https:// in the rendered scm url --- pkg/generate/java_publishing_links_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/generate/java_publishing_links_test.go b/pkg/generate/java_publishing_links_test.go index f05b583a9..d2b72fa11 100644 --- a/pkg/generate/java_publishing_links_test.go +++ b/pkg/generate/java_publishing_links_test.go @@ -38,25 +38,25 @@ func TestJavaPublishingLinksNormalizeGithubURL(t *testing.T) { "canonical": { githubURL: "github.com/acme/acme-java", pomURL: "https://github.com/acme/acme-java", - scmURL: "github.com/acme/acme-java", + scmURL: "https://github.com/acme/acme-java", scmConnection: "scm:git:ssh://git@github.com/acme/acme-java.git", }, "scheme, www, .git and trailing slash": { githubURL: "https://www.github.com/acme/acme-java.git/", pomURL: "https://github.com/acme/acme-java", - scmURL: "github.com/acme/acme-java", + scmURL: "https://github.com/acme/acme-java", scmConnection: "scm:git:ssh://git@github.com/acme/acme-java.git", }, "uppercase scheme, www and .git": { githubURL: "HTTPS://WWW.github.com/acme/acme-java.GIT", pomURL: "https://github.com/acme/acme-java", - scmURL: "github.com/acme/acme-java", + scmURL: "https://github.com/acme/acme-java", scmConnection: "scm:git:ssh://git@github.com/acme/acme-java.git", }, "non-string value": { githubURL: "123", pomURL: "https://123", - scmURL: "123", + scmURL: "https://123", scmConnection: "scm:git:ssh://git@123.git", }, }