Search in sources :

Example 26 with TsArtifact

use of io.quarkus.bootstrap.resolver.TsArtifact in project quarkus by quarkusio.

the class VersionPropertyDependencyTestCase method setupDependencies.

@Override
protected void setupDependencies() {
    final TsArtifact x12 = new TsArtifact("x", "2");
    final TsArtifact x13 = new TsArtifact("x", "3");
    install(x12);
    install(x13);
    setPomProperty("x.version", "2");
    addDep(new TsArtifact("x", "${x.version}"));
    addCollectedDep(x12, DependencyFlags.DIRECT);
}
Also used : TsArtifact(io.quarkus.bootstrap.resolver.TsArtifact)

Example 27 with TsArtifact

use of io.quarkus.bootstrap.resolver.TsArtifact in project quarkus by quarkusio.

the class DependencyPresentTwiceInTheGraphInCompileAndProvidedScopesTestCase method setupDependencies.

@Override
protected void setupDependencies() {
    final TsArtifact common1 = new TsArtifact("common", "1");
    final TsArtifact common2 = new TsArtifact("common", "2");
    installAsDep(new TsArtifact("required-dep1").addDependency(new TsDependency(common1, "provided")), true);
    install(common1, false);
    install(common2, true);
    installAsDep(new TsArtifact("required-dep2").addDependency(common2), true);
}
Also used : TsArtifact(io.quarkus.bootstrap.resolver.TsArtifact) TsDependency(io.quarkus.bootstrap.resolver.TsDependency)

Example 28 with TsArtifact

use of io.quarkus.bootstrap.resolver.TsArtifact in project quarkus by quarkusio.

the class DependencyPresentTwiceInTheGraphTestCase method setupDependencies.

@Override
protected void setupDependencies() {
    final TsArtifact common1 = new TsArtifact("common", "1");
    install(common1, true);
    installAsDep(new TsArtifact("required-dep1").addDependency(common1), true);
    installAsDep(new TsArtifact("required-dep2").addDependency(common1), true);
}
Also used : TsArtifact(io.quarkus.bootstrap.resolver.TsArtifact)

Example 29 with TsArtifact

use of io.quarkus.bootstrap.resolver.TsArtifact in project quarkus by quarkusio.

the class DirectDependencyOverridesManagedDependencyTestCase method setupDependencies.

@Override
protected void setupDependencies() {
    final TsArtifact x12 = new TsArtifact("x", "2");
    final TsArtifact x13 = new TsArtifact("x", "3");
    installAsDep(x12);
    install(x13);
    addManagedDep(x13);
}
Also used : TsArtifact(io.quarkus.bootstrap.resolver.TsArtifact)

Example 30 with TsArtifact

use of io.quarkus.bootstrap.resolver.TsArtifact in project quarkus by quarkusio.

the class DependenciesOnDifferentVersionsOfAnArtifactTestCase method setupDependencies.

@Override
protected void setupDependencies() {
    final TsArtifact common1 = new TsArtifact("common", "1");
    install(common1, true);
    installAsDep(new TsArtifact("required-dep1").addDependency(common1));
    installAsDep(new TsArtifact("required-dep2").addDependency(new TsArtifact("common", "2")));
}
Also used : TsArtifact(io.quarkus.bootstrap.resolver.TsArtifact)

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