Search in sources :

Example 1 with TsArtifact

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);
}
Also used : TsArtifact(io.quarkus.bootstrap.resolver.TsArtifact) TsDependency(io.quarkus.bootstrap.resolver.TsDependency)

Example 2 with TsArtifact

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);
}
Also used : TsArtifact(io.quarkus.bootstrap.resolver.TsArtifact) TsDependency(io.quarkus.bootstrap.resolver.TsDependency)

Example 3 with TsArtifact

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);
}
Also used : TsArtifact(io.quarkus.bootstrap.resolver.TsArtifact)

Example 4 with TsArtifact

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));
}
Also used : TsArtifact(io.quarkus.bootstrap.resolver.TsArtifact)

Example 5 with TsArtifact

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);
}
Also used : TsArtifact(io.quarkus.bootstrap.resolver.TsArtifact) TsDependency(io.quarkus.bootstrap.resolver.TsDependency)

Aggregations

TsArtifact (io.quarkus.bootstrap.resolver.TsArtifact)30 TsDependency (io.quarkus.bootstrap.resolver.TsDependency)18 TsQuarkusExt (io.quarkus.bootstrap.resolver.TsQuarkusExt)13 ContentProvider (io.quarkus.bootstrap.resolver.TsArtifact.ContentProvider)2 IOException (java.io.IOException)2 Path (java.nio.file.Path)2 WorkspaceModule (io.quarkus.bootstrap.workspace.WorkspaceModule)1 BufferedWriter (java.io.BufferedWriter)1 OutputStream (java.io.OutputStream)1 Properties (java.util.Properties)1 Activation (org.apache.maven.model.Activation)1 ActivationProperty (org.apache.maven.model.ActivationProperty)1 Dependency (org.apache.maven.model.Dependency)1 Profile (org.apache.maven.model.Profile)1