IvyPublishJavaIntegTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Upgrade JUnit version (#12924)

Upgrade JUnit to 4.13, JUnit platform to 5.6.2

  1. … 331 more files in changeset.
Revert "Remove sourceJar task in favor of sourcesJar (plural)"

This reverts commit a965be46

  1. … 8 more files in changeset.
Remove sourceJar task in favor of sourcesJar (plural)

  1. … 10 more files in changeset.
Rename @FailsWithInstantExecution to @ToBeFixedForInstantExecution

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

    • -26
    • +26
    ./IvyPublishJavaIntegTest.groovy
  1. … 872 more files in changeset.
Annotate integ tests failing with instant execution in :ivy

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

  1. … 27 more files in changeset.
Fix publication warning report

An output is no longer presented if all warnings are silenced by variant

name.

Fixes #11111

    • -10
    • +39
    ./IvyPublishJavaIntegTest.groovy
  1. … 3 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. … 64 more files in changeset.
Merge pull request #10510 from gradle/jjohannes/modifiy-variants-of-components

Allow modifications to variants of components for publishing

  1. … 2 more files in changeset.
Use instantiator for DSL objects created through SoftwareComponentFactory

To have a better and consistent DSL experience when using:

component.addVariantsFromConfiguration(...) { ... }

component.withVariantsFromConfiguration(...) { ... }

  1. … 10 more files in changeset.
Document ability to suppress publication warnings

* Includes a rename from silence* to suppress* as used in other APIs,

including @SuppressWarnings

Fixes #10467

  1. … 10 more files in changeset.
Tweaks in metadata warnings headers and footers

  1. … 4 more files in changeset.
Rename API for silencing publication warnings

* New name indicates better that these warnings are about the non Gradle

metadata formats.

  1. … 5 more files in changeset.
Improve publication warning message

* Clarify this impacts POM and Ivy format, not Gradle Module Metadata

* Clean up tests

    • -12
    • +15
    ./IvyPublishJavaIntegTest.groovy
  1. … 4 more files in changeset.
Add API for silencing publication warnings

* API is per variant or all warnings

Fixes #9378

Fixes #10431

  1. … 6 more files in changeset.
Rework publication compatibility warnings

* Group by variant

* Isolate variant level warnings

Issue #9378

  1. … 5 more files in changeset.
Add AdhocSoftwareComponent.withVariantsFromConfiguration() API

  1. … 8 more files in changeset.
Add test coverage for previously broken ivy publishing scnearios

  1. … 1 more file in changeset.
Clean up test code

    • -38
    • +31
    ./IvyPublishJavaIntegTest.groovy
Clean up IvyPublication and publish more information to ivy.xml metadata

This cleans up the implementation of `populateFromComponent()` and

introduces the following changes that publish information which

was lossy before:

- Artifacts are now added to all configurations they belong to and

not just the first found

- Dependencies are now added for all configurations they belong to,

with the corresponding mapping and version, and

not just for the first found

- For a Java library, this means the 'runtime' now represents the full

runtime variant of the library (before, only 'default' represented

that)

  1. … 15 more files in changeset.
Adjust tests and samples to new publishing default behavior

  1. … 43 more files in changeset.
Remove internal types JavaLibrary and JavaLibraryPlatform (#10210)

  1. … 6 more files in changeset.
Accept deprecation warnings in tests for compile/runtime configurations

    • -11
    • +15
    ./IvyPublishJavaIntegTest.groovy
  1. … 8 more files in changeset.
Let ivy-publish tests not use deprecated configurations

  1. … 4 more files in changeset.
Add support for latest. in IvyDescriptorFileGenerator dynamic version checker

Signed-off-by: Roberto Perez Alcolea <rperezalcolea@netflix.com>

  1. … 1 more file in changeset.
IvyDescriptorFileGenerator: check for dynamic version before setting revConstraint

Signed-off-by: Roberto Perez Alcolea <rperezalcolea@netflix.com>

  1. … 1 more file in changeset.
Make sure we do not set revConstraint if resolved version same as requested (fixed version)

Signed-off-by: Roberto Perez Alcolea <rperezalcolea@netflix.com>

  1. … 1 more file in changeset.
added integration test to make sure we write revConstraint when using versionMapping on IvyPublication

Signed-off-by: Roberto Perez Alcolea <rperezalcolea@netflix.com>

  1. … 2 more files in changeset.
Using versionMapping silences publication warnings

When using versionMapping, the publication warnings on incompatible

versions make little sense since all notations will be replaced by the

resolved version.

Fixes #8886

  1. … 3 more files in changeset.
Rename method for clarity

markOptional -> mapToOptional to indicate this is really a mapping from

Gradle to the other metadata formats.

  1. … 4 more files in changeset.
Mapping of feature variants for the Ivy world

When using feature variants in the Ivy world, there was no special

handling. This mostly meant that any added configuration based on the

feature variant ended up being extended by the default Ivy

configuration.

Since the goal is to model optional features, such extension makes

little sense.

This change set improves the situation yb decoupling the Maven scope

mapping from the optional status.

The optional status is now available to Ivy publication and is used to

control whether the `default` configuration should extend the created

configuration.

  1. … 7 more files in changeset.