Skip to content

Commit

Permalink
allow insecure protocole while uploading to localhost
Browse files Browse the repository at this point in the history
Signed-off-by: l-1squared <[email protected]>
  • Loading branch information
l-1squared committed Dec 8, 2023
1 parent a4a8d25 commit bfdba02
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/mock_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
run: >
./gradlew test publishMavenPublicationToMavenLocal publishMavenPublicationToMavenRepository
-PsigningKey="$(gpg --batch --pinentry-mode=loopback --yes --passphrase "${GPG_PASSWORD}" --armor --export-secret-key "${GPG_KEY_ID}")"
-PsigningPassword="${GPG_PASSWORD}" -Ppublishing.releaseUrl=http://localhost:7000
-PsigningPassword="${GPG_PASSWORD}" -Ppublishing.releaseUrl=http://localhost:7000 -Ppublishing.allowInsecureProtocol=true
- name: Upload test results html files
continue-on-error: true
if: ${{failure()}}
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ subprojects {
String releaseUrl = project["publishing.releaseUrl"]
String snapshotUrl = project["publishing.releaseUrl"]
url = System.env.RELEASE == "true" ? releaseUrl : snapshotUrl
allowInsecureProtocol = project["publishing.allowInsecureProtocol"] && url.getHost() == "localhost"
credentials {
username = sonatypeUsername
password = sonatypePassword
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ android.useAndroidX=true
android.enableJetifier=true
publishing.releaseUrl='https://oss.sonatype.org/service/local/staging/deploy/maven2/'
publishing.snapshotUrl='https://oss.sonatype.org/content/repositories/snapshots/'
publishing.allowInsecureProtocol=false

0 comments on commit bfdba02

Please sign in to comment.