MavenPublishHttpIntegTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Merge remote-tracking branch 'origin/vv/credentials-providers-v2'

* origin/vv/credentials-providers-v2: (31 commits)

Ignore configuration cache test in instantIntegTest mode

Ensure provided credentials are not cached

Add non null API annotation to credentials provider factory implementation package

Move credentials provider factory interface to core-api module

Add credentials provider test using programmatically registered inputs

Preserve provider semantics in credentials providers

Use Providers.notDefined() instead of custom missing value provider

Simplify credential providers implementation

Suppress unchecked cast warnings

Fail at configuration time when any credential providers are not fulfilled

Remove unused internal field

Do not listen for task graph readiness in credentials provider factory

Use managed properties in credentials provider integration test

Unignore a test that works with configuration cache

Add AWS credentials provider

Provide using a single method accepting the type instead of multiple per-type methods

Simplify credentials provider with inferred identity from repository

Simplify repository credentials identity resolution

Do not expose CredentialsProviderFactory via Project

Fix credentials provider factory unit test

...

    • -36
    • +80
    ./MavenPublishHttpIntegTest.groovy
  1. … 4 more files in changeset.
Use org.gradle.api.credentials.PasswordCredentials internally

org.gradle.api.artifacts.repositories.PasswordCredentials was where PasswordCredentials originated before being moved to org.gradle.api.credentials package together with other Credentials implementations.

After this change org.gradle.api.artifacts.repositories.PasswordCredentials will remain to be used only in the public APIs around repositories.

Once its surface area is reduced, we might be able to deprecate it in favor of org.gradle.api.credentials.PasswordCredentials in a subsequent change.

  1. … 16 more files in changeset.
Preserve provider semantics in credentials providers

  1. … 6 more files in changeset.
Simplify credential providers implementation

Resolve the credentials values in a callable without wrapping it in a Provider again.

  1. … 5 more files in changeset.
Simplify credentials provider with inferred identity from repository

  1. … 6 more files in changeset.
Do not expose CredentialsProviderFactory via Project

  1. … 3 more files in changeset.
Merge branch 'vv/credentials-providers-v2' into vv/credentials-providers-identity

# Conflicts:

# subprojects/core/src/main/java/org/gradle/internal/service/scopes/ProjectScopeServices.java

  1. … 6 more files in changeset.
Validate credential providers before task execution

  1. … 7 more files in changeset.
Allow to use repository name as credentials identity

  1. … 13 more files in changeset.
Simplify usage of Property<Credentials> in AuthenticationSupporter

  1. … 10 more files in changeset.
Rename credentials provider sad path tests and add TODOs

  1. … 1 more file in changeset.
Add input field Property<Credentials> to publishing tasks

This way the error messages coming from providers are not lost.

  1. … 2 more files in changeset.
Use Property<Credentials> in AuthenticationSupporter

For now, fail due to missing credentials at execution time and with error messages that we currently get.

    • -15
    • +16
    ./MavenPublishHttpIntegTest.groovy
  1. … 6 more files in changeset.
Ensure missing but unused credentials do not prevent other tasks from running

  1. … 1 more file in changeset.
Add credentials provider for username and password credentials

Test the feature via publishing to Maven and Ivy repositories.

Do not add any public APIs at this point.

    • -36
    • +91
    ./MavenPublishHttpIntegTest.groovy
  1. … 11 more files in changeset.
Rename @FailsWithInstantExecution to @ToBeFixedForInstantExecution

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -10
    • +10
    ./MavenPublishHttpIntegTest.groovy
  1. … 872 more files in changeset.
Merge branch 'master' into eskatos/ie/instantIntegTest-enable

  1. … 8 more files in changeset.
Annotate integ tests failing with instant execution in various projects

removing most of @IgnoreWithInstantExecution annotations

after fixing the @FailsWithInstantExecution rule

and more ci feedback

also make @IgnoreWithInstantExecution require a reason from a fixed set

and add it to the remaining ignores

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -10
    • +10
    ./MavenPublishHttpIntegTest.groovy
  1. … 126 more files in changeset.
Add a system property to disable publishing of SHA-256

This commit adds an internal system property which can be used as

a workaround whenever the remote repository doesn't accept SHA-256

and SHA-512 checksums. Gradle is fail-safe when it cannot upload

those files, however, in some situations, the remote repository may

not allow promoting the release if it finds such files. This is the

case in older repositories, or currently with Maven Central.

To disable publication of both SHA-256 and SHA-512 checksums, either:

- add `-Dorg.gradle.internal.publish.checksums.insecure` to the CLI or

- add `org.gradle.internal.publish.checksums.insecure=true` to your

`gradle.properties` file

Fixes #11308

  1. … 7 more files in changeset.
Annotate integ tests failing with instant execution in :maven

Signed-off-by: Paul Merlin <paul@gradle.com>

  1. … 39 more files in changeset.
Add tests to prove resiliency of SHA signature uploads

  1. … 2 more files in changeset.
Add sha-256 and sha-512 checksums to `maven-publish`

This commit adds the SHA-256 and SHA-512 checksums in:

- Gradle Module Metadata

- uploads to Maven repositories using the `maven-publish` plugin

The upload of those additional files is failsafe, just in case some

repositories don't support those checksum files.

  1. … 33 more files in changeset.
Expect credentials when uploading to the redirect server

Fix integration tests

  1. … 3 more files in changeset.
Cleanup some unnessasary changes after depricate http changes

Signed-off-by: Jonathan Leitschuh <Jonathan.Leitschuh@gmail.com>

  1. … 10 more files in changeset.
Merge branch 'master' into deprecate_http_download

Signed-off-by: Jonathan Leitschuh <Jonathan.Leitschuh@gmail.com>

  1. … 5 more files in changeset.
Fix integration tests failing due to new dperication

Signed-off-by: Jonathan Leitschuh <Jonathan.Leitschuh@gmail.com>

  1. … 10 more files in changeset.
Polish ivy-publish retry functionality

- Log stacktrace of transient failure at DEBUG level

- Additional test coverage for retry cases

  1. … 3 more files in changeset.
Retry HTTP PUT when publishing with `maven-publish`

  1. … 3 more files in changeset.
Fix maven-publish to retry on transient network errors

- Add integration test for maven-publish retry

- Use `HttpErrorStatusCodeException` for upload failures

  1. … 2 more files in changeset.