Clay Aether

Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/

Лицензия

Лицензия

Категории

Категории

Dex Универсальные библиотеки Utility
Группа

Группа

ru.yandex.qatools.clay
Идентификатор

Идентификатор

clay-aether
Последняя версия

Последняя версия

2.5
Дата

Дата

Тип

Тип

jar
Описание

Описание

Clay Aether
Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/
Организация-разработчик

Организация-разработчик

Yandex

Скачать clay-aether

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/ru.yandex.qatools.clay/clay-aether/ -->
<dependency>
    <groupId>ru.yandex.qatools.clay</groupId>
    <artifactId>clay-aether</artifactId>
    <version>2.5</version>
</dependency>
// https://jarcasting.com/artifacts/ru.yandex.qatools.clay/clay-aether/
implementation 'ru.yandex.qatools.clay:clay-aether:2.5'
// https://jarcasting.com/artifacts/ru.yandex.qatools.clay/clay-aether/
implementation ("ru.yandex.qatools.clay:clay-aether:2.5")
'ru.yandex.qatools.clay:clay-aether:jar:2.5'
<dependency org="ru.yandex.qatools.clay" name="clay-aether" rev="2.5">
  <artifact name="clay-aether" type="jar" />
</dependency>
@Grapes(
@Grab(group='ru.yandex.qatools.clay', module='clay-aether', version='2.5')
)
libraryDependencies += "ru.yandex.qatools.clay" % "clay-aether" % "2.5"
[ru.yandex.qatools.clay/clay-aether "2.5"]

Зависимости

compile (14)

Идентификатор библиотеки Тип Версия
org.eclipse.aether : aether-api jar 1.0.1.v20141111
org.eclipse.aether : aether-util jar 1.0.1.v20141111
org.eclipse.aether : aether-impl jar 1.0.1.v20141111
org.eclipse.aether : aether-connector-basic jar 1.0.1.v20141111
org.eclipse.aether : aether-transport-file jar 1.0.1.v20141111
org.eclipse.aether : aether-transport-http jar 1.0.1.v20141111
org.eclipse.aether : aether-transport-wagon jar 1.0.1.v20141111
org.apache.maven : maven-aether-provider jar 3.1.0
org.apache.maven.wagon : wagon-ssh jar 2.6
org.apache.maven.wagon : wagon-file jar 2.6
org.apache.maven.wagon : wagon-http jar 2.6
org.apache.maven.wagon : wagon-http-lightweight jar 2.6
ru.yandex.qatools.clay : clay-maven-settings-builder jar 2.5
commons-io : commons-io jar 2.4

test (3)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.11
org.apache.commons : commons-compress jar 1.8.1
net.lightbody.bmp : browsermob-proxy jar 2.0-beta-8

Модули Проекта

Данный проект не имеет модулей.

CLAY (Common LAYer module)

release Maven Central covarage

Clay Maven Settings Builder

Fluent-api builders for maven settings.

Settings settings = newSettings()
        .withActiveProfile(newProfile()
                .withId("profile")
                .withRepository(newRepository()
                        .withUrl("http://repo1.maven.org/maven2"))).build();

Clay Aether

Fluent-api for Eclipse Aether. Easy to resolve/collect/install/deploy artifacts.

//resolve with transitives 
List<ArtifactResult> results = aether(localRepositoryFile, settings)
        .resolve("ru.yandex.qatools.allure:allure-model:jar:1.3.9").get();
}

//resolve without transitives
List<ArtifactResult> results = aether(localRepositoryFile, settings)
        .resolve("ru.yandex.qatools.allure:allure-model:jar:1.3.9", false);
        
//resolve all given artifacts 
List<ArtifactResult> results = aether(localRepo, MAVEN_SETTINGS)
        .resolveAll("ru.yandex.qatools.allure:allure-model:jar:1.3.9", 
                    "ru.yandex.qatools.allure:allure-java-annotations:jar:1.3.9").get();
        
//collect
List<Artifact> artifacts = aether(localRepositoryFile, settings)
        .collect("ru.yandex.qatools.allure:allure-model:jar:1.3.9");

//install
aether(localRepositoryFile, settings)
        .install(archiveToDeploy, "testGroupId", "testArtifactId", "testVersion");

//deploy
aether(localRepositoryFile, settings)
        .deploy(distributionManagement, archiveToDeploy, "testGroupId", "testArtifactId", "testVersion");

Also you have few ways to get resolve results:

//as list of artifact results:
List<ArtifactResult> results = aether(localRepositoryFile, settings)
        .resolve("ru.yandex.qatools.allure:allure-model:jar:1.3.9").get();
        
//as array of urls:
URL[] urls = aether(localRepositoryFile, settings)
        .resolve("ru.yandex.qatools.allure:allure-model:jar:1.3.9").getAsUrls();
        
//as class path:
String[] cp = aether(localRepositoryFile, settings)
        .resolve("ru.yandex.qatools.allure:allure-model:jar:1.3.9").getAsClassPath();
        
//as ClassLoader:
ClassLoader cl = aether(localRepositoryFile, settings)
        .resolve("ru.yandex.qatools.allure:allure-model:jar:1.3.9").getAsClassLoader();

Clay Utils

Some useful tools, such as ArchiveUtil (configurable unpack jar's), DateUtil and MapUtil.

ru.yandex.qatools.clay

Camelot Framework

Simplified scalable aggregation and processing framework built upon Apache Camel.

Версии библиотеки

Версия
2.5
2.4
2.3
2.2
2.1
2.0