Clay

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

Лицензия

Лицензия

Категории

Категории

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

Группа

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

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

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

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

2.5
Дата

Дата

Тип

Тип

pom
Описание

Описание

Clay
Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/
Ссылка на сайт

Ссылка на сайт

https://github.com/camelot-framework/clay
Организация-разработчик

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

Yandex
Система контроля версий

Система контроля версий

https://github.com/camelot-framework/clay

Скачать clay

Имя Файла Размер
clay-2.5.pom 4 KB
Обзор

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

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

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

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

  • clay-aether
  • clay-maven-settings-builder
  • clay-utils

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