use of io.quarkus.bootstrap.resolver.TsArtifact in project quarkus by quarkusio.
the class SimpleExtAndAppCompileDepsTest method composeApplication.
@Override
protected TsArtifact composeApplication() {
final TsArtifact coreExtRtTransitiveDep = TsArtifact.jar("core-ext-rt-transitive-dep");
addToExpectedLib(coreExtRtTransitiveDep);
final TsArtifact coreExtRtDirectDep = TsArtifact.jar("core-ext-rt-direct-dep").addDependency(coreExtRtTransitiveDep);
addToExpectedLib(coreExtRtDirectDep);
final TsArtifact coreExtDepTransitiveDep = TsArtifact.jar("core-ext-dep-transitive-dep");
final TsArtifact coreExtDepDirectDep = TsArtifact.jar("core-ext-dep-direct-dep").addDependency(coreExtDepTransitiveDep);
final TsQuarkusExt coreExt = new TsQuarkusExt("core-ext");
coreExt.getRuntime().addDependency(coreExtRtDirectDep);
coreExt.getDeployment().addDependency(coreExtDepDirectDep);
addToExpectedLib(coreExt.getRuntime());
final TsArtifact ext1RtTransitiveDep = TsArtifact.jar("ext1-rt-transitive-dep");
addToExpectedLib(ext1RtTransitiveDep);
final TsArtifact ext1RtDirectDep = TsArtifact.jar("ext1-rt-direct-dep").addDependency(ext1RtTransitiveDep);
addToExpectedLib(ext1RtDirectDep);
final TsArtifact ext1DepTransitiveDep = TsArtifact.jar("ext1-dep-transitive-dep");
final TsArtifact ext1DepDirectDep = TsArtifact.jar("ext1-dep-direct-dep").addDependency(ext1DepTransitiveDep);
final TsQuarkusExt ext1 = new TsQuarkusExt("ext1");
ext1.addDependency(coreExt);
ext1.getRuntime().addDependency(ext1RtDirectDep);
ext1.getDeployment().addDependency(ext1DepDirectDep);
addToExpectedLib(ext1.getRuntime());
final TsQuarkusExt ext2 = new TsQuarkusExt("ext2");
addToExpectedLib(ext2.getRuntime());
final TsArtifact appTransitiveDep = TsArtifact.jar("app-transitive-dep");
addToExpectedLib(appTransitiveDep);
final TsArtifact appDirectDep = TsArtifact.jar("app-direct-dep").addDependency(appTransitiveDep);
addToExpectedLib(appDirectDep);
final TsArtifact appJar = TsArtifact.jar("app").addManagedDependency(platformDescriptor()).addManagedDependency(platformProperties()).addDependency(ext1).addDependency(ext2).addDependency(appDirectDep);
return appJar;
}
use of io.quarkus.bootstrap.resolver.TsArtifact in project quarkus by quarkusio.
the class BasicExecutableOutputOutcomeTest method composeApplication.
@Override
protected TsArtifact composeApplication() {
final TsQuarkusExt coreExt = new TsQuarkusExt("core-ext");
addToExpectedLib(coreExt.getRuntime());
final TsQuarkusExt ext1 = new TsQuarkusExt("ext1");
ext1.addDependency(coreExt);
addToExpectedLib(ext1.getRuntime());
final TsQuarkusExt ext2 = new TsQuarkusExt("ext2");
addToExpectedLib(ext2.getRuntime());
final TsArtifact transitiveDep1 = TsArtifact.jar("transitive1");
addToExpectedLib(transitiveDep1);
final TsArtifact optionalTransitiveDep = TsArtifact.jar("optional-transitive-dep");
final TsArtifact compileDep = TsArtifact.jar("compile-dep").addDependency(transitiveDep1).addDependency(new TsDependency(optionalTransitiveDep, true));
addToExpectedLib(compileDep);
final TsArtifact providedDep = TsArtifact.jar("provided-dep");
final TsArtifact optionalDep = TsArtifact.jar("optional-dep");
addToExpectedLib(optionalDep);
final TsArtifact directRtDep = TsArtifact.jar("runtime-dep");
addToExpectedLib(directRtDep);
final TsArtifact appJar = TsArtifact.jar("app").addManagedDependency(platformDescriptor()).addManagedDependency(platformProperties()).addDependency(ext1).addDependency(ext2).addDependency(compileDep).addDependency(new TsDependency(providedDep, "provided")).addDependency(new TsDependency(optionalDep, true)).addDependency(new TsDependency(directRtDep, "runtime"));
return appJar;
}
use of io.quarkus.bootstrap.resolver.TsArtifact in project quarkus by quarkusio.
the class DependencyVersionOverridesManagedVersionTest method composeApplication.
@Override
protected TsArtifact composeApplication() {
final TsQuarkusExt extA_100 = new TsQuarkusExt("ext-a", "1.0.0");
install(extA_100);
final TsQuarkusExt extB_100 = new TsQuarkusExt("ext-b", "1.0.0");
install(extB_100);
final TsArtifact extB_100_rt = extB_100.getRuntime();
addToExpectedLib(extB_100_rt);
final TsArtifact bom = new TsArtifact("test.quarkus", "test-bom", null, "pom", "1.0.0");
bom.addManagedDependency(platformDescriptor());
bom.addManagedDependency(platformProperties());
bom.addManagedDependency(new TsDependency(extA_100.getRuntime()));
bom.addManagedDependency(new TsDependency(extB_100_rt));
install(bom);
final TsQuarkusExt extA_101 = new TsQuarkusExt("ext-a", "1.0.1");
install(extA_101);
addToExpectedLib(extA_101.getRuntime());
createWorkspace();
final TsArtifact appJar = TsArtifact.jar("app").addManagedDependency(new TsDependency(bom, "import")).addDependency(new TsDependency(new TsArtifact(extB_100_rt.getGroupId(), extB_100_rt.getArtifactId(), extB_100_rt.getClassifier(), extB_100_rt.getType(), null))).addDependency(extA_101.getRuntime());
return appJar;
}
use of io.quarkus.bootstrap.resolver.TsArtifact in project quarkus by quarkusio.
the class ExcludeExtensionDepsTest method composeApplication.
@Override
protected TsArtifact composeApplication() {
final TsArtifact extADep1 = TsArtifact.jar("ext-a-dep-1");
final TsArtifact extADep2 = TsArtifact.jar("ext-a-dep-2");
final TsArtifact extBDep1 = TsArtifact.jar("ext-b-dep-1");
addToExpectedLib(extBDep1);
final TsArtifact extBDep2 = TsArtifact.jar("ext-b-dep-2");
addToExpectedLib(extBDep2);
final TsArtifact extBDepTrans1 = TsArtifact.jar("ext-b-dep-trans-1");
addToExpectedLib(extBDepTrans1);
final TsArtifact extBDepTrans2 = TsArtifact.jar("ext-b-dep-trans-2");
addToExpectedLib(extBDepTrans2);
final TsArtifact depToExclude1 = TsArtifact.jar("ext-dep-exclude-1");
final TsArtifact depToExclude2 = TsArtifact.jar("ext-dep-exclude-2");
final TsArtifact depToExclude3 = TsArtifact.jar("ext-dep-exclude-3");
final TsArtifact depToExclude4 = TsArtifact.jar("ext-dep-exclude-4");
final TsArtifact depToExclude5 = TsArtifact.jar("ext-dep-exclude-5");
final TsArtifact depToExclude6 = TsArtifact.jar("ext-dep-exclude-6");
extBDepTrans2.addDependency(new TsDependency(extBDep2));
extBDepTrans2.addDependency(new TsDependency(depToExclude6));
extBDepTrans1.addDependency(new TsDependency(extBDepTrans2));
extBDepTrans1.addDependency(new TsDependency(depToExclude2));
extBDepTrans1.addDependency(new TsDependency(depToExclude5));
extBDep1.addDependency(extBDepTrans1, depToExclude5);
extBDep1.addDependency(new TsDependency(depToExclude1));
final TsQuarkusExt extA = new TsQuarkusExt("ext-a");
extA.getRuntime().addDependency(extADep1);
extA.getDeployment().addDependency(extADep2);
final TsQuarkusExt extB = new TsQuarkusExt("ext-b");
addToExpectedLib(extB.getRuntime());
extB.getRuntime().addDependency(extBDep1, depToExclude6).addDependency(extA).addDependency(depToExclude4);
extB.getDeployment().addDependency(depToExclude3);
return TsArtifact.jar("app").addManagedDependency(platformDescriptor()).addManagedDependency(platformProperties()).addDependency(extB, extA.getRuntime(), depToExclude1, depToExclude2, depToExclude3, depToExclude4);
}
use of io.quarkus.bootstrap.resolver.TsArtifact in project quarkus by quarkusio.
the class FirstTransitiveDepVersionIsTheEffectiveOneTest method composeApplication.
@Override
protected TsArtifact composeApplication() {
final TsArtifact common1 = TsArtifact.jar("common", "1");
addToExpectedLib(common1);
final TsQuarkusExt ext1 = new TsQuarkusExt("ext1");
ext1.getRuntime().addDependency(common1);
addToExpectedLib(ext1.getRuntime());
final TsArtifact common2 = TsArtifact.jar("common", "2");
final TsQuarkusExt ext2 = new TsQuarkusExt("ext2");
ext2.getRuntime().addDependency(common2);
addToExpectedLib(ext2.getRuntime());
final TsArtifact common3 = TsArtifact.jar("common", "3");
final TsArtifact directAppDep = TsArtifact.jar("direct-dep").addDependency(common3);
addToExpectedLib(directAppDep);
final TsArtifact appJar = TsArtifact.jar("app").addManagedDependency(platformDescriptor()).addManagedDependency(platformProperties()).addDependency(ext1).addDependency(directAppDep).addDependency(ext2);
return appJar;
}
Aggregations