use of io.quarkus.bootstrap.resolver.TsArtifact in project quarkus by quarkusio.
the class DirectOptionalOverridesTransitiveNonOptionalVersionTestCase method setupDependencies.
@Override
protected void setupDependencies() {
installAsDep(new TsArtifact("required-a").addDependency(new TsArtifact("common", "1")), true);
installAsDep(new TsDependency(new TsArtifact("common", "2"), true), true);
}
use of io.quarkus.bootstrap.resolver.TsArtifact in project quarkus by quarkusio.
the class OnlyDirectOptionalDepsAreCollectedTestCase method setupDependencies.
@Override
protected void setupDependencies() {
installAsDep(new TsDependency(new TsArtifact("required-dep-a"), "compile"), true);
installAsDep(new TsDependency(new TsArtifact("required-dep-b"), "runtime"), true);
final TsArtifact nonOptionalCommon = new TsArtifact("non-optional-common");
install(nonOptionalCommon, "compile", true);
installAsDep(new TsDependency(new TsArtifact("optional-dep").addDependency(new TsDependency(new TsArtifact("common", "1"), true)).addDependency(new TsDependency(nonOptionalCommon, false)).addDependency(new TsDependency(new TsArtifact("other", "1"), true)), true), true);
TsArtifact common2 = install(new TsArtifact("common", "2"), true);
installAsDep(new TsArtifact("required-dep-c").addDependency(common2), true);
}
use of io.quarkus.bootstrap.resolver.TsArtifact in project quarkus by quarkusio.
the class SystemPropertyOverridesPomPropertyDependencyTestCase method setupDependencies.
@Override
protected void setupDependencies() {
final TsArtifact x12 = new TsArtifact("x", "2");
final TsArtifact x13 = new TsArtifact("x", "3");
install(x12);
install(x13);
// x.version in pom is 2
setPomProperty("x.version", "2");
addDep(new TsArtifact("x", "${x.version}"));
// the system property of x.version is 3
setSystemProperty("x.version", "3");
// it is expected that the system property will dominate
addCollectedDep(x13, DependencyFlags.DIRECT);
}
use of io.quarkus.bootstrap.resolver.TsArtifact in project quarkus by quarkusio.
the class TransitiveVersionOverridesTestCase method setupDependencies.
@Override
protected void setupDependencies() {
final TsArtifact x1 = new TsArtifact("x", "2");
final TsArtifact c = new TsArtifact("c").addDependency(x1);
install(c, true);
final TsArtifact b = new TsArtifact("b").addDependency(c);
install(b, true);
installAsDep(new TsArtifact("a").addDependency(b));
final TsArtifact x2 = new TsArtifact("x", "1");
install(x2, true);
final TsArtifact z = new TsArtifact("z").addDependency(x2);
install(z, true);
installAsDep(new TsArtifact("y").addDependency(z));
}
use of io.quarkus.bootstrap.resolver.TsArtifact in project quarkus by quarkusio.
the class DependencyPresentTwiceInTheGraphInCompileAndTestScopesTestCase method setupDependencies.
@Override
protected void setupDependencies() {
final TsArtifact common1 = new TsArtifact("common", "1");
installAsDep(new TsArtifact("required-dep1").addDependency(new TsDependency(common1, "test")), true);
install(common1, true);
installAsDep(new TsArtifact("required-dep2").addDependency(common1), true);
}
Aggregations