Search in sources :

Example 16 with TsDependency

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

the class ProvidedScopeDepsAreNotCollectedTestCase method setupDependencies.

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

Example 17 with TsDependency

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

the class TestScopeIsNotAmongRuntimeDependenciesTestCase 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);
    installAsDep(new TsDependency(new TsArtifact("direct-test-dep").addDependency(new TsArtifact("common", "1").addDependency(new TsDependency(new TsArtifact("not-collected"), "test"))), "test"), false);
    final TsArtifact common = install(new TsArtifact("common", "2"), true);
    installAsDep(new TsArtifact("required-dep-c").addDependency(common), true);
}
Also used : TsArtifact(io.quarkus.bootstrap.resolver.TsArtifact) TsDependency(io.quarkus.bootstrap.resolver.TsDependency)

Example 18 with TsDependency

use of io.quarkus.bootstrap.resolver.TsDependency 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)

Aggregations

TsArtifact (io.quarkus.bootstrap.resolver.TsArtifact)18 TsDependency (io.quarkus.bootstrap.resolver.TsDependency)18 TsQuarkusExt (io.quarkus.bootstrap.resolver.TsQuarkusExt)9 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