MavenPublishArtifactCustomizationIntegTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Avoid more deprecated APIs

    • -1
    • +1
    ./MavenPublishArtifactCustomizationIntegTest.groovy
  1. … 43 more files in changeset.
Remove use of deprecated API

Remove use of deprecated APIs in PluginBuilder

Replace use of archiveName with archiveFileName

Avoid more deprecated APIs

    • -3
    • +3
    ./MavenPublishArtifactCustomizationIntegTest.groovy
  1. … 64 more files in changeset.
Remove use of deprecated API

Remove use of deprecated APIs in PluginBuilder

Replace use of archiveName with archiveFileName

Avoid more deprecated APIs

    • -1
    • +1
    ./MavenPublishArtifactCustomizationIntegTest.groovy
  1. … 56 more files in changeset.
Remove use of deprecated API

Remove use of deprecated APIs in PluginBuilder

Replace use of archiveName with archiveFileName

Avoid more deprecated APIs

    • -1
    • +1
    ./MavenPublishArtifactCustomizationIntegTest.groovy
  1. … 60 more files in changeset.
Remove use of deprecated API

Remove use of deprecated APIs in PluginBuilder

Replace use of archiveName with archiveFileName

Avoid more deprecated APIs

    • -3
    • +3
    ./MavenPublishArtifactCustomizationIntegTest.groovy
  1. … 63 more files in changeset.
Remove use of deprecated API

Remove use of deprecated APIs in PluginBuilder

Replace use of archiveName with archiveFileName

Avoid more deprecated APIs

    • -3
    • +3
    ./MavenPublishArtifactCustomizationIntegTest.groovy
  1. … 61 more files in changeset.
Remove use of deprecated API

Remove use of deprecated APIs in PluginBuilder

Replace use of archiveName with archiveFileName

Avoid more deprecated APIs

    • -3
    • +3
    ./MavenPublishArtifactCustomizationIntegTest.groovy
  1. … 61 more files in changeset.
Remove use of deprecated API

Remove use of deprecated APIs in PluginBuilder

Replace use of archiveName with archiveFileName

Avoid more deprecated APIs

    • -3
    • +3
    ./MavenPublishArtifactCustomizationIntegTest.groovy
  1. … 64 more files in changeset.
Remove use of deprecated API

Remove use of deprecated APIs in PluginBuilder

Replace use of archiveName with archiveFileName

Avoid more deprecated APIs

    • -3
    • +3
    ./MavenPublishArtifactCustomizationIntegTest.groovy
  1. … 64 more files in changeset.
Adjust tests and samples to new publishing default behavior

    • -9
    • +4
    ./MavenPublishArtifactCustomizationIntegTest.groovy
  1. … 43 more files in changeset.
Adjust tests following Gradle Module Metadata feature preview removal

    • -9
    • +4
    ./MavenPublishArtifactCustomizationIntegTest.groovy
  1. … 29 more files in changeset.
Adjust tests following Gradle Module Metadata feature preview removal

    • -9
    • +4
    ./MavenPublishArtifactCustomizationIntegTest.groovy
  1. … 29 more files in changeset.
Adjust tests following Gradle Module Metadata feature preview removal

    • -9
    • +4
    ./MavenPublishArtifactCustomizationIntegTest.groovy
  1. … 29 more files in changeset.
Finalize the value of any task `@Input` property whose getter returns a property instance, at the start of execution of the task.

This means that the property value will not change once the task has started execution, so that the same value is always used during fingerprinting, cache key calculation, validation, when queried by a task action, and so on.

This behaviour only applies to `@Input` properties in this commit. This was just a place to start. Other properties will be added in later commits.

Changes to the property are ignored once the value is finalized implicitly in this way and generate a deprecation warning instead of failing, as would happen after `finalizeValue()` is called. This allows a migration path for task types that can add a new property to represent some input and keep their existing lenient (but now deprecated) behaviour for an existing property backed by the new property. It might prove better to flip this around, let's see.

    • -1
    • +1
    ./MavenPublishArtifactCustomizationIntegTest.groovy
  1. … 61 more files in changeset.
Deprecate the property factory methods on `DefaultTask` and `ProjectLayout`. These are replaced by the methods on `ObjectFactory`.

    • -1
    • +2
    ./MavenPublishArtifactCustomizationIntegTest.groovy
  1. … 11 more files in changeset.
Query published artifact coordiantes lazily

This is another step towards removing DeferredConfigurable.

Instead of eagerly evaluating archive tasks and other artifacts,

query their properties only when we actually want to publish.

    • -0
    • +16
    ./MavenPublishArtifactCustomizationIntegTest.groovy
  1. … 11 more files in changeset.
Introduce `noComponentPublished()` expectation

This expectation needs to be used whenever we expect resolution failure because no component was published.

This happens with Gradle metadata only, as the only way to publish a module file is `from components....`

    • -11
    • +17
    ./MavenPublishArtifactCustomizationIntegTest.groovy
  1. … 14 more files in changeset.
Migrate the Maven publish integration tests to use the same test fixtures as Ivy

This makes things much easier to understand, and explicits some expectations.

    • -9
    • +115
    ./MavenPublishArtifactCustomizationIntegTest.groovy
  1. … 12 more files in changeset.
Disable Gradle metadata publishing for currently failing tests

See #3389

    • -7
    • +3
    ./MavenPublishArtifactCustomizationIntegTest.groovy
  1. … 1 more file in changeset.
Fail attempts to publish invalid module metadata

When the artifacts declared in a component are modified for publishing (name/classifier/extension),

then the Maven publication no longer represents the underlying java component.

Instead of publishing incorrect metadata, we fail any attempt to publish the module metadata.

In the long term, we will likely prevent any modification of artifacts added from a component.

Instead, we will make it easier to modify the component(s) produced by a project, allowing the published

metadata to accurately reflect the local component metadata.

Fixes #3389

    • -3
    • +33
    ./MavenPublishArtifactCustomizationIntegTest.groovy
  1. … 1 more file in changeset.
Polish some maven-publish tests

    • -4
    • +6
    ./MavenPublishArtifactCustomizationIntegTest.groovy
  1. … 4 more files in changeset.
Enable Gradle metadata publishing for all maven-publish tests

- Several tests are still failing

- Most of these seem related to the fact that we don't respect the modified publication coordinates

- Some required verifications are missing

- Dependency excludes are not yet supported, so we do not verify these for module metadata

    • -5
    • +11
    ./MavenPublishArtifactCustomizationIntegTest.groovy
  1. … 19 more files in changeset.
Support `RegularFileProperty` as artifact in publishing plugins

A `RegularFileProperty` that is constructed by Task.newOutputFile() retains

a reference to the producing task. This commit allows these properties to

be used directly to construct a publication artifact for `maven-publish` and

`ivy-publish` plugins, without the need to directly wire in the task.

It is now easier to construct a publication without requiring the use of

`AbstractArchiveTask` for all artifacts produced.

    • -7
    • +24
    ./MavenPublishArtifactCustomizationIntegTest.groovy
  1. … 4 more files in changeset.
moved all s3 related resources, fixtures, tests and integration tests into resourceS3 subproject

- required to add maven/ivy testfixtures (only compiling one class each atm)

+review REVIEW-5361

    • -0
    • +2
    ./MavenPublishArtifactCustomizationIntegTest.groovy
  1. … 69 more files in changeset.
Cleanup a few more todos

    • -1
    • +1
    ./MavenPublishArtifactCustomizationIntegTest.groovy
  1. … 6 more files in changeset.
use consistent spelling for `customize` throughout docs and codebase

- some minor other spelling improvements along the way

    • -0
    • +255
    ./MavenPublishArtifactCustomizationIntegTest.groovy
  1. … 71 more files in changeset.