Skip to content

Commit

Permalink
rename component
Browse files Browse the repository at this point in the history
  • Loading branch information
cstamas committed Oct 28, 2022
1 parent cc4c213 commit f31ce42
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@
* <p>
* Configuration keys:
* <ul>
* <li>{@code aether.artifactResolver.postProcessor.trusted-checksums.checksumAlgorithms} - Comma separated
* <li>{@code aether.artifactResolver.postProcessor.trustedChecksums.checksumAlgorithms} - Comma separated
* list of {@link ChecksumAlgorithmFactory} names to use (default "SHA-1").</li>
* <li>{@code aether.artifactResolver.postProcessor.trusted-checksums.failIfMissing} - To fail if artifact
* <li>{@code aether.artifactResolver.postProcessor.trustedChecksums.failIfMissing} - To fail if artifact
* being validated is missing a trusted checksum (default {@code false}).</li>
* <li>{@code aether.artifactResolver.postProcessor.trusted-checksums.snapshots} - Should snapshot artifacts be
* <li>{@code aether.artifactResolver.postProcessor.trustedChecksums.snapshots} - Should snapshot artifacts be
* handled (validated or recorded). Snapshots are by "best practice" in-house produced, hence should be trusted
* (default {@code false}).</li>
* <li>{@code aether.artifactResolver.postProcessor.trusted-checksums.record} - If this value set to {@code true},
* <li>{@code aether.artifactResolver.postProcessor.trustedChecksums.record} - If this value set to {@code true},
* this component with not validate but "record" encountered artifact checksums instead
* (default {@code false}).</li>
* </ul>
Expand All @@ -80,7 +80,7 @@
public final class TrustedChecksumsArtifactResolverPostProcessor
extends ArtifactResolverPostProcessorSupport
{
public static final String NAME = "trusted-checksums";
public static final String NAME = "trustedChecksums";

private static final String CONF_NAME_CHECKSUM_ALGORITHMS = "checksumAlgorithms";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public Collection<ChecksumAlgorithmFactory> getChecksumAlgorithmFactories()
subject = new TrustedChecksumsArtifactResolverPostProcessor( selector,
Collections.singletonMap( TRUSTED_SOURCE_NAME, this ) );
trustedChecksumsWriter = null;
session.setConfigProperty( "aether.artifactResolver.postProcessor.trusted-checksums", Boolean.TRUE.toString() );
session.setConfigProperty( "aether.artifactResolver.postProcessor.trustedChecksums", Boolean.TRUE.toString() );
}

// -- TrustedChecksumsSource interface BEGIN
Expand Down Expand Up @@ -163,7 +163,7 @@ public void haveNoChecksumPass()
@Test
public void haveNoChecksumFailIfMissingEnabledFail()
{
session.setConfigProperty( "aether.artifactResolver.postProcessor.trusted-checksums.failIfMissing",
session.setConfigProperty( "aether.artifactResolver.postProcessor.trustedChecksums.failIfMissing",
Boolean.TRUE.toString() );
ArtifactResult artifactResult = createArtifactResult( artifactWithoutTrustedChecksum );
assertThat( artifactResult.isResolved(), equalTo( true ) );
Expand Down Expand Up @@ -205,7 +205,7 @@ public void addTrustedArtifactChecksums( Artifact artifact, ArtifactRepository a
recordedChecksum.set( trustedArtifactChecksums.get( checksumAlgorithmFactory.getName() ) );
}
};
session.setConfigProperty( "aether.artifactResolver.postProcessor.trusted-checksums.record",
session.setConfigProperty( "aether.artifactResolver.postProcessor.trustedChecksums.record",
Boolean.TRUE.toString() );
ArtifactResult artifactResult = createArtifactResult( artifactWithTrustedChecksum );
assertThat( artifactResult.isResolved(), equalTo( true ) );
Expand Down
10 changes: 5 additions & 5 deletions src/site/markdown/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ Option | Type | Description | Default Value | Supports Repo ID Suffix
--- | --- | --- | --- | ---
`aether.artifactResolver.snapshotNormalization` | boolean | It replaces the timestamped snapshot file name with a filename containing the `SNAPSHOT` qualifier only. This only affects resolving/retrieving artifacts but not uploading those. | `true` | no
`aether.artifactResolver.simpleLrmInterop` | boolean | Enable interop with Simple LRM. Ignored when RRF used. | `false` | no
`aether.artifactResolver.postProcessor.trusted-checksums` | boolean | Enable `trusted-checksums` resolver post processor. | `false` | no
`aether.artifactResolver.postProcessor.trusted-checksums.checksumAlgorithms` | String | Comma-separated list of checksum algorithms with which `trusted-checksums` should operate (validate or record). | `"SHA-1"` | no
`aether.artifactResolver.postProcessor.trusted-checksums.failIfMissing` | boolean | Makes `trusted-checksums` fail validation if a trusted checksum for an artifact is missing. | `false` | no
`aether.artifactResolver.postProcessor.trusted-checksums.record` | boolean | Makes `trusted-checksums` calculate and record checksums. | `false` | no
`aether.artifactResolver.postProcessor.trusted-checksums.snapshots` | boolean | Enables or disables snapshot processing in `trusted-checksum` post processor. | `false` | no
`aether.artifactResolver.postProcessor.trustedChecksums` | boolean | Enable `trustedChecksums` resolver post processor. | `false` | no
`aether.artifactResolver.postProcessor.trustedChecksums.checksumAlgorithms` | String | Comma-separated list of checksum algorithms with which `trustedChecksums` should operate (validate or record). | `"SHA-1"` | no
`aether.artifactResolver.postProcessor.trustedChecksums.failIfMissing` | boolean | Makes `trustedChecksums` fail validation if a trusted checksum for an artifact is missing. | `false` | no
`aether.artifactResolver.postProcessor.trustedChecksums.record` | boolean | Makes `trustedChecksums` calculate and record checksums. | `false` | no
`aether.artifactResolver.postProcessor.trustedChecksums.snapshots` | boolean | Enables or disables snapshot processing in `trustedChecksums` post processor. | `false` | no
`aether.checksums.omitChecksumsForExtensions` | String | Comma-separated list of extensions with leading dot (example `.asc`) that should have checksums omitted. These are applied to sub-artifacts only. Note: to achieve 1.7.x `aether.checksums.forSignature=true` behaviour, pass empty string as value for this property. | `.asc` | no
`aether.checksums.algorithms` | String | Comma-separated list of checksum algorithms with which checksums are validated (downloaded) and generated (uploaded). Resolver by default supports following algorithms: `MD5`, `SHA-1`, `SHA-256` and `SHA-512`. New algorithms can be added by implementing `ChecksumAlgorithmFactory` component. | `"SHA-1,MD5"` | no
`aether.conflictResolver.verbose` | boolean | Flag controlling the conflict resolver's verbose mode. | `false` | no
Expand Down

0 comments on commit f31ce42

Please sign in to comment.