Skip to content

Commit

Permalink
fix: default to a valid Maven SCM connection
Browse files Browse the repository at this point in the history
  • Loading branch information
DanySK committed Jan 5, 2023
1 parent c6c2ea9 commit 1d45fe9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ publishOnCentral {
licenseName.set("Apache License, Version 2.0")
licenseUrl.set("http://www.apache.org/licenses/LICENSE-2.0")
projectUrl.set("https://github.com/DanySK/${project.name}")
scmConnection.set("git:git@github.com:DanySK/${project.name}")
scmConnection.set("scm:git:https://github.com/DanySK/${project.name}")
/*
* The plugin is pre-configured to fetch credentials for Maven Central from the context in the following order:
* 1. Environment variables MAVEN_CENTRAL_USERNAME and MAVEN_CENTRAL_PASSWORD
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ open class PublishOnCentralExtension(val project: Project) {
/**
* The SCM connection of the project.
*/
var scmConnection: Property<String> = project.propertyWithDefault("git:[email protected]:DanySK/${project.name}")
var scmConnection: Property<String> = project.propertyWithDefault(
"scm:git:https://github.com/DanySK/${project.name}"
)

/**
* The URL of the project.
Expand Down

0 comments on commit 1d45fe9

Please sign in to comment.