SigningPublicationsIntegrationSpec.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Lazy illegal signing of snapshot module

Prior to this change, configuring signing in the build would always fail.

It now fails only if signing effectively happens.

    • -3
    • +32
    ./SigningPublicationsIntegrationSpec.groovy
  1. … 2 more files in changeset.
Lazy illegal signing of snapshot module

Prior to this change, configuring signing in the build would always fail.

It now fails only if signing effectively happens.

    • -3
    • +32
    ./SigningPublicationsIntegrationSpec.groovy
  1. … 2 more files in changeset.
Make it impossible to sign GMM file if snapshot

This commit, hopefully temporarily, makes it impossible to sign

a Gradle Module Metadata file if the version is a snapshot.

The reason is that the signature which would be produced would

be for the raw, unmodified module file. However, the final

file would be modified in case of a snapshot to include the

timestamp version instead of the `-SNAPSHOT` version for artifacts,

which means that the signature wouldn't match anymore.

To avoid this, we simply disallow signing in this case.

    • -0
    • +29
    ./SigningPublicationsIntegrationSpec.groovy
  1. … 1 more file in changeset.
Make it impossible to sign GMM file if snapshot

This commit, hopefully temporarily, makes it impossible to sign

a Gradle Module Metadata file if the version is a snapshot.

The reason is that the signature which would be produced would

be for the raw, unmodified module file. However, the final

file would be modified in case of a snapshot to include the

timestamp version instead of the `-SNAPSHOT` version for artifacts,

which means that the signature wouldn't match anymore.

To avoid this, we simply disallow signing in this case.

    • -0
    • +29
    ./SigningPublicationsIntegrationSpec.groovy
  1. … 1 more file in changeset.
Make it impossible to sign GMM file if snapshot

This commit, hopefully temporarily, makes it impossible to sign

a Gradle Module Metadata file if the version is a snapshot.

The reason is that the signature which would be produced would

be for the raw, unmodified module file. However, the final

file would be modified in case of a snapshot to include the

timestamp version instead of the `-SNAPSHOT` version for artifacts,

which means that the signature wouldn't match anymore.

To avoid this, we simply disallow signing in this case.

    • -0
    • +29
    ./SigningPublicationsIntegrationSpec.groovy
  1. … 1 more file in changeset.
Remove use of deprecated API

Remove use of deprecated APIs in PluginBuilder

Replace use of archiveName with archiveFileName

Avoid more deprecated APIs

    • -5
    • +5
    ./SigningPublicationsIntegrationSpec.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

    • -5
    • +5
    ./SigningPublicationsIntegrationSpec.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

    • -5
    • +5
    ./SigningPublicationsIntegrationSpec.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

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

    • -11
    • +0
    ./SigningPublicationsIntegrationSpec.groovy
  1. … 43 more files in changeset.
Sign task ignores missing files

This is a similar lenient behavior as in the publishing plugins.

Signing will now still work if Gradle Module Metadata was disabled

by disabling the corresponding 'generateMetadataFileFor...' task.

    • -0
    • +1
    ./SigningPublicationsIntegrationSpec.groovy
  1. … 2 more files in changeset.
Sign task ignores missing files

This is a similar lenient behavior as in the publishing plugins.

Signing will now still work if Gradle Module Metadata was disabled

by disabling the corresponding 'generateMetadataFileFor...' task.

    • -0
    • +1
    ./SigningPublicationsIntegrationSpec.groovy
  1. … 2 more files in changeset.
Sign task ignores missing files

This is a similar lenient behavior as in the publishing plugins.

Signing will now still work if Gradle Module Metadata was disabled

by disabling the corresponding 'generateMetadataFileFor...' task.

    • -0
    • +1
    ./SigningPublicationsIntegrationSpec.groovy
  1. … 2 more files in changeset.
Sign task ignores missing files

This is a similar lenient behavior as in the publishing plugins.

Signing will now still work if Gradle Module Metadata was disabled

by disabling the corresponding 'generateMetadataFileFor...' task.

    • -0
    • +1
    ./SigningPublicationsIntegrationSpec.groovy
  1. … 2 more files in changeset.
Sign task ignores missing files

This is a similar lenient behavior as in the publishing plugins.

Signing will now still work if Gradle Module Metadata was disabled

by disabling the corresponding 'generateMetadataFileFor...' task.

    • -0
    • +1
    ./SigningPublicationsIntegrationSpec.groovy
  1. … 2 more files in changeset.
Adjust tests following Gradle Module Metadata feature preview removal

    • -12
    • +0
    ./SigningPublicationsIntegrationSpec.groovy
  1. … 29 more files in changeset.
Adjust tests following Gradle Module Metadata feature preview removal

    • -12
    • +0
    ./SigningPublicationsIntegrationSpec.groovy
  1. … 29 more files in changeset.
Adjust tests following Gradle Module Metadata feature preview removal

    • -12
    • +0
    ./SigningPublicationsIntegrationSpec.groovy
  1. … 29 more files in changeset.
Update tests to remove usage of deprecated methods

IvyArtifactoryRepository.layout("pattern", ...) is deprecated. Removing

the usage as the method will have to stay longer.

Also updated the Spek setup used in KotlinCachingSmokeTest

    • -6
    • +8
    ./SigningPublicationsIntegrationSpec.groovy
  1. … 2 more files in changeset.
Update tests to remove usage of deprecated methods

IvyArtifactoryRepository.layout("pattern", ...) is deprecated. Removing

the usage as the method will have to stay longer.

Also updated the Spek setup used in KotlinCachingSmokeTest

    • -6
    • +8
    ./SigningPublicationsIntegrationSpec.groovy
  1. … 2 more files in changeset.
Remove IvyArtifactRepository.layout(String, ...)

This is now replaced by IvyArtifactRepository.patternLayout

Includes an update to the KotlinCachingSmokeTest as a plugin used by the

target build relied on the removed method.

    • -6
    • +8
    ./SigningPublicationsIntegrationSpec.groovy
  1. … 6 more files in changeset.
Remove IvyArtifactRepository.layout(String, ...)

This is now replaced by IvyArtifactRepository.patternLayout

    • -3
    • +4
    ./SigningPublicationsIntegrationSpec.groovy
  1. … 5 more files in changeset.
Remove IvyArtifactRepository.layout(String, ...)

This is now replaced by IvyArtifactRepository.patternLayout

    • -6
    • +8
    ./SigningPublicationsIntegrationSpec.groovy
  1. … 5 more files in changeset.
Remove IvyArtifactRepository.layout(String, ...)

This is now replaced by IvyArtifactRepository.patternLayout

    • -3
    • +4
    ./SigningPublicationsIntegrationSpec.groovy
  1. … 5 more files in changeset.
Remove IvyArtifactRepository.layout(String, ...)

This is now replaced by IvyArtifactRepository.patternLayout

Includes an update to the KotlinCachingSmokeTest as a plugin used by the

target build relied on the removed method.

    • -6
    • +8
    ./SigningPublicationsIntegrationSpec.groovy
  1. … 6 more files in changeset.
Change more tests.

    • -2
    • +2
    ./SigningPublicationsIntegrationSpec.groovy
  1. … 40 more files in changeset.
Change more tests.

    • -15
    • +15
    ./SigningPublicationsIntegrationSpec.groovy
  1. … 20 more files in changeset.
Changed a bunch of integration tests to use the various task assertion methods instead of directly querying the `executedTasks` and `skippedTasks` collections. These methods can give better diagnostics when the assertion fails, and can perform additional checks.

    • -17
    • +17
    ./SigningPublicationsIntegrationSpec.groovy
  1. … 98 more files in changeset.
Changed a bunch of integration tests to use the various task assertion methods instead of directly querying the `executedTasks` and `skippedTasks` collections. These methods can give better diagnostics when the assertion fails, and can perform additional checks.

    • -17
    • +17
    ./SigningPublicationsIntegrationSpec.groovy
  1. … 98 more files in changeset.
Changed a bunch of integration tests to use the various task assertion methods instead of directly querying the `executedTasks` and `skippedTasks` collections. These methods can give better diagnostics when the assertion fails, and can perform additional checks.

    • -17
    • +17
    ./SigningPublicationsIntegrationSpec.groovy
  1. … 98 more files in changeset.