org.metaeffekt.artifact.resolver.maven.index.MavenCentralIndexConfig Maven / Gradle / Ivy
The newest version!
/*
* Copyright 2021-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.metaeffekt.artifact.resolver.maven.index;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class MavenCentralIndexConfig {
/**
* Override the .json.gz to use to build an index out of; do not set to automatically download it.
*
* This file will then be read and processed into an index.
*
* Leave this at null to not override the source path.
*/
private String ndjsonDumpGzipPath;
/**
* A URL to get a preprocessed index from.
*
* The downloadable file should be a gzipped ndjson, a dump using our custom index exporter.
*
* Expects a ".sha512" file in the same directory, used to determine whether the remote file has changed since it
* was last downloaded. This file should contain only a hex hash value, such that it may simply be read, trimmed
* and then compared to a similar output calculated over the local file.
*/
private String ndjsonDumpGzipUrl;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy