Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Add example of the warning message so it's easy to search for
  • Loading branch information
sghill authored Apr 21, 2020
1 parent f998bc3 commit 3f22457
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,19 @@ Examples:

[configure-jvm]: https://docs.gradle.org/current/userguide/build_environment.html#sec:configuring_jvm_memory

## Disabling encryption when releasing a plugin
## Disabling SHA256 and SHA512 checksums when releasing a plugin

When performing a release via `gradle publish`, gradle will automatically tried to upload artifacts with SHA 256 and 512 encryption. This is not currently supported in the public artifact repository for Jenkins. To disable this, you can pass a command line argument `gradle publish -Dorg.gradle.internal.publish.checksums.insecure` or include a `gradle.properties` file with the line `org.gradle.internal.publish.checksums.insecure=true`.
This section applies to the warning:

```
Cannot upload checksum for module-maven-metadata.xml. Remote repository doesn't support sha-256. Error: Could not PUT 'https://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/<shortname>/maven-metadata.xml.sha256'. Received status code 403 from server: Forbidden
Cannot upload checksum for module-maven-metadata.xml. Remote repository doesn't support sha-512. Error: Could not PUT 'https://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/<shortname>/maven-metadata.xml.sha512'. Received status code 403 from server: Forbidden
```

When performing a release via `gradle publish`, gradle will automatically try to upload artifacts with SHA 256 and 512 checksums. This is not currently supported in the public artifact repository for Jenkins. To disable this, you can pass [a command line argument][shasum] `gradle publish -Dorg.gradle.internal.publish.checksums.insecure` or include a `gradle.properties` file with the line `org.gradle.internal.publish.checksums.insecure=true`.


[shasum]: https://docs.gradle.org/6.0.1/release-notes.html#publication-of-sha256-and-sha512-checksums

## Gradle 4+

Expand Down

0 comments on commit 3f22457

Please sign in to comment.